PDA

View Full Version : log /~user bandwith



ja3
07-07-2004, 03:48 AM
There is a thing to log /~user bandwith but can you expand the things what you must do here:

Note that you need to add the Logformat as well. You will only need to insert 5 newlines of code... the logformat, 2 AliasMatch lines and 2 CustomLog lines.

Don't know what I exactly should do? :)

Thanks,
ja3

jmstacey
07-07-2004, 12:03 PM
The instructions are here
http://www.directadmin.com/features.php?id=392

Regarding the LogFormat, you add this with the other LogFormats in you httpd.conf file

LogFormat "%b \"%r\"" homedir

ja3
07-07-2004, 01:18 PM
Thanks but there is also: 2 AliasMatch lines and 2 CustomLog lines remaining, do you know that code?

jmstacey
07-07-2004, 01:56 PM
It was in the instructions in the link I provided....


<VirtualHost 192.168.0.2:80>
ServerAdmin webmaster@yourhostname.com
AliasMatch ^/~([^/]+)(/.*)* /home/$1/public_html$2
DocumentRoot /var/www/html
ServerName localhost
ScriptAlias /cgi-bin/ /var/www/cgi-bin/

CustomLog /var/log/httpd/homedir.log homedir
</VirtualHost>

<VirtualHost 192.168.0.2:443>
ServerName localhost
ServerAdmin webmaster@yourhostname.com
AliasMatch ^/~([^/]+)(/.*)* /home/$1/public_html$2
DocumentRoot /var/www/html
ScriptAlias /cgi-bin/ /var/www/cgi-bin/

SSLEngine on
SSLCertificateFile /etc/httpd/conf/ssl.crt/server.crt
SSLCertificateKeyFile /etc/httpd/conf/ssl.key/server.key

CustomLog /var/log/httpd/homedir.log homedir
</VirtualHost>


The logformat is the 5th line.

ja3
07-07-2004, 02:31 PM
Thanks man :)