Different log files for virtual hosts

Different log files for virtual hosts

Post by Raimonds Simanovski » Mon, 22 Jan 1996 04:00:00



I'm using Apache 1.0 on HP-UX 9.0 and I have set up
multiple virtual hosts. I would like to set up
different transfer logs for each virtual host.

My httpd.conf contains the following:

...
ServerRoot /users/httpd
...
<VirtualHost first.host>
...
TransferLog /users/httpd/first/logs/access_log
...
</VirtualHost>

<VirtualHost second.host>
...
TransferLog /users/httpd/second/logs/access_log
...
</VirtualHost>

When I start Apache then both of these files
are created. But when I access these hosts
all the access info goes to the standard
transfer log - /users/httpd/logs/access_log.

What's wrong with my configuration?

Regards
ray_

--------------------
Raimonds Simanovskis

 
 
 

Different log files for virtual hosts

Post by Richard Stephe » Wed, 24 Jan 1996 04:00:00


: When I start Apache then both of these files
: are created. But when I access these hosts
: all the access info goes to the standard
: transfer log - /users/httpd/logs/access_log.
        If you've left a 'TransferLog logs/access_log' in the httpd.conf
outside of the VirtualHost sections, the server will pay attention
to it.  If there is one there, try commenting it out and see what happens.

--
Richard Andrew Stephens         Office Manager, Achilles Internet Ltd.
Gloucester, ON, CANADA          Political Science IV, Carleton University  

                "As always, no time like the present,
                     but no time for the present." - RS

 
 
 

1. Apache logging virtual hosts in one log file

I have a virtual host on an Apache Server 1.3
lets call it 'MASTER'.
Inside that domain I have 20 domains virtual
hosted and linked into the domain space
of 'MASTER' eg: MASTER/htdocs/domain1/
                MASTER/htdocs/domain2/ etc

How do I get one log file with browser and
referrer stats for MASTER including the hits made
to domain1 & domain2 etc.

Sent via Deja.com
http://www.deja.com/

2. pc speaker sound,

3. : How to prevent one named virtual host from "seeing" another virtual hosts files ?

4. listening to audio cd

5. Apache 1.3b2: Default Host and all virtual hosts serve only first virtual hosts pages?

6. Best VGA card for 17" monitor?

7. Apache 1.2b10, Virtual Hosting, and merging log files...

8. wwq

9. How can I rotate the log file for a virtual host?

10. HOW TO rotate log files on virtual host?

11. Ho to log access_log to split file and based on split per-virtual-host !

12. Log file for virtual host

13. Apache 1.2.0 Virtual Hosts -- log file permissions wrong under Linux and Solaris