![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Application & Virtual hosts in Apache | moe2266 | UNIX for Dummies Questions & Answers | 0 | 10-16-2007 10:12 AM |
| Apache Virtual host question | moe2266 | UNIX for Advanced & Expert Users | 1 | 09-09-2007 10:38 PM |
| Apache not logging virtual domain | fire>ant> | UNIX for Dummies Questions & Answers | 2 | 04-13-2005 04:05 AM |
| Apache 2 Virtual Hosts not resolving | ezekiel61 | UNIX for Advanced & Expert Users | 2 | 08-20-2004 08:33 AM |
| Apache virtual host | 98_1LE | UNIX for Dummies Questions & Answers | 4 | 12-11-2001 02:23 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
Apache Virtual Server Help
Hi
I am trying to configure virtual host on apache and I am running into a problem where the server defaults to the default location and I cannot get apache to pull from the second server.
apache2ctl - S results are below: VirtualHost configuration: wildcard NameVirtualHosts and _default_ servers: *:80 is a NameVirtualHost default server www.a.com (/etc/apache2/vhosts.d/01.a.conf:1) port 80 namevhost www.a.com (/etc/apache2/vhosts.d/01.a.conf:1) port 80 namevhost www.b.com (/etc/apache2/vhosts.d/02.b.conf:1) Syntax OK My first conf file in vhosts.d folder is : 01.a.conf <VirtualHost *:80> ServerName www.a.com DocumentRoot /srv/www/htdocs ServerAlias a.com www.a.com ServerAdmin a@a.com <Directory /srv/www/htdocs> AllowOverride None Order allow,deny Allow from all </Directory> ScriptAlias /cgi-bin/ /srv/www/cgi-bin <Directory /srv/www/cgi-bin> AllowOverride None Options +ExecCGI -Includes Order allow,deny Allow from all </Directory> </VirtualHost> File 2 02.b.conf <VirtualHost *:80> DocumentRoot /srv/www/htdocs/b ServerName www.b.com ServerAlias www.b.info www.b.org b.com ServerAdmin b@b.com <Directory /srv/www/htdocs/b> AllowOverride None Order allow,deny Allow from all </Directory> ScriptAlias /cgi-bin/ /srv/www/cgi-bin <Directory /srv/www/cgi-bin> AllowOverride None Options +ExecCGI -Includes Order allow,deny Allow from all </Directory> </VirtualHost> |
|||
| Google The UNIX and Linux Forums |
| Forum Sponsor | ||
|
|
| Thread Tools | |
| Display Modes | |
|
|