mod_userdir, PHP + open_basedir

This is a discussion on mod_userdir, PHP + open_basedir within the Apache Web Server forums, part of the Web Server and Related Forums category; Hello! I'm administrating an intranet server in a small school. There is about 600 users and they can create ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-25-2006
vcelak.jan@gmail.com
 
Posts: n/a
Default mod_userdir, PHP + open_basedir

Hello!

I'm administrating an intranet server in a small school. There is about
600 users and they can create their web presentation and save it into
www directory in their home directories.

I use mod_userdir to publish their sites. But I don't want users to
work with files out of their homes (via PHP). I set open_basedir to
".:/tmp" for now, but that is not what I want to do.

-- my configuration --

UserDir www
UserDir disabled root admin

# home directory is here: /home/group-name/user-name
<Directory /home/*/*/www/>
Options Indexes
AllowOverride Indexes
Order deny,allow
Deny from all
Allow from 127.0.0.1 192.168.1.0
php_admin_value open_basedir ".:/tmp"
</Directory>

-- end of my configuration --

It is possible to set open_basedir in accordance to username?

If I use DirectoryMatch instead of Directory, is there any variable
that will contain the name of directory suiting the regular expression
after DirectoryMatch directive?

Or is there any other way, how to do it?

Thx. Sorry for my bad english. (Debian Linux - testing)

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:58 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0