I have an Apache Web Server running here on my computer and I'm trying to get cirtualhost to work, but everywhere I post a message, someone replies but it never works. So I'm going to try here.
This is what I want..
188.8.131.52 - My default website
184.108.40.206:80 - My Port 80 Secondary Site
This is what I have gotten so far from posts on other forums:
# You don't need to specify port 80 below
DocumentRoot "C:\program files\apache group\apache\htdocs"
DocumentRoot "C:\program files\apache group\apache\www2"
And this is my results:
When I got to: 220.127.116.11 it loads my site fine.
But hwen I go to: 18.104.22.168:80 it loads my site but it loads the 22.214.171.124 site instead of the port 80 website. I have also noticed that when I change the DocumentRoot for the 126.96.36.199 virtualhost it doesn't even effect it. It still uses the DocumentRoot from the other one (the one not inside of the virtualhost.)
Can anyone help me with this? Thanks
Oh and I did replace 188.8.131.52 with my real ip address. I'd rather not give out my real one right now.
You're confused. 184.108.40.206 == 220.127.116.11:80 since 80 is the default port for HTTP traffic. Maybe you mean 18.104.22.168:81 ?
actually I figured this out quite a long time ago. If I just replace my ip with * it works. So I make a virtualhost with: *:80