|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Yes, another virtual host problem...
Okay, I have one IP address and two domains. How do I get the domains to work properly.
Thanks, Skeasor
__________________
____________ Thanks, Skeasor Got Debian Linux? www.debian.org |
|
#2
|
|||
|
|||
|
Start here -> http://httpd.apache.org/docs/vhosts/name-based.html
|
|
#3
|
|||
|
|||
|
read...
I read that page at least a dozen times. Both of my domains display the exact same content .
|
|
#4
|
|||
|
|||
|
That's why you need to read your other thread -> http://forums.devshed.com/showthrea...8519&forumid=15
Don't just read it, you need to try it, implement it. |
|
#5
|
|||
|
|||
|
Still no go...
I tried everything. Something seems to be wrong. I did implement it. Heres my setup with One IP and two domain names...
NameVirtualHost my.ip.address <VirtualHost my.ip.address> ServerName www.mydomain1.com DocumentRoot /var/www/mydomain1.com</virtualhost> <VirtualHost my.ip.address> ServerName www.mydomain2.com DocumentRoot /var/www/mydomain2.com </virtualhost> Thats what I got out of the manuals at apache.org I am not sure about the Listen directive tho Thanks, Skeasor |
|
#6
|
|||
|
|||
|
>> Something seems to be wrong
So what's wrong? What does the log say? The section of your httpd.conf appears to be fine except DocumentRoot. You should quote the path at all time like so: DocumentRoot "/var/www/mydomain1.com" |
|
#7
|
|||
|
|||
|
No errors...
No errors at all...The error log is clean. Whenever I type the url to go to my www.mydomain2.com it shows www.mydomain1.com
Thanks skeasor |
|
#8
|
|||
|
|||
|
Define UseCanonicalName Off globally.
|
|
#9
|
|||
|
|||
|
not sure...
I am not sure what you mean
skeasor |
|
#10
|
|||
|
|||
|
nevermind...
Okay, I turned UseCanonicaName off and still nothing works. Both domains display the same webpage. I am pretty sure that my <VirtualHost> directive is setup properly
-skeasor |
|
#11
|
|||
|
|||
|
1) Restart Apache
2) Check DNS. Make sure www.domain2.com resolves to the same IP as www.domain1.com. 3) Tell us the name of your domains |
|
#12
|
|||
|
|||
|
checked...
|
|
#13
|
|||
|
|||
|
>> Checked and double checked...
Me too and I see two different sites. Maybe you should empty your browser cache and try again. BTW, your DNS is highly misconfigured. The SOA and MX. Start a new thread in DNS forum if you have to. |
|
#14
|
|||
|
|||
|
Thanks for everything..I'll be sure to ask for some help in the DNS forum
![]() skeasor |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > Yes, another virtual host problem... |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|