Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Directory-Directives without influencing subdirectories

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  invalid pointer error message  
Author Message
user2834

External


Since: Jun 18, 2004
Posts: 5



(Msg. 1) Posted: Fri Jul 16, 2004 6:41 pm
Post subject: Directory-Directives without influencing subdirectories
Archived from groups: alt>apache>configuration (more info?)

Hi all,

I'm trying to tell apache to make all the files in a directory accessible
for anybody, but not those in the subdirectories.

I tried it with the following lines:

<Directory "/absolute/path">
order deny,allow
deny from all
</Directory>

# Now every request is rejected (even for all subdirectories)


<DirectoryMatch "^/absolute/path$">
<Files *>
order deny,allow
allow from all
</Files>
</DirectoryMatch>

# and this should allow requests for the given absolute path, but not for
its subdirectories. Unfortunately, it denies any request.

The $ sign is the crucial point. It should ensure that this expression
doesn't only match with the absolute path, and no subpaths.

Could anyone tell me the correct regular expression, to solve this?

Thanks in advance,


Can Oezdemir

 >> Stay informed about: Directory-Directives without influencing subdirectories 
Back to top
Login to vote
user2874

External


Since: Jul 14, 2004
Posts: 24



(Msg. 2) Posted: Fri Jul 16, 2004 9:21 pm
Post subject: Re: Directory-Directives without influencing subdirectories [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Can:

 > <DirectoryMatch "^/absolute/path$">

/ before $

<DirectoryMatch "^/absolute/path/$">

?

--
Paweł Zdziarski<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Directory-Directives without influencing subdirectories 
Back to top
Login to vote
user2834

External


Since: Jun 18, 2004
Posts: 5



(Msg. 3) Posted: Fri Jul 16, 2004 9:21 pm
Post subject: Re: Directory-Directives without influencing subdirectories [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"faxe" <patrz-tekst.TakeThisOut@w.sygnatur.ce> schrieb im Newsbeitrag
news:cd8vbg$80c$1@atlantis.news.tpi.pl...
 > Can:
 >
  > > <DirectoryMatch "^/absolute/path$">
 >
 > / before $
 >
 > <DirectoryMatch "^/absolute/path/$">
 >
 > ?
 >

I had already tried that...in vain...thanks, all the same.

Can Oezdemir<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Directory-Directives without influencing subdirectories 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Apache Directives - Hi all, I´m a newbie in Apache. I want to my apache to give information about itself to the client. So i want to use ServerTokens, but I don´t know where to put it in the right directive?!?! This is what I want to di: ServerTokens full Default: full....

Multiple SSL directives - I have tried to add new multiple SSL directives to my httpd.comf but whenever I do it states that they overlap and I may need the NamedVirtualHosts directive, (which I already use in the file for multiple port 80 entries) What am I doing wrong? Mike.

Using variables in configuration directives? - Hi, is it possible to use variables in apache configuration files? e.g. setenv user abc ServerName = domain.com DocumentRoot = /home/user/ServerName etc. Thanks! Peter

problem with Rewrite, proxypass and 'allow from' directives. - Hi all, I'm having a problem with configuration of two web servers. It is a lttle confusing but I shall try and explain... two web servers ... www.domain.name www2.domain.name The two servers are on the same network. Most of the user...

externalising <virtual host> directives - Hi, Which file(s) must i modify to put my <virtual host> directives elsewhere than in my http.conf ? I don't want to modify this one so... I know that it's possible to specify a config file for each virtual host but i don't know how.. Thanks for ...
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]