X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=httpd%2Fplewww.conf;fp=httpd%2Fplewww.conf;h=2240a7b51f76ccdb4e5ee2923ba6ecd65fc71fae;hb=53059600b94080446aa3621e17ed8c9b710d30f2;hp=0000000000000000000000000000000000000000;hpb=847006de47d4f1868cecf6126801a94e26f709ad;p=plewww.git diff --git a/httpd/plewww.conf b/httpd/plewww.conf new file mode 100644 index 0000000..2240a7b --- /dev/null +++ b/httpd/plewww.conf @@ -0,0 +1,100 @@ +# +# Apache/PHP/Drupal settings: +# + + + +# Protect files and directories from prying eyes. + + Order deny,allow + Deny from all + + +# Set some options. +Options -Indexes +Options +FollowSymLinks + +# Customized error messages. +ErrorDocument 404 index.php + +# Set the default handler. +DirectoryIndex index.php + +# Override PHP settings. More in sites/default/settings.php +# but the following cannot be changed at runtime. + +# PHP 4, Apache 1 + + php_value magic_quotes_gpc 0 + php_value register_globals 0 + php_value session.auto_start 0 + + +# PHP 4, Apache 2 + + php_value magic_quotes_gpc 0 + php_value register_globals 0 + php_value session.auto_start 0 + + +# PHP 5, Apache 1 and 2 + + php_value magic_quotes_gpc 0 + php_value register_globals 0 + php_value session.auto_start 0 + + +# Reduce the time dynamically generated pages are cache-able. +# note: drupal's botstrap.inc does: header("Expires: Sun, 19 Nov 1978 05:00:00 GMT"); +# so forget about optimizing php content +ExpiresActive On + +ExpiresDefault "access plus 12 hours" + + +# Turn on gzip compression + +SetOutputFilter DEFLATE + + +# Various rewrite rules. + + RewriteEngine on + + # If your site can be accessed both with and without the prefix www. + # you can use one of the following settings to force user to use only one option: + # + # If you want the site to be accessed WITH the www. only, adapt and uncomment the following: + # RewriteCond %{HTTP_HOST} !^www\.example\.com$ [NC] + # RewriteRule .* http://www.example.com/ [L,R=301] + # + # If you want the site to be accessed only WITHOUT the www. , adapt and uncomment the following: + # RewriteCond %{HTTP_HOST} !^example\.com$ [NC] + # RewriteRule .* http://example.com/ [L,R=301] + + + # Modify the RewriteBase if you are using Drupal in a subdirectory and + # the rewrite rules are not working properly. + # RewriteBase /drupal + + # Rewrite old-style URLs of the form 'node.php?id=x'. + #RewriteCond %{REQUEST_FILENAME} !-f + #RewriteCond %{REQUEST_FILENAME} !-d + #RewriteCond %{QUERY_STRING} ^id=([^&]+)$ + #RewriteRule node.php index.php?q=node/view/%1 [L] + + # Rewrite old-style URLs of the form 'module.php?mod=x'. + #RewriteCond %{REQUEST_FILENAME} !-f + #RewriteCond %{REQUEST_FILENAME} !-d + #RewriteCond %{QUERY_STRING} ^mod=([^&]+)$ + #RewriteRule module.php index.php?q=%1 [L] + + # Rewrite current-style URLs of the form 'index.php?q=x'. + RewriteCond %{REQUEST_FILENAME} !-f + RewriteCond %{REQUEST_FILENAME} !-d + RewriteRule ^(.*)$ index.php?q=$1 [L,QSA] + + + + +# $Id$