|
| 1 | +WSGIDaemonProcess python-blogs python-home=/var/www/python-blogs/venv python-path=/var/www/python-blogs/python-blogs restart-interval=3600 request-timeout=600 |
| 2 | +WSGIProcessGroup python-blogs |
| 3 | +WSGIScriptAlias / /var/www/python-blogs/python-blogs/gsoc/wsgi.py |
| 4 | + |
| 5 | +<Directory /var/www/python-blogs/python-blogs/gsoc> |
| 6 | + <Files wsgi.py> |
| 7 | + Require all granted |
| 8 | + </Files> |
| 9 | +</Directory> |
| 10 | + |
| 11 | +Alias /static /var/www/python-blogs/python-blogs/static |
| 12 | +<Directory /var/www/python-blogs/python-blogs/static> |
| 13 | +Require all granted |
| 14 | +</Directory> |
| 15 | + |
| 16 | +Alias /media /var/www/python-blogs/python-blogs/media |
| 17 | +<Directory /var/www/python-blogs/python-blogs/media> |
| 18 | +Require all granted |
| 19 | +</Directory> |
| 20 | + |
| 21 | +Alias /logs /var/www/python-blogs/python-blogs/logs |
| 22 | +<Directory /var/www/python-blogs/python-blogs/logs> |
| 23 | +Options +Indexes |
| 24 | +Require all granted |
| 25 | +</Directory> |
| 26 | + |
| 27 | +# BEGIN Compress text files |
| 28 | +<ifModule mod_deflate.c> |
| 29 | +DeflateCompressionLevel 3 |
| 30 | +DeflateMemLevel 8 |
| 31 | +DeflateWindowSize 10 |
| 32 | + |
| 33 | +AddOutputFilterByType DEFLATE text/plain |
| 34 | +AddOutputFilterByType DEFLATE text/html |
| 35 | +AddOutputFilterByType DEFLATE text/xml |
| 36 | +AddOutputFilterByType DEFLATE text/css |
| 37 | +AddOutputFilterByType DEFLATE application/xml |
| 38 | +AddOutputFilterByType DEFLATE application/xhtml+xml |
| 39 | +AddOutputFilterByType DEFLATE application/rss+xml |
| 40 | +AddOutputFilterByType DEFLATE application/javascript |
| 41 | +AddOutputFilterByType DEFLATE application/x-javascript |
| 42 | +</ifModule> |
| 43 | +# END Compress text files |
| 44 | + |
| 45 | +# BEGIN Expire headers |
| 46 | +<ifModule mod_expires.c> |
| 47 | + ExpiresActive On |
| 48 | + ExpiresDefault "access plus 5 seconds" |
| 49 | + ExpiresByType image/vnd.microsoft.icon "access plus 2592000 seconds" |
| 50 | + ExpiresByType image/jpeg "access plus 2592000 seconds" |
| 51 | + ExpiresByType image/png "access plus 2592000 seconds" |
| 52 | + ExpiresByType image/gif "access plus 2592000 seconds" |
| 53 | + ExpiresByType application/x-shockwave-flash "access plus 2592000 seconds" |
| 54 | + ExpiresByType text/css "access plus 604800 seconds" |
| 55 | + ExpiresByType text/javascript "access plus 216000 seconds" |
| 56 | + ExpiresByType application/javascript "access plus 216000 seconds" |
| 57 | + ExpiresByType application/x-javascript "access plus 216000 seconds" |
| 58 | + ExpiresByType text/html "access plus 600 seconds" |
| 59 | + ExpiresByType application/xhtml+xml "access plus 600 seconds" |
| 60 | +</ifModule> |
| 61 | +# END Expire headers |
| 62 | + |
| 63 | +# BEGIN Cache-Control Headers |
| 64 | +<ifModule mod_headers.c> |
| 65 | + RequestHeader edit "If-None-Match" '^"((.*)-gzip)"$' '"$1", "$2"' |
| 66 | + <filesMatch "\.(ico)$"> |
| 67 | + Header set Cache-Control "immutable" |
| 68 | + </filesMatch> |
| 69 | + <filesMatch "\.(jpe?g|png|gif|swf)$"> |
| 70 | + Header set Cache-Control "public" |
| 71 | + </filesMatch> |
| 72 | + <filesMatch "\.(css|js)$"> |
| 73 | + Header set Cache-Control "public" |
| 74 | + </filesMatch> |
| 75 | + <filesMatch "\.(x?html?|php)$"> |
| 76 | + Header set Cache-Control "private, must-revalidate" |
| 77 | + </filesMatch> |
| 78 | +</ifModule> |
| 79 | +# END Cache-Control Headers |
| 80 | + |
| 81 | +# BEGIN Turn ETags Off |
| 82 | +FileETag None |
| 83 | +# END Turn ETags Off |
0 commit comments