Skip to content

Commit

Permalink
Sample apache2 site config for a Drupal demo site in Ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
jrbeeman committed Aug 11, 2010
1 parent ff545b7 commit df49a38
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions ubuntu-drupal-demo_apache2-conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<VirtualHost *:80>
DocumentRoot /var/www/drupal-demo
<Directory /var/www/drupal-demo>
Options All
AllowOverride All
Order allow,deny
Allow from all
# Gzip html, css, js, etc.
AddOutputFilterByType DEFLATE text/html text/css text/plain text/xml application/x-javascript application/json
# Set expires headers on html, css, js, etc.
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType text/html "access plus 1 seconds"
ExpiresByType image/gif "access plus 1 week"
ExpiresByType image/jpeg "access plus 1 week"
ExpiresByType image/png "access plus 1 week"
ExpiresByType text/css "access plus 1 week"
ExpiresByType text/javascript "access plus 1 week"
ExpiresByType application/x-javascript "access plus 1 week"
</IfModule>
# Set ETags
FileETag MTime Size
</Directory>

ErrorLog /var/log/apache2/drupal-demo_error.log
CustomLog /var/log/apache2/drupal-demo_access.log combined
</VirtualHost>

0 comments on commit df49a38

Please sign in to comment.