View Single Post
  #1  
Old 20th March 2013, 12:34
trigar trigar is offline
Junior Member
 
Join Date: Jun 2006
Posts: 17
Thanks: 2
Thanked 0 Times in 0 Posts
Default Path to private directory

I have just installed a new ISPConfig 3.0.5.1 server, and I am trying to get to grips with the fact that I can no longer read or write to the parent of the web root (via "../").

Searching the forums I understand that this was a security hazard and rightly blocked, and I should be using /var/www/domain.net/private instead. That works fine, except that that will need hard coding into a lot of scripts across many sites.

What I would like is an easy way of doing this, either by programmatically determining the current site, or by having a standard path that works across all sites. Failing that I could just add a "sitename" file in the webroot and read that in every script, but again that is not ideal.

I am using Perl, not PHP.

Any suggestions gratefully received!

Thanks,
__________________
Chris Roberts
Reply With Quote
Sponsored Links