This is a discussion on Re: <directory> questions within the Apache Web Server forums, part of the Web Server and Related Forums category; Erik wrote: > I have an httpd.conf file with all kinds of <directory> blocks. > > The ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Erik wrote:
> I have an httpd.conf file with all kinds of <directory> blocks. > > The question is, if this is correct: > > ServerRoot "/etc/httpd" > VirtualDocumentRoot /var/www/%0/htdocs > > <Directory / > > Order Deny,Allow > Deny from all > </Directory> > > <Directory /var/www/*/htdocs > > Order Deny,Allow > Allow from all > </Directory> > > > there is a file /var/www/www.mydomain.com/htdocs/index.html > > Can a user still get at index.html, even if now I have closed / ? > krijgen ? Yes. The interaction of different configuration sections is discussed in detail at http://httpd.apache.org/docs-2.0/sections.html#mergin The second <Directory> section will apply after the first one, and will therefore override it, allow access. > > In the line <Directory / > , is the system root directory meant or the > ServerRoot ? System root. See: http://httpd.apache.org/docs-2.0/sec...l#file-and-web Joshua. |