如何将URL作为变量捕获并在apache配置文件中使用它

时间:2015-10-15 23:47:01

标签: linux apache http centos redhat

我想知道如何在centos apache config中设置变量 用户将登录:www.example.com/$1($ 1是变量)     ServerName localhost     ServerAdmin webmaster@example.org     DocumentRoot / var / www / html

TEST1

Alias / $ 1 / home / client / $ 1 选项索引FollowSymLinks DAV On AllowOverRide All AuthType Basic AuthName hellow AuthUserFile /etc/httpd/$1.password 需要有效用户

如何让这个$ 1工作

1 个答案:

答案 0 :(得分:0)

 DAVMinTimeout 180  ServerName localhost     ServerAdmin webmaster@example.org

DocumentRoot / var / www / html

TEST1

Alias / test1 / home / client / test1 选项索引FollowSymLinks DAV On AllowOverRide All AuthType Basic AuthName Xfficient-test1 AuthUserFile /etc/httpd/webDAV/test1.password 需要有效用户

相关问题