VPS侦探论坛

 找回密码
 注册
查看: 9208|回复: 2

apache反向代理 500

[复制链接]
发表于 2021-10-11 09:42:17 | 显示全部楼层 |阅读模式

本帖最后由 师哥 于 2021-10-11 09:45 编辑

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at you@example.com to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Apache Server at synology.shige.me Port 80

<VirtualHost *:80>ServerName synology.shige.me
ProxyRequests off
<Proxy *>
     Order allow,deny
    Allow from all
</Proxy>
ProxyPass / https://cloud.shige.me:808/
ProxyPassReverse / https://cloud.shige.me:808/
</VirtualHost>

目的是想访问用户访问 http://synology.shige.me ,apache代理访问 https://cloud.shige.me:808/
网上的方法能试了都试了,模块也都去掉注释了。用的 1.7版本 apache2.4


美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2021-10-11 12:52:08 | 显示全部楼层


有可能是需要添加 SSLProxyEngine on 上这一行吧,你得按错误信息提供apache的错误日志才能确定
lamp还是lnmpa?lnmpa的话nginx效率更高
mod_proxy开头的模块都去掉注释了没?重启了没?
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2021-10-12 08:37:56 | 显示全部楼层

licess 发表于 2021-10-11 12:52
有可能是需要添加 SSLProxyEngine on 上这一行吧,你得按错误信息提供apache的错误日志才能确定
lamp还是ln ...

太感谢大佬了,加了 SSLProxyEngine on 就好了
我用的lamp
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-20 18:54 , Processed in 0.026435 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表