Apache2 使用ProxyPass时,我的Apache反向代理未返回正确的URL

Apache2 使用ProxyPass时,我的Apache反向代理未返回正确的URL,apache2,reverse-proxy,Apache2,Reverse Proxy,我有以下配置,它总是将URL返回为“https:\sysaid.external.comlogin.jsp”,在“”和“login.jsp”之间没有“/” 想法 谢谢 已解决: #REDIRECT for http://sysaid.external.com <VirtualHost *:80> ServerName sysaid.external.com ProxyPreserveHost On Redirect / https://

我有以下配置,它总是将URL返回为“https:\sysaid.external.comlogin.jsp”,在“”和“login.jsp”之间没有“/”

想法

谢谢

已解决:

#REDIRECT for http://sysaid.external.com
<VirtualHost *:80>
        ServerName sysaid.external.com
        ProxyPreserveHost On
        Redirect / https://sysaid.external.com
</VirtualHost>

#https://sysaid.external.com
<VirtualHost *:443>
        ServerAdmin webmaster@external.com
        ServerName sysaid.external.com
        SSLEngine on
        SSLCertificateFile    /usr/local/etc/apache22/ssl/webmail.external.com.crt
        SSLCertificateKeyFile /usr/local/etc/apache22/ssl/webmail.external.com.key
        ProxyPreserveHost On
        ProxyPass / http://srv-01.internal.local/
        ProxyPassReverse / http://srv-01.internal.local/
        ProxyPassReverse / http://sysaid.external.com/
</VirtualHost>
#重定向到http://sysaid.external.com
ServerName sysaid.external.com
代理主机
重定向/https://sysaid.external.com
#https://sysaid.external.com
服务器管理员webmaster@external.com
ServerName sysaid.external.com
斯伦金安
SSLCertificateFile/usr/local/etc/apache22/ssl/webmail.external.com.crt
SSLCertificateKeyFile/usr/local/etc/apache22/ssl/webmail.external.com.key
代理主机
ProxyPass/http://srv-01.internal.local/
ProxyPassReverse/http://srv-01.internal.local/
ProxyPassReverse/http://sysaid.external.com/
#http://sysaid.external.com
<VirtualHost *:80>
    ServerAdmin webmaster@external.com
    ServerName sysaid.external.com
    ProxyRequests Off
    ProxyPreserveHost On
    <Proxy *>
        Order deny,allow
        Allow from all
    </Proxy>

    ProxyPass / http://srv-01.internal.local:80/
    ProxyPassReverse / http://srv-01.internal.local:80/
    <Location />
        Order allow,deny
        Allow from all
    </Location>
</VirtualHost>
root@core-rp-01:/home/user # telnet srv-01.internal.local 80
Trying 172.34.0.10...
Connected to srv-01.internal.local.
Escape character is '^]'.
GET / HTTP/1.1
Host: sysaid.external.com

HTTP/1.1 302 Moved Temporarily
Server: Apache-Coyote/1.1
Set-Cookie: JSESSIONID=F5FA5C04242A51536916C688A23077F1; Path=/; HttpOnly
Location: http://sysaid.external.com/Login.jsp
Content-Type: text/html;charset=ISO-8859-1
Content-Length: 0
Date: Fri, 09 Aug 2013 15:16:06 GMT
#REDIRECT for http://sysaid.external.com
<VirtualHost *:80>
        ServerName sysaid.external.com
        ProxyPreserveHost On
        Redirect / https://sysaid.external.com
</VirtualHost>

#https://sysaid.external.com
<VirtualHost *:443>
        ServerAdmin webmaster@external.com
        ServerName sysaid.external.com
        SSLEngine on
        SSLCertificateFile    /usr/local/etc/apache22/ssl/webmail.external.com.crt
        SSLCertificateKeyFile /usr/local/etc/apache22/ssl/webmail.external.com.key
        ProxyPreserveHost On
        ProxyPass / http://srv-01.internal.local/
        ProxyPassReverse / http://srv-01.internal.local/
        ProxyPassReverse / http://sysaid.external.com/
</VirtualHost>