Jump to content
The Uniform Server Community

virtual host not working


timhost
 Share

Recommended Posts

Hello,

 

virtual host is not working. I get always content starting from /www/

 

host file is also ok.

 

What I see is content always h t t p ://site2 === h t t p://site1--------------- Well it was late !!!! RIC

 

any ideas, it is windows xp home italian. Can I do some debugging to see what is wrong?

Admin Virtual Host is working i.e. setting up everything, only apache strikes.

:)

 

NameVirtualHost *

Listen is set to port 80

Userdir is /www/

##########VIRTUAL HOST SETUP##########

# site1

<VirtualHost *>

ServerName site1.dev

DocumentRoot /www/

</VirtualHost>

 

# site1

<VirtualHost *>

ServerName site2

DocumentRoot /www/site2

</VirtualHost>

 

 

thanks

tim

Link to comment
Share on other sites

It looks as if you have not set the hosts file:

 

Open the file:hosts

 

Located: C:\WINDOWS\system32\drivers\etc\

 

add these lines

 

 

127.0.0.1 site1.dev

127.0.0.1 site2

 

Check out this page for more details

 

http://center.uniformserver.com/virtual_ho...ual_host_1.html

 

 

All the best :)

Link to comment
Share on other sites

It looks as if you have not set the hosts file:

 

Open the file:hosts

 

Located: C:\WINDOWS\system32\drivers\etc\

 

add these lines

127.0.0.1 site1.dev

127.0.0.1 site2

 

Check out this page for more details

 

http://center.uniformserver.com/virtual_ho...ual_host_1.html

All the best :)

 

 

Stays above "host file is also ok" meaning

 

127.0.0.1 site1.dev

127.0.0.1 site2

 

are also set.

 

 

That is my problem everything seems beeing OK, but not working.

 

tim

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...