]> git.pld-linux.org Git - packages/drupal.git/blame - drupal.conf
- use SetHandler None, it's at least documented
[packages/drupal.git] / drupal.conf
CommitLineData
ad7425e6 1#
abf9ab9f
ER
2# Apache/PHP/Drupal settings.
3
4# Default setup is for running drupal in vhost.
5# You can setup drupal as alias /drupal, but you need to comment/uncomment few things.
ad7425e6 6#
abf9ab9f 7# Please note that drupal-ID's don't work in subdirs, you need vhost for that.
ad7425e6 8
dee1e9df 9<Directory /usr/share/drupal/htdocs>
eb3fbb5f 10 Options FollowSymLinks
dee1e9df 11 AllowOverride None
c03c3c8b
ER
12 Order allow,deny
13 Allow from all
ad7425e6 14
eb3fbb5f 15 # Set the default handler.
05607353
ER
16 <IfModule mod_dir.c>
17 DirectoryIndex index.php
18 </IfModule>
ad7425e6 19
eb3fbb5f
ER
20 # Override PHP settings. More exist in sites/default/settings.php, but
21 # the following cannot be changed at runtime. The first IfModule is
22 # for Apache 1.3, the second for Apache 2.
64e5217f 23 # php4 module under Apache 1.3
eb3fbb5f
ER
24 <IfModule mod_php4.c>
25 php_value magic_quotes_gpc 0
26 php_value register_globals 0
27 php_value session.auto_start 0
6060a4f9 28 php_value memory_limit 12M
eb3fbb5f 29 </IfModule>
64e5217f
ER
30 # php5 module under Apache 1.3
31 <IfModule mod_php5.c>
32 php_value magic_quotes_gpc 0
33 php_value register_globals 0
34 php_value session.auto_start 0
35 php_value memory_limit 12M
36 </IfModule>
ad7425e6 37
64e5217f 38 # php under Apache 2.x module
eb3fbb5f
ER
39 <IfModule sapi_apache2.c>
40 php_value magic_quotes_gpc 0
41 php_value register_globals 0
42 php_value session.auto_start 0
6060a4f9 43 php_value memory_limit 12M
eb3fbb5f 44 </IfModule>
ad7425e6 45
eb3fbb5f
ER
46 # Reduce the time dynamically generated pages are cache-able.
47 <IfModule mod_expires.c>
48 ExpiresByType text/html A1
49 </IfModule>
ad7425e6 50
eb3fbb5f
ER
51 # Various rewrite rules.
52 <IfModule mod_rewrite.c>
53 RewriteEngine on
54
55 # Modify the RewriteBase if you are using Drupal in a subdirectory and
56 # the rewrite rules are not working properly.
abf9ab9f
ER
57 # Enable RewriteBase if you have drupal configured in virtualhost root.
58 #RewriteBase /drupal
eb3fbb5f
ER
59
60 # Rewrite old-style URLs of the form 'node.php?id=x'.
61 #RewriteCond %{REQUEST_FILENAME} !-f
62 #RewriteCond %{REQUEST_FILENAME} !-d
63 #RewriteCond %{QUERY_STRING} ^id=([^&]+)$
64 #RewriteRule node.php index.php?q=node/view/%1 [L]
65
66 # Rewrite old-style URLs of the form 'module.php?mod=x'.
67 #RewriteCond %{REQUEST_FILENAME} !-f
68 #RewriteCond %{REQUEST_FILENAME} !-d
69 #RewriteCond %{QUERY_STRING} ^mod=([^&]+)$
70 #RewriteRule module.php index.php?q=%1 [L]
71
72 # Rewrite current-style URLs of the form 'index.php?q=x'.
73 RewriteCond %{REQUEST_FILENAME} !-f
74 RewriteCond %{REQUEST_FILENAME} !-d
75 RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
76 </IfModule>
ad7425e6 77
eb3fbb5f
ER
78 # Customized error messages.
79 ErrorDocument 404 /index.php
80</Directory>
ad7425e6 81
abf9ab9f
ER
82# If having drupal installed as /drupal
83#<IfModule mod_alias.c>
84# Alias /drupal/files /var/lib/drupal
85# Alias /drupal /usr/share/drupal/htdocs
86#</IfModule>
87#
88#<Location /drupal>
89# # Customized error messages.
90# ErrorDocument 404 /drupal/index.php
91#</Location>
ad7425e6 92
bfb2b7e6 93<Directory /var/lib/drupal>
67286de4 94 Allow from all
4d222b5b 95 SetHandler None
bfb2b7e6
ER
96</Directory>
97
abf9ab9f
ER
98<VirtualHost *:80>
99 ServerName drupal
100 ServerAlias www.drupal
101 DocumentRoot /usr/share/drupal/htdocs
ad7425e6 102
abf9ab9f
ER
103 <IfModule mod_alias.c>
104 Alias /files /var/lib/drupal
105 </IfModule>
106</VirtualHost>
d9073a8d 107
dee1e9df 108# vim: filetype=apache ts=4 sw=4 et
This page took 0.578696 seconds and 4 git commands to generate.