Skip to content

Instantly share code, notes, and snippets.

@ZiTAL ZiTAL/eitbcom11
Created Mar 3, 2014

Embed
What would you like to do?
apache virtualhost
#a2ensite eitbcom11
#ln -s /etc/apache2/sites-available/eitbcom11 /etc/apache2/enabled/eitbcom11
#Listen 80
<VirtualHost *:80>
ServerAdmin bilbao_iban@eitb.com
DocumentRoot /home/projects/eitbcom11/public_html
ServerName eitbcom11.iban
<FilesMatch "^\.ht">
Order allow,deny
Deny from all
</FilesMatch>
<Directory "/home/projects/eitbcom11/public_html">
AllowOverride All
allow from all
</Directory>
ErrorLog /var/log/apache2/eitbcom11-error.log
#
# LogLevel: Control the number of messages logged to the error_log.
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
#
LogLevel warn
CustomLog /var/log/apache2/eitbcom11-access.log common
#DefaultType text/plain
<IfModule mime_module>
TypesConfig conf/mime.types
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddType application/x-httpd-php .php .php5
AddType application/x-httpd-php-source .phps
</IfModule>
ExpiresActive On
ExpiresDefault A604800
ExpiresByType image/x-icon A25920000
ExpiresByType application/x-javascript A25920000
ExpiresByType text/css A25920000
ExpiresByType image/gif A25920000
ExpiresByType image/png A25920000
ExpiresByType image/jpeg A25920000
ExpiresByType text/plain A604800
ExpiresByType application/x-shockwave-flash A25920000
ExpiresByType video/x-flv A25920000
ExpiresByType application/pdf A25920000
ExpiresByType text/html A604800
#Header set Vary 0
</VirtualHost>
# /etc/hosts
127.0.0.1 iban.eitb.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.