|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Ajax Application Generator Generate database 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
|
|||
|
|||
|
HELP with Apache 2.0 VirtualHost
Ok this has been driving me NUTS for days now.
I have read many web sires and they all say something a little different. I have 2 domains, one a .com and the other a .info Now got the server up and running installed ISC BIND, and conf. that and my .com is up and running NO PROBLEMS.. Now I want to point the .info domain to the same INDEX.html (same web page) as my .com So no matter what you put in .com or .info you get that one web page. I have tried just about everything, and dont know what I'm doing wrong or missing. I started with this, after adding "127.0.0.1 domain.info" to my hosts file, (C:\windows\system32\drivers\etc) Code:
NameVirtualHost 127.0.0.1:80 <VirtualHost 127.0.0.1:80> ServerAdmin webmaster@domain.info DocumentRoot C:/Apache2/www/ ServerName www.domain.info ServerAlias domain.info ErrorLog logs/error.log ScriptAlias /cgi-bin/ "C:/Apache2/cgi-bin/" ScriptAlias /php/ "c:/php/" <Directory "C:/Apache2/www/"> </Directory> </VirtualHost> Then I read to use the server's IP address so I tried Code:
NameVirtualHost 68.xx.xx.xx:80 <VirtualHost 68.xx.xx.xx:80> ServerAdmin webmaster@domain.info DocumentRoot C:/Apache2/www/ ServerName www.domain.info ServerAlias domain.info ErrorLog logs/error.log ScriptAlias /cgi-bin/ "C:/Apache2/cgi-bin/" ScriptAlias /php/ "c:/php/" <Directory "C:/Apache2/www/"> </Directory> </VirtualHost> Nothing works!! Is there something I'm missing or not adding. Oh ya I have the .com domain pointed to dns1.domain.com and dns2 I also pointed the .info to dns1.domain.com and dns2.domain.com Is my DNS the problem here???? PLEASE HELP I'm SO ![]() |
|
#2
|
|||
|
|||
|
You said everything works fine for domain.com?... What does the VirtualHost configuration look like for domain.com?
Just a suggestion for debugging: try getting it to work with the simplest configuration possible... <VirtualHost 68.xx.xx.xx:80> DocumentRoot "C:/Apache2/www/" ServerName www.domain.info </VirtualHost> |
|
#3
|
|||
|
|||
|
ok first do you have a virtual host set up for the .com site as well?..if so just point them both to the same document root...i tried it on my server and it worked...if not thats your problem...when you set up any virtual hosts you have to have one for the main site ...hope this helps you |
![]() |
| Viewing: Dev Articles Community Forums > Web Design > Web Server Configuration > HELP with Apache 2.0 VirtualHost |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|