Forum Moderators: phranque
<VirtualHost *:80>
# ServerName example.org
ServerName example
ServerAlias *.example.org
ServerAlias *.quux.org
VirtualDocumentRoot "C:/aweb/freehosting/users/%1"
php_admin_value open_basedir "C:/aweb/freehosting/users/"
php_admin_value safe_mode 1
<Directory "C:/aweb/freehosting/users/">
Options Indexes Includes FollowSymLinks
AllowOverride none
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Script makes under the subdirectory
C:/aweb/freehosting/users/
New folders (they are login name of a new user)
e.g
C:/aweb/freehosting/users/newuser1/
C:/aweb/freehosting/users/seconduser2/
C:/aweb/freehosting/users/mywebhosting/
To access to their web pages users have to type subdomains like this
http://Newuser1.quux.org/
http://seconduser2.quux.org/
http://mywebhosting.example.org/
how to force users stay in their folders and not to be able to affect other users with malicious like <snip>?
if only I could do something like this
php_admin_value open_basedir "C:/aweb/freehosting/users/%1"
get subdomain entered in browser then fix top folder accessible for this user;.
Help?
PS. I am on windows 2003, XAMPP
[edited by: jdMorgan at 2:55 am (utc) on Sep. 19, 2006]
[edit reason] No URLs. No hacks. Please see TOS. [/edit]