how can I observe the traffic on a namebased virtual host?
LINUX AND APACHE
: how can I observe the traffic on a namebased virtual host?
In your httpd.conf place the following directives:
Restart your webserver, then from the logs directory do:
tail -f someco-access_log
: LINUX AND APACHE
> how can I observe the traffic on a namebased virtual host?
>> 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.
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;