【问题标题】:how to capture URL as a variable and use it in the apache configuration file如何将 URL 捕获为变量并在 apache 配置文件中使用它
【发布时间】:2016-01-14 14:36:02
【问题描述】:
我想知道如何在 centos apache config 中设置变量
用户将登录为:www.example.com/$1($1 是一个变量)
服务器名称本地主机
ServerAdmin webmaster@example.org
DocumentRoot /var/www/html
测试1
别名 /$1 /home/client/$1
选项索引 FollowSymLinks
DAV 开启
AllowOverRide All
AuthType 基本
AuthName 你好
AuthUserFile /etc/httpd/$1.password
需要有效用户
如何让这 1 美元发挥作用
【问题讨论】:
标签:
linux
apache
http
centos
redhat
【解决方案1】:
DAVMin超时 180
服务器名称本地主机
ServerAdmin webmaster@example.org
DocumentRoot /var/www/html
测试1
别名 /test1 /home/client/test1
选项索引 FollowSymLinks
DAV 开启
AllowOverRide All
AuthType 基本
AuthName Xfficient-test1
AuthUserFile /etc/httpd/webDAV/test1.password
需要有效用户