| MikeDawg 2006-05-31, 1:19 pm |
|
Bluesofa wrote:
> Sorry to be a newbie coming along and asking for help - your probably
> fed up of this kind of request, but any help would be appreciated!
>
> I've got apache2triad running seemingly well on my local machine. with
> virtualhosts accessiable from the local machine, and setup in HOSTS on
> XP. As soon as I try to access any of the virtualhosts from anywhere
> on my network, I get a listing of the htdocs folder, for all virtual
> hosts - this folder isn't even listed as a virtual host document root.
>
> I'm also getting this error in the log:
>
> [Mon May 29 22:23:30 2006] [warn] [client 192.168.1.101] mod_include:
> Options +Includes (or IncludesNoExec) wasn't set, INCLUDES filter
> remove
>
> [Mon May 29 22:22:39 2006] [warn] NameVirtualHost *:80 has no
> VirtualHosts
>
> My Virtual Host setting is:
>
> NameVirtualHost *:80
>
> <VirtualHost localtest>
> ServerName localtest
> DocumentRoot "c:\apache2triad\htdocs\test"
> ErrorLog "logs/test-error_log"
> </VirtualHost>
>
>
> As I said, works perfectly on my local machine.
>
> Thanks for any help you can give...
Well. . . I can tell you that your VirtualHost setup is incorrect. If
you have:
NameVirtualHost *:80
Then, the VirtualHost directive should look the same:
<VirtualHost *:80>
ServerName localtest
DocumentRoot "c:\apache2triad\htdocs\test"
ErrorLog "logs/test-error_log"
</VirtualHost>
|