Forum Moderators: phranque

Message Too Old, No Replies

On local machine localhost httpd vhosts.conf

Not sure of my mods

         

henry0

6:15 pm on Nov 24, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



As part of this setup my windows hosts are edited to reflect any of the above settings
BUT I can only use the site1 (works fine)
Regardless of my tries I cannot make working site2 (got only a blank page, view src shows only the dtd)
I believe it comes from my httpd-vhosts missing something?

I set up an error log on site2 it shows “GET / HTTP/1.1" 200 –“
I also edited httpd.conf to allow for vhosts
Below is my vhosts file.
Any ideas for making site2 opening too?

# Use name-based virtual hosting.

NameVirtualHost *:80
<VirtualHost *:80>
ServerName site1
DocumentRoot C:/wamp/www/site1
ErrorLog C:/wamp/www/site1/logs/error.log
CustomLog C:/wamp/www/site1/logs/access.log common
</VirtualHost>

NameVirtualHost *:80
<VirtualHost *:80>
ServerName site2
DocumentRoot C:/wamp/www/site2
ErrorLog C:/wamp/wwwsite2/logs/error.log
CustomLog C:/wamp/www/site2/logs/access.log common
</VirtualHost>

<VirtualHost *:80>
ServerName localhost
DocumentRoot C:/wamp/www
ErrorLog C:/wamp/www/logs/error.log
CustomLog C:/wamp/www/logs/access.log common
</VirtualHost>

Thanks.

jdMorgan

6:51 pm on Nov 24, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If the DTD is showing, then the server's host-selection process seems to be working, and the problem likely lies elsewhere. To be sure, change the DTD's for each of the sites' home pages, and make sure you're getting the right DTD for each site requested.

Also, make sure your Windows is fully up to date -- It was several years ago I think, but earlier versions of WinXP(?) had big problems with properly using multiple localhost connections.

Jim

henry0

7:22 pm on Nov 24, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks jd,
This tries to run on a new Wins7
I will look again to the TDT