The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Apache Virtual Server Help ratnamg Linux 0 02-05-2008 05:44 PM
Apache Virtual host question moe2266 UNIX for Advanced & Expert Users 1 09-09-2007 10:38 PM
Unix virtual host detection Meridian SUN Solaris 3 01-20-2004 01:55 AM
Unix virtual host detection Meridian SUN Solaris 1 01-14-2004 07:13 PM
Resolving Aliases and Virtual IP's on a Host Scott Pullen UNIX for Advanced & Expert Users 1 12-20-2001 11:11 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 12-07-2001
Registered User
 

Join Date: Dec 2000
Location: Greater Dallas area
Posts: 405
Apache virtual host

Would this be the correct entry for Apache to answer on the IP 129.250.242.126 if the servers IP is 129.250.242.125? Are any other changes necessary to get Apache to answer this IP for web traffic?
Code:
< VirtualHost 129.250.242.126>
ServerName www.my_domain.com
ServerAdmin admin@my_domain.com
DocumentRoot /home/my_domain.com/public_html
CustomLog domlogs/my_domain.com combined
ScriptAlias /cgi-bin/ /home/my_domain.com/public_html/cgi-bin/
< /VirtualHost>
Thanks,
Chuck
__________________
[url=http://chuckb.1le.net/]My website[/url]
Forum Sponsor
  #2  
Old 12-09-2001
J.P's Avatar
J.P J.P is offline
Registered User
 

Join Date: Nov 2001
Location: Sweden
Posts: 67
I've been having some problems with virtual hosts myself..
try the vhosts documentation:
http://httpd.apache.org/docs/vhosts/
  #3  
Old 12-11-2001
Neo's Avatar
Neo Neo is offline
Administrator
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 4,441
Must have this directive (something like):

NameVirtualHost 63.23.23.23:80


and something like:


&lt;VirtualHost www.host.com:80&gt;
ServerAdmin lab@host.com
DocumentRoot /usr/local/apache/share/htdocs
ServerName www.host.com
ErrorLog /usr/local/apache/logs/host_error_log
TransferLog /usr/local/apache/logs/host_access_log
&lt;/VirtualHost&gt;



AND:

Make sure www.host.com resolved to the right IP address in the DNS (in this bogus example: 63.23.23.23).


That is about it.......
  #4  
Old 12-11-2001
Registered User
 

Join Date: Oct 2001
Posts: 21
Chuck,

The NameVirtualHost directive is only required if you want to run multiple webs from a single IP address. Now you said your box is on 129.250.242.125, and you want the web on 129.250.242.126?
The example you gave will work, but you can also DNS www.my_domain.com to 129.250.242.126 (and change the ip address to a name)

Shimb0
  #5  
Old 12-11-2001
Neo's Avatar
Neo Neo is offline
Administrator
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 4,441
Good point.... VirtualHost directives are 'about' mapping' different web-hostnames to a single IP address....... of course you can have many of these as well.....
Google The UNIX and Linux Forums
Closed Thread

Thread Tools
Display Modes




All times are GMT -7. The time now is 02:12 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0