2012-07-13 18 views
0

基本驗證對話框Apache代理我有一個服務的SSL客戶端一個Apache代理。 Apache然後代理一個普通的http tomcat服務器。使用SSL不顯示從後端

Listen 7777 
<VirtualHost *:7777> 
    ServerName my.server.com 

    SSLEngine on 
    SSLCertificateFile /some.crt 
    SSLCertificateKeyFile /some.pem 
    SSLProxyEngine on 

    # Replace HTTP response headers (http to https) 
    Header edit Location ^http:(.*)$ https:$1 

    ProxyRequests off 
    ProxyPreserveHost On 
    <Proxy *> 
      Order deny,allow 
      Allow from all 
    </Proxy> 

    ProxyPass/http://my.server.com:8888/ 
    ProxyPassReverse/http://my.server.com:8888/ 

    <Location /> 
      Order allow,deny 
      Allow from all 
    </Location> 
</VirtualHost> 

一切工作正常,但是當我訪問

https://my.server.com:7777/jmx-console 

我得到一個

http status 403 Access to the specified resource() has been forbidden. 

如果我訪問後端直接

http://my.server.com:8888/jmx-console 

我得到的基本身份驗證對話框

我想在Apache顯示從Tomcat後端基本身份驗證對話框。我錯過了什麼?

回答

0

也許你需要使用「代理鏈權威性」:

SetEnv proxy-chain-auth On 
AuthType basic 
AuthBasicAuthoritative Off 
相關問題