Traffic on a virtual host

Traffic on a virtual host

Post by Markus Schlarman » Wed, 31 Mar 1999 04:00:00



Hi,

how can I observe the traffic on a namebased virtual host?

System:
LINUX AND APACHE

Markus

 
 
 

Traffic on a virtual host

Post by Ma » Wed, 31 Mar 1999 04:00:00


: Hi,

: how can I observe the traffic on a namebased virtual host?

In your httpd.conf place the following directives:

<VirtualHost someco.com>
DocumentRoot /path/to/their/documentroot
TransferLog logs/someco-access_log
</VirtualHost>

<VirtualHost www.someco.com>
DocumentRoot /path/to/their/documentroot
TransferLog logs/someco-access_log
</VirtualHost>

Restart your webserver, then from the logs directory do:
tail -f someco-access_log

: System:
: LINUX AND APACHE

: Markus

Max Pyziur


 
 
 

Traffic on a virtual host

Post by Sevo Still » Thu, 01 Apr 1999 04:00:00



> Hi,

> how can I observe the traffic on a namebased virtual host?

That depends on how close to the real figures you want to get. The
server logs will only log the body volume sent. I.e. compared to your
ISPs bill, the per-vhost logging on the server will be off by a more or
less considerable amount, depending on the amount of other traffic (http
incoming and headers, tcp overhead and other protocols). If all vhosts
on that IP have similar traffic patterns, that must not be a problem.
Otherwise, you'll have to consider moving problem hosts to their own IP
address or setting up an application level monitor.

Sevo

--
Sevo Stille

 
 
 

Traffic on a virtual host

Post by No Spa » Fri, 02 Apr 1999 04:00:00


try the server-status in the access.conf for example


>> Hi,

>> how can I observe the traffic on a namebased virtual host?

>That depends on how close to the real figures you want to get. The
>server logs will only log the body volume sent. I.e. compared to your
>ISPs bill, the per-vhost logging on the server will be off by a more or
>less considerable amount, depending on the amount of other traffic (http
>incoming and headers, tcp overhead and other protocols). If all vhosts
>on that IP have similar traffic patterns, that must not be a problem.
>Otherwise, you'll have to consider moving problem hosts to their own IP
>address or setting up an application level monitor.

>Sevo

>--
>Sevo Stille


 
 
 

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

Hello.

Have been running 1.2b8 for a intranet and decided to move upto 1.3b2. I
have several name based virtual hosts that have been working under
1.2b8. After compiling and installing 1.3b2 my virtual hosts do not
work. In fact what happens is that even though DocumentRoot and default
server name is different, eg: www.serverA.net pointing to /www/default,
Apache 1.3b2 will always take me to the first defined virtual host as if
it's locked to it no matter what virtual host I try to browse. What
gives? Please post and E-Mail.

In /etc/hosts for my machines IP address I have

A.B.C.D         www.default.net www.virtA.net www.virtB.net

In ../conf/httpd.conf I have;

<VirtualHost www.virtA.net>

DocumentRoot /usr/local/www/virtA
ServerName www.virtA.net
ErrorLog logs/virtA.error.log
TransferLog logs/virtA.access.log
</VirtualHost>

<VirtualHost www.virtB.net>

DocumentRoot /usr/local/www/virtB
ServerName www.virtB.net
ErrorLog logs/virtB.error.log
TransferLog logs/virtB.access.log
</VirtualHost>

--

2. bfd assertion fail?

3. FrontPage virtual hosting, removal or reset of virtual host

4. HELP: Talk on linux problem

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

6. Printer Port BUffering Help!

7. Mixing Apache Name Based Virtual Hosts and SSL Virtual Host

8. Newbie-Getting Started with Unix

9. For Discussion: web virtual hosting vs mail virtual hosting

10. virtual host traffic accounting?

11. apache1.3.3 virtual host redirects all traffic

12. NCSA 1.4.2 + virtual host patch + heavy traffic = memory leak?

13. Traffic monitoring of Virtual Hosts [Apache 1.2.3/4]