Найдите исполнителя для вашего проекта прямо сейчас!
Разместите заказ на фриланс-бирже и предложения поступят уже через несколько минут.

пользователь вводит login/subdomain test.somesite.org и поподает на свой вебсайт,

как мне запретить доступ к папкам других пользователей через шелл скрипты типа php.spb.ru/remview/

php_admin_value open_basedir "C:/aweb/freehosting/users/%1"

делал так но не работает

###################################################

Options Indexes Includes FollowSymLinks ExecCGI

AllowOverride all

Order allow,deny

Allow from all

ServerName somesite.org

ServerAlias somesite1.org

ServerAlias www.somesite1.org

ServerAlias www.somesite.org

DocumentRoot "C:/aweb/freehosting"

php_admin_value open_basedir "/"

Options +FollowSymLinks

RewriteEngine On

RewriteRule ^/users/([^/]+)(/(.*))?$ http://$1.somesite.org/$3 [R]

RewriteCond %{HTTP_HOST} ^somesite\.org

RewriteCond %{REQUEST_URI} ^(.*)

RewriteRule (.*) http://www.somesite.org/%1 [R]

# ServerName somesite.org

ServerName somesite

ServerAlias *.somesite.org

ServerAlias *.somesite1.org

VirtualDocumentRoot "C:/aweb/freehosting/users/%1"

#DocumentRoot "C:/aweb/freehosting/users/%1"

php_admin_value open_basedir "C:/aweb/freehosting/users/"

php_admin_value safe_mode 1

#php_admin_value open_basedir on

Options Indexes Includes FollowSymLinks

AllowOverride none

Order allow,deny

Allow from all

####################################################

18 лет назад
ukvendor2006
Гость 
NaN летБеларусь
18 лет в сервисе
Был
17 лет назад
10 отзывов(-2)