How to configure a proxy that runs on SSL only

Discussion in 'Apache' started by wojtekb82, Mar 26, 2008.

  1. #1
    Hi,

    How can I configure mod_proxy and apache2 to do this thing:

    1) a proxy is setup under HTTPS://myhost.mydomain:443
    2) no pure HTTP is setup, the apache is not listening for http connections on port 80
    2) user sets the proxy server HTTPS://myhost.mydomain:443 in his web browser as a proxy for HTTPS an HTTP as well

    I have setup apache2 site and enabled it. I have setup mod_proxy and enabled it.

    My server works fine, if I put something in the document_root i can view it under https://myhost.mydomain:443

    But when i try to setup proxy server im my web browser I get:
    
    Bad Request
    
    Your browser sent a request that this server could not understand.
    Reason: You're speaking plain HTTP to an SSL-enabled server port.
    Instead use the HTTPS scheme to access this URL, please.
    Code (markup):


    Any ideas?
     
    wojtekb82, Mar 26, 2008 IP
  2. IwhiC

    IwhiC Peon

    Messages:
    2,594
    Likes Received:
    61
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Drop the 443 for starters as you are telling the browser to listen on https in the specified url.
    This is the same error you would get if you are trying to connect to a https when no ssl is valid.

    Check the error logs as well.

    Jason
     
    IwhiC, Mar 30, 2008 IP