Welcome to MobyThreads.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

Wildcard

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  Apache: [Newbie] Stopping hotlinking problem  
Author Message
user2728

External


Since: Mar 28, 2004
Posts: 5



(Msg. 1) Posted: Sun Mar 28, 2004 6:33 pm
Post subject: Wildcard
Archived from groups: alt>apache>configuration (more info?)

How can I secure all directories containing "working" in their path?

I tried the following but did not work:
<directory /docroot/*/working>

Auth ...
UserFile ...
.....
</directory>

If I put in the absolute path (C:/docroot/somedirect/working ) it will pop
up the password window correctly.

Does someone know what the mistake is?

Greetings,

Dirk

 >> Stay informed about: Wildcard 
Back to top
Login to vote
user2348

External


Since: Jun 28, 2003
Posts: 203



(Msg. 2) Posted: Sun Mar 28, 2004 6:33 pm
Post subject: Re: Wildcard [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Dirk Uebber" <dirk.uebber.DeleteThis@t-online.de> wrote in message
news:4066d47f$0$26190$9b622d9e@news.freenet.de...
 > How can I secure all directories containing "working" in their path?
 >
 > I tried the following but did not work:
 > <directory /docroot/*/working>

Try using DirectoryMatch:
<a style='text-decoration: underline;' href="http://httpd.apache.org/docs-2.1/mod/core.html#directorymatch" target="_blank">http://httpd.apache.org/docs-2.1/mod/core.html#directorymatch</a>

Richard.<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Wildcard 
Back to top
Login to vote
user2728

External


Since: Mar 28, 2004
Posts: 5



(Msg. 3) Posted: Sun Mar 28, 2004 8:20 pm
Post subject: Re: Wildcard [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi Richard,

I tried the DirectoryMatch already: still does not work
Do you think the problem is related to Windows?

My folder structure looks like this:

..... htdocs
Web
Web_A/released
Web_A/working
Web_B/released
Web_B/working

So I want to secure only the working directories.

<DirectoryMatch "/Web/*/working/">
Options FollowSymLinks
AllowOverride None

Deny from all
allow from x.x.x.x
AuthName "Modeller access required"
AuthType Basic
AuthUserFile "C:/Programme/Apache Group/Apache2/users/.users"
AuthGroupFile "C:/Programme/Apache Group/Apache2/users/groups"
require group modeller
require valid-user

Satisfy any

</DirectoryMatch>

The following works fine, but I would need to apply this to every directory
;-(

<Directory "C:/Programme/Apache Group/Apache2/htdocs/Web/Web_A/working/">
......

Best regards,

Dirk


"Richard Antony Burton" <richardaburton-NOSPAM-.RemoveThis@hotmail.com> schrieb im
Newsbeitrag news:SKB9c.931533$iA2.116921@news.easynews.com...
 >
 > "Dirk Uebber" <dirk.uebber.RemoveThis@t-online.de> wrote in message
 > news:4066d47f$0$26190$9b622d9e@news.freenet.de...
  > > How can I secure all directories containing "working" in their path?
  > >
  > > I tried the following but did not work:
  > > <directory /docroot/*/working>
 >
 > Try using DirectoryMatch:
<font color=purple> > <a style='text-decoration: underline;' href="http://httpd.apache.org/docs-2.1/mod/core.html#directorymatch</font" target="_blank">http://httpd.apache.org/docs-2.1/mod/core.html#directorymatch</font</a>>
 >
 > Richard.
 >
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Wildcard 
Back to top
Login to vote
user2348

External


Since: Jun 28, 2003
Posts: 203



(Msg. 4) Posted: Sun Mar 28, 2004 8:20 pm
Post subject: Re: Wildcard [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Dirk Uebber" <dirk.uebber DeleteThis @t-online.de> wrote in message
news:4066ed99$0$187$9b622d9e@news.freenet.de...

 > <DirectoryMatch "/Web/*/working/">

You are missing a fullstop in there, this is a regular expression so * isn't a
wildcard, it's a quantifier. Try:
<DirectoryMatch "/Web/.*/working/">

Richard.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Wildcard 
Back to top
Login to vote
user2728

External


Since: Mar 28, 2004
Posts: 5



(Msg. 5) Posted: Sun Mar 28, 2004 8:37 pm
Post subject: Re: Wildcard [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Sorry, but it still does not work somehow Sad No username/password dialog
shows up,
if I type in <a style='text-decoration: underline;' href="http://hostname/Web/Web_A/working/" target="_blank">http://hostname/Web/Web_A/working/</a>

Can u think of something else that may cause the problem?

Greetings,

Dirk
"Richard Antony Burton" <richardaburton-NOSPAM-.RemoveThis@hotmail.com> schrieb im
Newsbeitrag news:BdC9c.933025$iA2.117093@news.easynews.com...
 >
 > "Dirk Uebber" <dirk.uebber.RemoveThis@t-online.de> wrote in message
 > news:4066ed99$0$187$9b622d9e@news.freenet.de...
 >
  > > <DirectoryMatch "/Web/*/working/">
 >
 > You are missing a fullstop in there, this is a regular expression so *
isn't a
 > wildcard, it's a quantifier. Try:
 > <DirectoryMatch "/Web/.*/working/">
 >
 > Richard.
 >
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Wildcard 
Back to top
Login to vote
user2348

External


Since: Jun 28, 2003
Posts: 203



(Msg. 6) Posted: Sun Mar 28, 2004 8:37 pm
Post subject: Re: Wildcard [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Dirk Uebber" <dirk.uebber RemoveThis @t-online.de> wrote in message
news:4066f18f$0$166$9b622d9e@news.freenet.de...
 > Sorry, but it still does not work somehow Sad No username/password dialog
 > shows up,
<font color=purple> > if I type in <a style='text-decoration: underline;' href="http://hostname/Web/Web_A/working/</font" target="_blank">http://hostname/Web/Web_A/working/</font</a>>
 >
 > Can u think of something else that may cause the problem?

Works fine on mine. You may want to check the case of all your directory names,
can't think of anything else.

Richard.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Wildcard 
Back to top
Login to vote
Display posts from previous:   
   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 ]