我需要将代理反向到在本地主机上运行的Apache服务器。问题是,作为其DirectoryRewrite指令的一部分,Apache将请求重定向到没有尾随正斜杠的目录,重定向到具有尾随正斜杠的目录。当你进入https://myhost/sw/myapp/时,下面的http://myhost:8080/sw/myapp设置运行得很好,但是如果你忘记了后面的斜杠,你最终会被重定向到nginx。除了禁用Apache指令之外,我还能做些什么来确保/总是添加到任何请求的末尾,这样Apache就不会重定向? server {
client_max_body_size 10240M;
list
我正在使用web套接字。在apache中,通过在配置文件中执行以下设置,我可以从https重定向到http: <VirtualHost *:443>
# Common SSL Config
ServerName ec2-13-52-248-221.us-west-1.compute.amazonaws.com
SSLEngine on
# wss redirects to working ws protocol
SSLCertificateFile /etc/ssl/certs/apa
我想知道为什么rcapache2 (重定向到systemctl restart apache2.service)失败了,但是httpd2 -S完全没有抱怨:
Jun 28 14:37:50 revue start_apache2[4037]: SSLCertificateFile: file '/etc/apache2/ssl.crt/pluimers.com.crt' does not exist or is empty
我知道证书应该在那里(它马上就会出现),但我总是假定httpd2 -S会执行与systemctl restart apache2.service相同的检查。