]> git.pld-linux.org Git - packages/drupal.git/blame - drupal.conf
- merged with mine
[packages/drupal.git] / drupal.conf
CommitLineData
ad7425e6
ER
1#
2# Apache/PHP/Drupal settings:
3#
4
dee1e9df 5<Directory /usr/share/drupal/htdocs>
eb3fbb5f 6 Options FollowSymLinks
dee1e9df
ER
7 AllowOverride None
8 <IfModule mod_access.c>
9 order allow,deny
10 allow from all
11 </IfModule>
12 <IfModule mod_php4.c>
13 php_value include_path "/usr/share/drupal:/usr/share/pear:."
14 </IfModule>
ad7425e6 15
eb3fbb5f
ER
16 # Set the default handler.
17 DirectoryIndex index.php
ad7425e6 18
eb3fbb5f
ER
19 # Override PHP settings. More exist in sites/default/settings.php, but
20 # the following cannot be changed at runtime. The first IfModule is
21 # for Apache 1.3, the second for Apache 2.
22 <IfModule mod_php4.c>
23 php_value magic_quotes_gpc 0
24 php_value register_globals 0
25 php_value session.auto_start 0
26 </IfModule>
ad7425e6 27
eb3fbb5f
ER
28 <IfModule sapi_apache2.c>
29 php_value magic_quotes_gpc 0
30 php_value register_globals 0
31 php_value session.auto_start 0
32 </IfModule>
ad7425e6 33
eb3fbb5f
ER
34 # Reduce the time dynamically generated pages are cache-able.
35 <IfModule mod_expires.c>
36 ExpiresByType text/html A1
37 </IfModule>
ad7425e6 38
eb3fbb5f
ER
39 # Various rewrite rules.
40 <IfModule mod_rewrite.c>
41 RewriteEngine on
42
43 # Modify the RewriteBase if you are using Drupal in a subdirectory and
44 # the rewrite rules are not working properly.
45 # Comment it out if you have drupal configured in virtualhost root.
46 RewriteBase /drupal
47
48 # Rewrite old-style URLs of the form 'node.php?id=x'.
49 #RewriteCond %{REQUEST_FILENAME} !-f
50 #RewriteCond %{REQUEST_FILENAME} !-d
51 #RewriteCond %{QUERY_STRING} ^id=([^&]+)$
52 #RewriteRule node.php index.php?q=node/view/%1 [L]
53
54 # Rewrite old-style URLs of the form 'module.php?mod=x'.
55 #RewriteCond %{REQUEST_FILENAME} !-f
56 #RewriteCond %{REQUEST_FILENAME} !-d
57 #RewriteCond %{QUERY_STRING} ^mod=([^&]+)$
58 #RewriteRule module.php index.php?q=%1 [L]
59
60 # Rewrite current-style URLs of the form 'index.php?q=x'.
61 RewriteCond %{REQUEST_FILENAME} !-f
62 RewriteCond %{REQUEST_FILENAME} !-d
63 RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
64 </IfModule>
ad7425e6 65
eb3fbb5f
ER
66 # Customized error messages.
67 ErrorDocument 404 /index.php
68</Directory>
ad7425e6 69
eb3fbb5f
ER
70<IfModule mod_alias.c>
71 Alias /drupal /usr/share/drupal/htdocs
ad7425e6
ER
72</IfModule>
73
eb3fbb5f
ER
74# Comment out this block if you have drupal configured in virtualhost root.
75<Location /drupal>
76 # Customized error messages.
77 ErrorDocument 404 /drupal/index.php
78</Location>
ad7425e6 79
dee1e9df 80# vim: filetype=apache ts=4 sw=4 et
This page took 0.074276 seconds and 4 git commands to generate.