From: "Michael J. Mulcahy" <[EMAIL PROTECTED]>
> I have been having a problem with apache inside a virtual server. If I
> restart the vs everything works fine. After I load a couple of named
> based websites I begin to get parts of other name based hosts pages.
> Has anyone else experienced this problem or have any suggestions? Here
> is a piece of the VirtualHost directives:
>
> <VirtualHost 111.222.333.444>
> ServerAdmin [EMAIL PROTECTED]
> ServerName domain.ext
> ServerAlias domain.ext *.domain.ext
> DocumentRoot /www/vhtdocs/domain
> ErrorLog /www/vhtdocs/domain/error_log
> TransferLog /www/vhtdocs/domain/access_log
> ScriptAlias /cgi-bin/ /www/vhtdocs/domain/cgi-bin/
> </VirtualHost>
> <VirtualHost 111.222.333.444>
> ServerAdmin [EMAIL PROTECTED]
> ServerName domain2.ext
> ServerAlias domain2.ext *.domain2.ext
> DocumentRoot /www/vhtdocs/domain2
> ErrorLog /www/vhtdocs/domain2/error_log
> TransferLog /www/vhtdocs/domain2/access_log
> ScriptAlias /cgi-bin/ /www/vhtdocs/domain2/cgi-bin/
> </VirtualHost>
>
>
> Any help would be greatly appreciated. Apache is v 1.3.14. Thanks.
>
Your config looks wrong... try:
NameVirtualHost 111.222.333.444
<VirtualHost domain.ext>
ServerAdmin [EMAIL PROTECTED]
ServerName www.domain.ext
ServerAlias *.domain.ext
DocumentRoot /www/vhtdocs/domain
ErrorLog /www/vhtdocs/domain/error_log
TransferLog /www/vhtdocs/domain/access_log
ScriptAlias /cgi-bin/ /www/vhtdocs/domain/cgi-bin/
</VirtualHost>
<VirtualHost domain2.ext>
ServerAdmin [EMAIL PROTECTED]
ServerName www.domain2.ext
ServerAlias *.domain2.ext
DocumentRoot /www/vhtdocs/domain2
ErrorLog /www/vhtdocs/domain2/error_log
TransferLog /www/vhtdocs/domain2/access_log
ScriptAlias /cgi-bin/ /www/vhtdocs/domain2/cgi-bin/
</VirtualHost>
http://httpd.apache.org/docs/vhosts/index.html
Cheers
Simon Garner