如果不配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
/usr/share/self-service-password>
  Options +FollowSymLinks
  AllowOverride All
  Require all granted
  DirectoryIndex index.php

 

 

你可能感兴趣的:(如果不配https访问权限,可以用 .htaccess 搞定)