Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Directory Match + Open Basedir |
|
Author |
|
Rubberick
Joined: 10 Jul 2008 Posts: 4
|
Posted: Sat 13 Sep '08 20:03 Post subject: Directory Match + Open Basedir |
|
|
Is this possibile?
I have a config like this
Code: | NameVirtualHost *:8080
<VirtualHost *:8080>
AliasMatch ^/hosts/([a-zA-Z0-9_\-\.]+)/public(.*) g:/hosts/$1/services/public/$2
<DirectoryMatch "g:/hosts/([a-zA-Z0-9_\-\.]+)/services/public/">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
php_admin_flag engine on
php_admin_value open_basedir "E:/tmp;g:/hosts/$1/services"
</DirectoryMatch>
</VirtualHost> |
But obviusly $1 won't work... =|
how can i solve this? |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Wed 17 Sep '08 10:14 Post subject: |
|
|
From the mass host setup
I know you can use something like
Code: |
<VirtualHost 111.22.33.45>
ServerName www.homepages.isp.com
CustomLog logs/access_log.homepages vcommon
VirtualDocumentRoot /www/homepages/%0/docs
ScriptAlias /cgi-bin/ /www/std-cgi/
</VirtualHost>
|
So th %0 is the placeholder. Maybe that works in your case too |
|
Back to top |
|
|
|
|
|
|