hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Web Hosting : Open_basedir and subdirectories problem
Reply

Forum Jump

Open_basedir and subdirectories problem

Reply Post New Thread In Web Hosting Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old
Junior Guru Wannabe
 
Join Date: Mar 2006
Posts: 69

Open_basedir and subdirectories problem


Open_basedir and subdirectories problem
Hi for now I have this httpd-vhosts.conf
php_admin_value open_basedir "C:/aweb/freehosting/users/"

<VirtualHost *:80>
# ServerName pcsny.org
ServerName pcsny

ServerAlias *.pcsny.org
ServerAlias *.massmba.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.massmba.org/
http://seconduser2.massmba.org/
http://mywebhosting.pcsny.org/

how to force users stay in their folders and not to be able to affect other users with malicious code like

r57shell - http-shell by RST/GHC |
http://rst.void.ru | http://ghc.ru | version 1.24
or http://php.spb.ru/remview/
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

__________________
<<< Please see Forum Guidelines for signature setup. >>>



Sponsored Links
Reply

Related posts from TheWhir.com
Title Type Date Posted
OX Summit Web Hosting Events 2014-07-23 21:01:52
Top 5 Considerations for Transitioning to Open Compute Webinars 2014-06-29 21:45:11
Open Source Collaboration Provider Open-Xchange Launches OX Spreadsheet Tool: WHD.global 2014 Web Hosting News 2014-04-01 11:18:13
Open-Xchange Summit 2013 Web Hosting Events 2013-09-19 18:04:21
Facebook, Open Compute Recruit Purdue Students in Biodegradable Server Design Challenge Web Hosting News 2012-11-08 16:12:13


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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 On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
WHT Host Brief Email:

We respect your privacy. We will never sell, rent, or give away your address to any outside party, ever.

Advertisement:
Web Hosting News:
WHT Membership
WHT Membership



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?