使用HTTPS

时间:2018-06-15 07:48:58

标签: apache mod-rewrite https reverse-proxy apex

我在Oracle Linux服务器上运行Apex,我的vhosts文件如下所示:

<VirtualHost *:80>
ServerName www.example.com
ServerAlias example.com

Redirect permanent / https://example.com/

ProxyPreserveHost On
ProxyPass / http://127.0.0.1:8080/
ProxyPassReverse / http://127.0.0.1:8080/   

#   RewriteEngine On
#   RewriteCond %{SERVER_PORT} !443
#   RewriteRule ^(/(.*))?$ https://%{HTTP_HOST}/$1 [R=301,L]
</VirtualHost>

HTTP ://example.com/apex/f?p = 4550:1&lt;&lt;这工作

HTTPS ://example.com/apex/f?p = 4550:1&lt;&lt;这没有,使用以下错误代码:

未找到

在此服务器上找不到请求的URL / apex / f。

这个vhosts文件可能有什么问题?

0 个答案:

没有答案
相关问题