![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Application & Virtual hosts in Apache | moe2266 | UNIX for Dummies Questions & Answers | 0 | 10-16-2007 02:12 PM |
| Apache Virtual host question | moe2266 | UNIX for Advanced & Expert Users | 1 | 09-10-2007 02:38 AM |
| Apache not logging virtual domain | fire>ant> | UNIX for Dummies Questions & Answers | 2 | 04-13-2005 08:05 AM |
| Apache 2 Virtual Hosts not resolving | ezekiel61 | UNIX for Advanced & Expert Users | 2 | 08-20-2004 12:33 PM |
| Apache virtual host | 98_1LE | UNIX for Dummies Questions & Answers | 4 | 12-11-2001 06:23 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | 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> |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|