![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| 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 !! |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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> Chuck
__________________
[url=http://chuckb.1le.net/]My website[/url] |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
I've been having some problems with virtual hosts myself..
try the vhosts documentation: http://httpd.apache.org/docs/vhosts/ |
|
#3
|
||||
|
||||
|
Must have this directive (something like):
NameVirtualHost 63.23.23.23:80 and something like: <VirtualHost www.host.com:80> 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 </VirtualHost> 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
|
|||
|
|||
|
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
|
||||
|
||||
|
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 |