log /~user bandwith

ja3

Verified User
Joined
Mar 28, 2004
Messages
51
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
 
Thanks but there is also: 2 AliasMatch lines and 2 CustomLog lines remaining, do you know that code?
 
It was in the instructions in the link I provided....

Code:
<VirtualHost 192.168.0.2:80>
        ServerAdmin [email][email protected][/email]
        [color=red]AliasMatch ^/~([^/]+)(/.*)* /home/$1/public_html$2[/color]
        DocumentRoot /var/www/html
        ServerName localhost
        ScriptAlias /cgi-bin/ /var/www/cgi-bin/

        [color=red]CustomLog /var/log/httpd/homedir.log homedir[/color]
</VirtualHost>

<VirtualHost 192.168.0.2:443>
        ServerName localhost
        ServerAdmin [email][email protected][/email]
       [color=red] AliasMatch ^/~([^/]+)(/.*)* /home/$1/public_html$2[/color]
        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

        [color=red]CustomLog /var/log/httpd/homedir.log homedir[/color]
</VirtualHost>

The logformat is the 5th line.
 
Back
Top