> looking at some of the Apache docs on vhosting states in part:
> -----
> /manual/vhosts/mass.html
>
> ...
> The main disadvantage is that you cannot have a different log file for
each virtual
> host; however if you have very many virtual hosts then doing this is
dubious anyway
> because it eats file descriptors. It is better to log to a pipe or a fifo
and arrange
> for the process at the other end to distribute the logs to the customers
(it can also
> accumulate statistics, etc.).
>

There is a way around. You can have separate log files for each
virtual host. Assign ip number for each virtual host.

You may also need encryption between your server and clients for
security, in these times when  users have snippers, tcpdump, and
ethereal. So, ip numbers for each virtual host is a must.

To assign ip numbers, I have

In  my /etc/rc.d/rc.local

<snip>
ifconfig eth0:0 192.168.1.5
ifconfig eth0:1 192.168.1.6
ifconfig eth0:2 192.168.1.7

(Note:Replace 'eth' accordingly, depending on your
Network Card)

Then, in your forward named (BIND) database,

<snip>
learn          IN     A     192.168.1.5
manual       IN     A     192.168.1.6
test            IN     A     192.168.1.7

Ensure to configure reverse named (BIND) database,
too, namely:

<snip>
5        IN        PTR    learn.noy.com.au.
6        IN        PTR    manual.noy.com.au.
7        IN        PTR    test.noy.com.au.

And, in your httpd.conf,

<VirtualHost learn.noy.com.au>
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /home3/noy.com.au/learn
ServerName learn.noy.com.au
Errorlog /home3/noy.com.au/learn/logs/error_log
TransferLog /home3/noy.com.au/learn/logs/access_log
<Files ~ "^\.ht .inc">
    Order allow,deny
    Deny from all
    Satisfy All
</Files>
</VirtualHost>
#
<VirtualHost manual.noy.com.au>
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /home3/noy.com.au/manual
ServerName manual.noy.com.au
Errorlog /home3/noy.com.au/manual/logs/error_log
TransferLog /home3/noy.com.au/manual/logs/access_log
<Files ~ "^\.ht .inc">
    Order allow,deny
    Deny from all
    Satisfy All
</Files>
</VirtualHost>
#
<VirtualHost test.noy.com.au>
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /home3/noy.com.au/test
ServerName test.noy.com.au
Errorlog /home3/noy.com.au/test/logs/error_log
TransferLog /home3/noy.com.au/test/logs/access_log
<Files ~ "^\.ht .inc">
    Order allow,deny
    Deny from all
    Satisfy All
</Files>
</VirtualHost>

Have some fun.
http://www.acay.com.au/~oscarp/disclaimer.html

-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to