Apache Server configuration support - Problem with vhost definitions

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > February 2006 > Problem with vhost definitions





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Problem with vhost definitions
scott

2006-02-01, 2:55 am

I have two web sites listed in the vhosts.conf file. I also have
listen.conf set. However when I fo to the second website listed in the
vhosts.conf file, I get the web page for the first. I have looked at
the access logs as well as the error logs, and nothing shows up
regarding the second web site. As a matter of fact for the fist web
sites access and error logs, nothing shows up regarding my access. I
don't see any errors regarding a configuration error. Any ideas what to
check for now? Thanks!
Davide Bianchi

2006-02-01, 2:55 am

On 2006-02-01, scott <svetter@ameritech.net> wrote:
> vhosts.conf file, I get the web page for the first.


This happens when Apache can't figure out which one you want and just
shows up the first (or the 'default' one).

> don't see any errors regarding a configuration error. Any ideas what to
> check for now?


Nope. Post the excerpt of your configuration for the VHosts.

Davide

--
Double your drive space: Delete Windows!
scott

2006-02-01, 6:08 pm

Davide Bianchi wrote:
> On 2006-02-01, scott <svetter@ameritech.net> wrote:
>
> This happens when Apache can't figure out which one you want and just
> shows up the first (or the 'default' one).
>
>
> Nope. Post the excerpt of your configuration for the VHosts.
>
> Davide
>


Thanks for your help. Here is what I have:

<VirtualHost *:80>
ServerAdmin scott@exzak.com
ServerName www.exzak.com
DocumentRoot /home/exzak.com
ErrorLog /var/log/apache2/exzak.com-error_log
CustomLog /var/log/apache2/exzak.com-access_log combined
HostnameLookups Off
UseCanonicalName Off
ServerSignature On
ScriptAlias /cgi-bin/ "/home/exzak.com/cgi-bin/"
<Directory "/home/exzak.com/cgi-bin">
AllowOverride None
Options +ExecCGI -Includes
Order allow,deny
Allow from all
</Directory>
<IfModule mod_userdir.c>
UserDir public_html
Include /etc/apache2/mod_userdir.conf
</IfModule>
<Directory "/home/exzak.com">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerAdmin scott@exzak.com
ServerName www.needapartnow.com
ServerAlias www.needapartnow.biz www.needapartnow.info
www.needapartnow.net
DocumentRoot /home/needapartnow.com
ErrorLog /var/log/apache2/needapartnow.com-error_log
CustomLog /var/log/apache2/needapartnow.com-access_log combined
HostnameLookups Off
UseCanonicalName Off
ServerSignature On
ScriptAlias /cgi-bin/ "/home/needapartnow.com/cgi-bin/"
<Directory "/home/needapartnow.com/cgi-bin">
AllowOverride None
Options +ExecCGI -Includes
Order allow,deny
Allow from all
</Directory>
<IfModule mod_userdir.c>
UserDir public_html
Include /etc/apache2/mod_userdir.conf
</IfModule>
<Directory "/home/needapartnow.com">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com