]> git.pld-linux.org Git - packages/drupal.git/commitdiff
- default config is vhost based
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 18 Aug 2005 16:14:17 +0000 (16:14 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    drupal.conf -> 1.6

drupal.conf

index 43997c5b3259fc009359e1c0a777245f7e332cd9..c5062cdaff21277bc98edd3612a5e099085e1f27 100644 (file)
@@ -1,6 +1,10 @@
 #
-# 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
@@ -44,8 +48,8 @@
 
         # 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
This page took 0.070201 seconds and 4 git commands to generate.