#
-# Apache/PHP/Drupal settings:
+# Apache/PHP/Drupal settings.
+
+# Default setup is for running drupal in vhost.
+# You can setup drupal as alias /drupal, but you need to comment/uncomment few things.
#
+# Please note that drupal-ID's don't work in subdirs, you need vhost for that.
<Directory /usr/share/drupal/htdocs>
Options FollowSymLinks
# Modify the RewriteBase if you are using Drupal in a subdirectory and
# the rewrite rules are not working properly.
- # Comment it out if you have drupal configured in virtualhost root.
- RewriteBase /drupal
+ # Enable RewriteBase if you have drupal configured in virtualhost root.
+ #RewriteBase /drupal
# Rewrite old-style URLs of the form 'node.php?id=x'.
#RewriteCond %{REQUEST_FILENAME} !-f
ErrorDocument 404 /index.php
</Directory>
-<IfModule mod_alias.c>
- Alias /drupal /usr/share/drupal/htdocs
-</IfModule>
+# If having drupal installed as /drupal
+#<IfModule mod_alias.c>
+# Alias /drupal/files /var/lib/drupal
+# Alias /drupal /usr/share/drupal/htdocs
+#</IfModule>
+#
+#<Location /drupal>
+# # Customized error messages.
+# ErrorDocument 404 /drupal/index.php
+#</Location>
-# Comment out this block if you have drupal configured in virtualhost root.
-<Location /drupal>
- # Customized error messages.
- ErrorDocument 404 /drupal/index.php
-</Location>
+<VirtualHost *:80>
+ ServerName drupal
+ ServerAlias www.drupal
+ DocumentRoot /usr/share/drupal/htdocs
-# use something like this for vhost setup, and remember to disable Alias
-# /drupal and RewriteBase /drupal above.
-# Please note that drupal-ID's don't work in subdirs, you need vhost for that.
-#<VirtualHost *:80>
-# ServerName drupal
-# DocumentRoot /usr/share/drupal/htdocs
-#</VirtualHost>
+ <IfModule mod_alias.c>
+ Alias /files /var/lib/drupal
+ </IfModule>
+</VirtualHost>
# vim: filetype=apache ts=4 sw=4 et