惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

美团技术团队
阮一峰的网络日志
阮一峰的网络日志
T
The Blog of Author Tim Ferriss
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
宝玉的分享
宝玉的分享
L
LangChain Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Last Week in AI
Last Week in AI
博客园 - 司徒正美
M
MIT News - Artificial intelligence
人人都是产品经理
人人都是产品经理
WordPress大学
WordPress大学
B
Blog RSS Feed
H
Hackread – Cybersecurity News, Data Breaches, AI and More
博客园 - Franky
B
Blog
V
V2EX
J
Java Code Geeks
D
Docker
博客园 - 叶小钗
The Cloudflare Blog
量子位
博客园_首页
MongoDB | Blog
MongoDB | Blog

Apache

请教下 Apache2 代理二级域名的问题 Apache 错误:(20014)Internal error 使用 Apache 反代 DuckDuckGo,如何处理 external-content.duckduckgo.com?反代 Google 时遇到 recaptcha 验证码又怎么解决? 大佬们, apache 服务器配置虚拟主机,配置禁止所有非法域名时。 flink 如何提高字符串解析性能 有没有哪位熟悉 apache httpd,有个离谱的事情问一下 部署个 apache/doris 怎么就这么复杂 httpd 和其它 web server 的通信方式有哪些? 使用 docker 安装 h5ai 后,直接访问文本文件乱码 关于 htaccess Redirect 301 问题,怎么去掉参数 反向代理配置 ip 可以访问,域名不行 「分布式系统前沿技术」专题 | Pulsar 的设计哲学 有在 macOS 配置 Apache 服务器的吗? 大佬们求教: HttpClients.createDefault() LApache 虚拟主机设置.htaccess 实现全站 HTTPS Apache2 如何配置 SSL 证书啊 请教乐于助人、高手如云的 V2 朋友们! 一个服务器分别运行 Apache2 子域名网站和 Nginx 主域名网站,子域名为何出现 400 Bad Request? 个推基于 Apache Pulsar 的优先级队列方案 Apache 2.4.38 在编译配置参数上,如何指定 apache 的配置文件安置到/etc 里面? apache 下如何将 xxx.com www.xxx.com https://xxx.com 重定向 https://www.xxx.com 的 Apache 的 Access Log 中老是出现 OPTIONS 访问,导致数据库连接中断,怎么处理? 很灵异的 apache 伪静态规则偶尔会失效 大家遇到过吗?求解决方法 flume 抓 TOMCAT 日志发 kafka,怎么按日志内容分段发送? ubuntu16.04 搭建 wiki 求助 关于 apache 多域名多站点(http 和 https 都有)单服务器配置问题 请教一下在 Lightsail 部署 Python Flask project 时候遇到的问题 想问问大神, apache 搭建的反代,套了 CF 之后,被反代的网站出现 ERROR1000,应该如何解决 Apache 可以通过路由配置让一个域名访问两个系统吗? 解决了一个 Apache 拒绝服务的问题((OS 64)指定的网络名不再可用。AH00341: winnt_accept: Asynchronous AcceptEx failed.)
配置好的 CentOS httpd SSL 服务,为什么不能网页不能自动重...
pppguest3962 · 2018-04-28 · via Apache

这个主机完整是 https://192.168.89.41:8080

我想别人在访问 http://192.168.89.41:8080,自动跳往 https://192.168.89.41:8080 但按目前调试的配置,访问 http://192.168.89.41:8080,浏览器会显示出一个 html 的代码明文:

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">

<html><head>
<title>400 Bad Request</title>
</head><body>
<h1>Bad Request</h1>
<p>Your browser sent a request that this server could not understand.<br />
Reason: You're speaking plain HTTP to an SSL-enabled server port.<br />
Instead use the HTTPS scheme to access this URL, please.<br />
<blockquote>Hint: <a href="https://localhost:8080/"><b>https://localhost:8080/</b></a></blockquote></p>
</body></html>

下面是节选 httpd.conf,配置有多个 VirtualHost,但是只想 8080 这个主机启用 https, mod_ssl 确定是装好的,证书已经使用上的了,

cat /etc/httpd/conf/httpd.conf

#8080,Test
<VirtualHost *:8080> 
   SSLEngine on
   SSLCertificateFile "/etc/httpd/conf/ssl_key/server.crt"
   SSLCertificateKeyFile "/etc/httpd/conf/ssl_key/server.key"
   SSLOptions StdEnvVars
   SSLProtocol all -SSLv2 -SSLv3
   SSLHonorCipherOrder on
   SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW:!RC4:

   DocumentRoot /opt/test1
   DocumentRoot "/opt/test1"
     <Directory "/opt/test1">
        Options Indexes FollowSymLinks
        #Options FollowSymLinks
        #Options Indexes 
        AllowOverride None
        Order allow,deny
        Allow from all
     </Directory>
</VirtualHost>

#9090,Test2
<VirtualHost *:9090>
   DocumentRoot /opt/test2
   DocumentRoot "/opt/test2"
     <Directory "/opt/test2">
        Options Indexes FollowSymLinks
        #Options FollowSymLinks
        #Options Indexes
        AllowOverride None
        Order allow,deny
        Allow from all
     </Directory>
</VirtualHost>

cat /opt/test1/.htaccess

RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*) https://%{SERVER_NAME}/$1 [R,L]