Re: [users@httpd] Trouble with regexp on <Directory>, using Apache 1.3.33

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Spike, thanks for your post.

That probably is a good approach, I could even symlink the second .htaccess to make sure both files are consistent.

Trouble is (and I forgot mention this in my first post, sorry about that), that I plan to use the same method (a regexp) for a few <Location> directives, where the locations are virtual (eg. server-status and throttle-status) and .htaccess can't be used.

Besides that, I'm also interested in why the regexp isn't working, just to know what went wrong.

Bottom line of my problem is I'm trying to make sure that every <Directory> (or virtual <Location>) is using the exact same list of restrictions.
I've tried solving this by doing something like

<Directory /foo>
include restrict.conf
</Directory>

where restrict.conf contains
---
order allow,deny
allow from foo
allow from bar
---
But Apache didn't like that.

Any other ideas to solve this are welcome as well.

Thanks,
Martijn.

At 14:20 24-8-2005 -0700, you wrote:
Martijn,

Maybe I'm missing something, but in this case wouldn't using .htaccess be a good approach?

spike


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux