Hello.
I want to exlude certain urls froma logging. I made custom configuration for domain in DA (guide from here: https://www.directadmin.com/features.php?id=1712):
After that, config look's like that:
When i make request to mydomain.com/exlude_from_log/index.php?something=1 httpd still log the access.
What im doing wrong?
I want to exlude certain urls froma logging. I made custom configuration for domain in DA (guide from here: https://www.directadmin.com/features.php?id=1712):
Code:
SetEnvIf Request_URI "^/exlude_from_log/$" dontlog
|?COMBINED_LOG=combined env=!dontlog|
After that, config look's like that:
Code:
<VirtualHost 1.1.1.1:8080 127.0.0.1:8080 >
SetEnvIf Request_URI "^/exlude_from_log/$" dontlog
ServerName www.mydomain.com
ServerAlias www.mydomain.com mydomain.com
ServerAdmin [email protected]
DocumentRoot /home/user/domains/mydomain.com/public_html
ScriptAlias /cgi-bin/ /home/user/domains/mydomain.com/public_html/cgi-bin/
UseCanonicalName OFF
<IfModule !mod_ruid2.c>
SuexecUserGroup user user
</IfModule>
CustomLog /var/log/httpd/domains/mydomain.com.bytes bytes
CustomLog /var/log/httpd/domains/mydomain.com.log combined env=!dontlog
ErrorLog /var/log/httpd/domains/mydomain.com.error.log
<Directory /home/user/domains/mydomain.com/public_html>
<FilesMatch "\.(inc|php|phtml|phps|php74)$">
<If "-f %{REQUEST_FILENAME}">
#ProxyErrorOverride on
AddHandler "proxy:unix:/usr/local/php74/sockets/user.sock|fcgi://localhost" .inc .php .phtml .php74
</If>
</FilesMatch>
</Directory>
</VirtualHost>
When i make request to mydomain.com/exlude_from_log/index.php?something=1 httpd still log the access.
What im doing wrong?