繁体   English   中英

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

[英]how to capture URL as a variable and use it in the apache configuration file

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

测试1

别名/ $ 1 / home / client / $ 1选项索引FollowSymLinks DAV在AllowOverRide上所有AuthType基本AuthName hellow AuthUserFile /etc/httpd/$1.password需要有效用户

如何使这1美元发挥作用

DAVMinTimeout 180 ServerName localhost ServerAdmin webmaster@example.org

DocumentRoot / var / www / html

测试1

别名/ test1 / home / client / test1选项索引FollowSymLinks DAV在AllowOverRide上所有AuthType基本AuthName Xfficient-test1 AuthUserFile /etc/httpd/webDAV/test1.password需要有效用户

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM