.htaccess 此文件存放在,网站程序根目录下
# 只允许通过域名形式访问
RewriteEngine On RewriteBase / rewritecond %{http_host} !^www.xxx.com$ [nc] rewriterule ^.* - [F,L]
/etc/httpd/conf.d 这里的配置设置
Alias /pwd /usr/share/self-service-password <Directory /usr/share/self-service-password> Options +FollowSymLinks AllowOverride All Require all granted DirectoryIndex index.php </Directory>