Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Jul 2009
    Location
    Most of the time - internet
    Posts
    85
    Thanks
    0
    Thanked 1 Time in 1 Post

    Access Log & SSL

    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.

  • #2
    New Coder
    Join Date
    Jul 2011
    Posts
    67
    Thanks
    0
    Thanked 13 Times in 13 Posts
    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.

  • #3
    New Coder
    Join Date
    Jul 2009
    Location
    Most of the time - internet
    Posts
    85
    Thanks
    0
    Thanked 1 Time in 1 Post
    Code:
    <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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •