|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
Virtual Host Problems [Apache 2.0.52]
OS: Windows XP Pro
Apache: 2.0.52 PHP: 5.0.3 DNS: http://www.zoneedit.com The problem being is with Virtual Host obviously. If I do -> NameVirtualHost *:80 <VirtualHost *:80> ServerName forum.site.com DocumentRoot /www/forum </VirtualHost> My main website will turn into the forum. So, if I load up www.site.com it will lead to the forum. If I do NameVirtualHost remote_ip:80 (or just remote_ip) <VirtualHost remote_ip:80 (or just remote_ip)> ServerName forum.site.com DocumentRoot /www/forum </VirtualHost> It will load up the forum.site.com but it will display the main page for some reason. But the forum.site.com will be there and I can surf the site and stuff under that sub-domain. Third, I do this and it seems to work. NameVirtualHost 127.0.0.1 <VirtualHost 127.0.0.1> ServerName forum.site.com DocumentRoot /www/forum </VirtualHost> It works for some people, and others it doesn't. and I setup my host (C:\Windows\System32\Drivers\Etc\Host) It's like this 127.0.0.1 localhost 127.0.0.1 forum.site.com and it works fine with the <VirtualHost 127.0.0.1> without the 127.0.0.1 forum.site.com it doesn't work. The page won't even load. with 127.0.0.1 localhost ip forum.site.com it loads up the main page, but if it take out the ip forum.site.com it won't even load. I'm curious as to what the problem is . |
![]() |
| Viewing: Dev Articles Community Forums > Web Design > Web Server Configuration > Virtual Host Problems [Apache 2.0.52] |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|