Re: Virtual Directory -- Virtual Hosts Logs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Feb 23, 2010 at 2:26 AM,  <michel@xxxxxxxxxx> wrote:
> Hello
>
> I have a small problem with my apache server.
>
> I work with CentOS 5.4 with httpd-2.2.3-31
>
> I have multiple virtual directories and several VirtualHosts. Each
> VirtualHost has on the "CustomLog" so that will generate a log for each
> virtualhost.
>
> My problem is when trying to access any virtual directory under the name of
> my server. example: http://centos.home.cu/stats save the access log in the
> logs of the first VirtualHost I declared.
> should not be stored in access_log?
>
> who i can fix this?
>
> If you disable the first virtualhost then the same with the second that
> follows.
>

The first vhost is special; it is the default vhost, and any request
for a host that does not match one of the other specified vhosts will
be served by the first vhost.

Therefore, the correct thing to do is to insert a dummy default vhost
into your configuration, without a CustomLog. Then requests for
default vhosts will be logged to the default access log.

Cheers

Tom

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux