Jump to content
The Uniform Server Community
timhost

virtual host not working

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

Share this post


Link to post
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 :)

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

tim, try changing

DocumentRoot /www/site2

to

DocumentRoot /www/site2/

 

 

tried that too, with the same result.

 

I like uniformserver but without virtual hosting, I'm going to try something else like p.e. wampserver.

Thanks anyway. :)

 

tim

Share this post


Link to post
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...

×
×
  • Create New...