如果不配https访问权限,可以用 .htaccess 搞定

.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>

 

 

posted @ 2019-09-09 12:58  Jack_Cui  阅读(462)  评论(0编辑  收藏  举报