logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

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.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Directory Match + Open Basedir
Author
Rubberick



Joined: 10 Jul 2008
Posts: 4

PostPosted: Sat 13 Sep '08 20:03    Post subject: Directory Match + Open Basedir Reply with quote

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

PostPosted: Wed 17 Sep '08 10:14    Post subject: Reply with quote

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


Reply to topic   Topic: Directory Match + Open Basedir View previous topic :: View next topic
Post new topic   Forum Index -> Apache