[users@httpd] Using regular expressions in Directory configuration

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

 



I read in the apache manual that <Directory> supports regular expressions to
match which directory is being used.

I'm wondering if it is possible to hack this somehow to set the
php_admin_value open_basedir configuration to chroot users into a regular
expression matched directory?

Ie, if you have set up /home/web/foobar.com/username and the user accesses
http://foobar.com/username/subdirectory. I'd then like to match the username
and set the open_basedir to /home/web/foobar.com/username.

In this case, all users have 1st level directory names under
/home/web/foobar.com

Is this possible at all?

Mattias Segerdahl
EMS IT- & Säkerhetslösningar

Påskbergatan 10, 41268 Göteborg
Telephone: +46-31-7034120
Cellular: +46-735-867626
Fax: +46-735-867626


Vi ber dig lägga märke till att detta e-postmeddelande kan innehålla
konfidentiell information. Om du felaktigt blivit mottagare av detta
meddelande, ber vi dig informera avsändaren om felet genom att använda
svar-funktionen. Vi ber dig också att radera e-postmeddelandet utan att
skicka det vidare eller kopiera det.
Trots att vi intygar att e-postmeddelandet och eventuella bilagor inte
innehåller virus och andra fel som kan påverka datorn eller IT-systemet där
det mottages och läses, öppnas det på mottagarens eget ansvar. Vi tar inte
på oss något ansvar för förlust eller skada, som har uppstått i samband med
att e-postmeddelandet mottagits och använts.

Please note that this message may contain confidential information. If you
have received this message by mistake, please inform the sender of the
mistake by sending a reply, then delete the message from your system without
making, distributing or retaining any copies of it.
Although we believe that the message and any attachments are free from
viruses and other errors that might affect the computer or IT system where
it is received and read, the recipient opens the message at his or her own
risk. We assume no responsibility for any loss or damage arising from the
receipt or use of this message.




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