forked from wulff/drh_dk
-
Notifications
You must be signed in to change notification settings - Fork 0
Apache configuration
wulff edited this page Apr 12, 2011
·
2 revisions
In addition to the default modules, mod_rewrite
must be enabled to use clean URLs and mod_expires
must be enabled to provide the correct HTTP headers.
<VirtualHost *:80>
ServerName den-rytmiske.dk
ServerAlias www.den-rytmiske.dk drh.dk
Redirect / http://www.drh.dk/
</VirtualHost>
<VirtualHost *:80>
ServerName www.drh.dk
ServerAlias cdn.drh.dk
ServerAdmin [email protected]
DocumentRoot /var/www/drh.dk/public
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
<Directory /var/www/drh.dk/public>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
# Enable deflate for CSS and Javascript
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE text/css
# Exclude Not compatible browsers.
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
ErrorLog /var/log/apache2/error.log
LogLevel warn
CustomLog /var/log/apache2/access.log combined
</VirtualHost>