...

View Full Version : Access Log & SSL



dacoder96
08-13-2011, 02:34 AM
I am running a website off a Ubuntu desktop with XAMPP installed on it. I have forwarded port 443 to it so that I can access my website through a encrypted connection but my access log is logging files that I don't want it to log.

I have stopped it from logging images and certain files (when not using SSL) but once I start using the encrypted connection it logs EVERYTHING.

How do I prevent this? I have gone through several config files but haven't found anything.

Thanks.

Cags
08-13-2011, 07:42 AM
How did you prevent it from logging certain items? If it was via the vhost, did you set up an additional vhost for the connection? If you didn't then you probably aren't actually on a secure connection anyway, just using port 443 doesn't ensure security.

dacoder96
08-14-2011, 04:15 AM
<IfModule log_config_module>
#
# The following directives define some format nicknames for use with
# a CustomLog directive (see below).
#
SetEnvIf Request_URI "/ajax/" dontlog
SetEnvIf Request_URI "/phpmyadmin/" dontlog
SetEnvIf Request_URI ".(jpg|jpeg|png|css|gif|ico|js)$" dontlog
SetEnvIf Request_URI "^/dyn_style.php" dontlog

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l uID: %{userIDNote}n %u %t \"%r\" %>s %b" common




<IfModule logio_module>
# You need to enable mod_logio.c to use %I and %O

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
</IfModule>

#
# The location and format of the access logfile (Common Logfile Format).
# If you do not define any access logfiles within a <VirtualHost>
# container, they will be logged here. Contrariwise, if you *do*
# define per-<VirtualHost> access logfiles, transactions will be
# logged therein and *not* in this file.
#
CustomLog logs/access_log common env=!dontlog

#
# If you prefer a logfile with access, agent, and referer information
# (Combined Logfile Format) you can use the following directive.
#
#CustomLog logs/access_log combined\
</IfModule>

No, I am not just using virtual hosts. The connection is being encrypted through SSL.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum