apache2,设置non www和强制https
来源:互联网 发布:centos修改主机名 编辑:程序博客网 时间:2024/04/24 17:39
apache2设置non www:
<VirtualHost *:80> ServerName example.com Redirect permanent / https://www.example.com/</VirtualHost><VirtualHost *:80> ServerName www.example.com DocumentRoot /home/user/example/www ErrorDocument 503 /maintenance.html ProxyRequests on ProxyPass /maintenance.html ! ProxyPass / http://localhost:9090/ retry=0 ProxyPassReverse / http://localhost:9090/ retry=0 # 强制https RewriteEngine on RewriteCond %{HTTPS} !=on RewriteRule ^(.*) https://%{SERVER_NAME}$1 [L,R] RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK|PUT|DELETE|CONNECT|OPTIONS) RewriteRule .* - [F]</VirtualHost>
0 0
- apache2,设置non www和强制https
- ubuntu Apache2 如何 设置 HTTPS
- ubuntu Apache2 如何 设置 HTTPS
- ubuntu Apache2 如何 设置 HTTPS
- 腾讯云 Ubuntu+Apache2配置https和重定向
- Force HTTPS in Apache2
- Apache2配置https
- Ubuntu Apache2 进入HTTPS
- Apache2.4.7配置https
- 配置apache2 https
- 关于SVN和Apache2的设置
- apache2.0 MPM的选择和设置!
- SSL和HTTPS的设置
- Tomcat配置https协议、以及http协议自动REDIRECT到HTTPS【没有试验,内含设置强制https访问】
- Redirecting non-www to www with .htaccess
- 强制跳转HTTPS
- apache强制使用https
- 强制使用https访问
- ubuntu下snort的安装
- linux下的 /etc/resolv.conf ---DNS域名解析配置文件
- 【转载】透视“专利恶霸”系列之一 双重标准 吃相难看
- 多米诺骨牌
- 网络流24题之T5——圆桌问题
- apache2,设置non www和强制https
- 算法导论 练习题 2.3-6
- hasPath
- linux之vim如何快速找到第二次打开文件的指定行
- NOI2002 银河英雄传说(并查集)
- UML 简单识记
- flexbox布局兼容性写法
- 【linux】常用命令(持续补充)
- go示例1:文件读写和排序(快速 冒泡)