URL: https://www.opennet.me/cgi-bin/openforum/vsluhboard.cgi
Форум: vsluhforumID8
Нить номер: 2715
[ Назад ]

Исходное сообщение
"apache ScriptAliasMatch"

Отправлено phpinfo , 08-Окт-04 18:26 
ScriptAliasMatch ^/~([^/]*)/cgi-bin/(.*) /home/$1/cgi-bin/$2

i need a regexp that will do the following :

1.1 www.$user.some.com  
1.2 $user.some.com

& will transfor into /home/$user



Содержание

Сообщения в этом обсуждении
"apache ScriptAliasMatch"
Отправлено dev , 11-Окт-04 13:26 
>ScriptAliasMatch ^/~([^/]*)/cgi-bin/(.*) /home/$1/cgi-bin/$2
>
>i need a regexp that will do the following :
>
>1.1 www.$user.some.com
>1.2 $user.some.com
>
>& will transfor into /home/$user

Are you sure you need ScriptAliasMatch?
Search for "Virtual User Hosts" in http://httpd.apache.org/docs-2.0/misc/rewriteguide.html