Re: <directory> questions

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 ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-25-2004
Joshua Slive
 
Posts: n/a
Default Re: <directory> questions

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.

  #2 (permalink)  
Old 08-26-2004
Erik
 
Posts: n/a
Default Re: <directory> questions

Thank you. most helpfull.
I was relying on O'Reilly's 3rd edition "Apache, the
(not-so-)definitive guide" for my education.

apache.org seems a necessary addition. As I should have known :-)

fr gr
Erik
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 02:58 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0