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..
22.214.171.124 - My default website
126.96.36.199: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: 188.8.131.52 it loads my site fine.
But hwen I go to: 184.108.40.206:80 it loads my site but it loads the 220.127.116.11 site instead of the port 80 website. I have also noticed that when I change the DocumentRoot for the 18.104.22.168 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 22.214.171.124 with my real ip address. I'd rather not give out my real one right now.
You're confused. 126.96.36.199 == 188.8.131.52:80 since 80 is the default port for HTTP traffic. Maybe you mean 184.108.40.206: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