我想知道如何在 centos apache config 中设置变量 用户将登录为:www.example.com/$1($1 是一个变量) 服务器名称本地主机 ServerAdmin webmaster@example.org DocumentRoot/var/www/html
测试1
别名/$1/home/client/$1 期权指数 FollowSymLinks DAV开启 AllowOverRide 全部 授权类型基本 AuthName 你好 AuthUserFile/etc/httpd/$1.password 需要有效用户
如何让这 1 美元发挥作用
最佳答案
DAVMinTimeout 180 服务器名称本地主机 ServerAdmin webmaster@example.org
文档根目录/var/www/html
测试1
别名/test1/home/client/test1 期权指数 FollowSymLinks DAV开启 AllowOverRide 全部 授权类型基本 AuthName Xfficient-test1 AuthUserFile/etc/httpd/webDAV/test1.password 需要有效用户
关于linux - 如何将 URL 捕获为变量并在 apache 配置文件中使用它,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33160344/