You are here: apache » example of a name virtual host config file
Example of a name virtual host config file
- Written By
- PHPin24
- Submitted At
- 2009-07-20 20:35:12
- Num Views
- 997
- Category
- Apache
|
This file would generally be located within your http.conf file or included in /etc/httpd/confs/example.conf The incorporates almost all the features that YSLOW recommends and includes best practices for website performance in just one config file. There are a few others, but these are the most important ones. Listen 80 <VirtualHost _default_:80> UseCanonicalName Off VirtualDocumentRoot /home/thefolder/%1 <Directory /home/thefolder> ExpiresActive on ExpiresByType image/jpeg "access 1 month" ExpiresByType image/gif "access 1 month" ExpiresByType text/css "access 1 year" ExpiresByType image/png "access 1 month" ExpiresByType application/x-javascript "access 1 year" ExpiresByType application/x-shockwave-flash "access 1 year" SetOutputFilter DEFLATE Options Indexes FollowSymLinks MultiViews FileETag none AllowOverride Options FileInfo Order allow,deny Allow from all </Directory> </VirtualHost> By PHPin24 @ 2009-07-20 20:35:12
|
