Web Server Configuration
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsWeb DesignWeb Server Configuration

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
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  
Old December 9th, 2004, 08:48 PM
jakejammin jakejammin is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 1 jakejammin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #2  
Old December 11th, 2004, 06:33 PM
oyejorge oyejorge is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 25 oyejorge User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 13 sec
Reputation Power: 0
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>

Reply With Quote
  #3  
Old December 27th, 2004, 03:09 PM
JHorton JHorton is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 7 JHorton User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsWeb DesignWeb Server Configuration > HELP with Apache 2.0 VirtualHost


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

Iron Speed




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway