]> ruin.nu Git - ndwebbie.git/blobdiff - apache-conf.conf
Use markitup editor on forum
[ndwebbie.git] / apache-conf.conf
index 521331101c7abb25ef509b531fc5fc1c85173bba..4c21de9a6bc84d90a1378bef9d88c229157258b0 100644 (file)
 
 <VirtualHost *:80>
        ServerName nd.ruin.nu
-       ServerName ndtest.ruin.nu
+       ServerAlias ndtest.ruin.nu
 
        ErrorLog /var/log/apache2/ndawn_error_log
        <IfModule mod_log_config.c>
                #TransferLog logs/ndawn_access_log
-               CustomLog /var/log/apache2/ndawn_access_log "%h %l %u [%{%F %H:%M:%S}t] \"%r\" %>s %b %T \"%{Referer}i\" \"%{User-Agent}i\""
+               CustomLog /var/log/apache2/ndawn_access_log "%h %l %u [%{%F %H:%M:%S}t] \"%r\" %>s %b %T \"%{Referer}i\" \"%{User-Agent}i\" PUB"
        </IfModule>
 
        Alias /static /var/www/ndawn/root/static
@@ -73,12 +73,12 @@ NameVirtualHost *:443
 
 <VirtualHost *:443>
        ServerName nd.ruin.nu
-       ServerName ndtest.ruin.nu
+       ServerAlias ndtest.ruin.nu
 
        ErrorLog /var/log/apache2/ndawn_error_log
        <IfModule mod_log_config.c>
                #TransferLog logs/ndawn_access_log
-               CustomLog /var/log/apache2/ndawn_access_log "%h %l %u [%{%F %H:%M:%S}t] \"%r\" %>s %b %T \"%{Referer}i\" \"%{User-Agent}i\""
+               CustomLog /var/log/apache2/ndawn_access_log "%h %l %u [%{%F %H:%M:%S}t] \"%r\" %>s %b %T \"%{Referer}i\" \"%{User-Agent}i\" SSL"
        </IfModule>
 
        SSLEngine on
@@ -112,6 +112,7 @@ NameVirtualHost *:443
                #ExpiresByType text/css "access plus 1 week"
                #ExpiresByType application/javascript "access plus 1 week"
                #ExpiresByType image/png "access plus 1 week"
+               Header append Cache-Control "public"
 
                AddOutputFilterByType DEFLATE text/html
                AddOutputFilterByType DEFLATE text/xml