Dear Wiki user, You have subscribed to a wiki page or wiki category on "Httpd Wiki" for change notification.
The following page has been changed by megaspaz: http://wiki.apache.org/httpd/Info/CommonMisconfigurations The comment on the change is: Added new misconfig. ------------------------------------------------------------------------------ <Directory /> is not a URL path. It is a filesystem path. Making changes in this <Directory> block will have no effect on your website !DocumentRoot. In the example above, what might have been attempted was being able to use htaccess in the !DocumentRoot. The problem being that the htaccess file will still be ignored because the !AllowOverride is set in the wrong <Directory> block.[[BR]][[BR]] + ==== Changing the DocumentRoot value without updating the old DocumentRoot's <Directory> block ==== + Example: + {{{# Your old DocumentRoot value was /usr/local/apache2/htdocs + DocumentRoot /var/www/html + # + # This should be changed to whatever you set DocumentRoot to. + # + <Directory /usr/local/apache2/htdocs> + # Options and access set here. + </Directory> + }}} + + Access and options in Apache must be expressly given. Since there is no <Directory> block for the new document root that grants any access or options, you will get a permission error when you try to access your site.[[BR]][[BR]] + ==== Trying to set directory and index options in a script aliased directory. ==== Example: {{{ScriptAlias /cgi-bin/ /var/www/cgi-bin/
