Question : Apache Reverse proxy https to http

Hi,
First off thanks in advance to any replies i recieve to this post.

I am looking at creating a reverse proxy from apache to IIS. I have read everything on every site untill i am blue int he face and still cant get it to work through proxypass or proxy rewrite either. perhaps something is wrong. here is what i am looking to do. have a user type in https://mysite.com and it redirects to an internal server http://myinternalsite.local all while showing the original address in the address bar and having apache pass the certificate. here is the two bits of code i have thus far. remember this is my httpd-vhosts.conf file and have done it via both methods and neither work
thanks

#WWW.mysite.com HTTP Redirect
   

        ServerName www.mysite.com
        SSLProxyEngine On
        ProxyVia On
        SSLEngine On
        SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP
        SSLCertificateFile /usr/local/etc/apache22/extra/SSL/www.mysite.crt
        SSLCertificateKeyFile /usr/local/etc/apache22/extra/SSL/myserver.key
#       SSLCertificateChainFile /usr/local/etc/apache22/extra/SSL/gd_bundle.crt
        ProxyPreserveHost On

        ProxyPass https://mysite.com/
        ProxyPassReverse http://internalserver.local:80/




AND THE OTHER WAY I CAN NOT GET TO WORK TOO IS :--->


ProxyRequests Off

  ServerName www.mysite.com
 
  ProxyPreserveHost On
  RewriteEngine on
  # Redirect http traffic to https
  RewriteRule ^/(.*)$         https://www.mysite.com/ $1 [L,R]



    ServerName www.mysite.com:443

  SSLEngine on
  SSLProxyEngine On
  RequestHeader set Front-End-Https "On"
  ProxyPreserveHost On
  RewriteEngine on
  CacheDisable *

  # Rewrite the WWW-Authenticate header to strip out Windows Integrated
  # Authentication (NTLM) and only use Basic-Auth
  SetEnvIf User-Agent ".*MSIE.*" value BrowserMSIE
  Header unset WWW-Authenticate
  Header add WWW-Authenticate "Basic realm=www.mysite.com"

  # Redirect / to /
  RewriteRule ^/$             https://www.mysite.com/ [R]

  # Reverse proxy all requests to the internal  server
  RewriteRule ^/(.*)          http://internalserver.local/$1 [P]

  SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
  #SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:RC4-MD5:+HIGH:+MEDIUM:+SSLv3:+SSLv2
SSLCertificateFile /usr/local/etc/apache22/extra/SSL/www.mysite.com.crt
SSLCertificateKeyFile /usr/local/etc/apache22/extra/SSL/myserver.key

  SetEnvIf User-Agent ".*MSIE.*"    \
  nokeepalive ssl-unclean-shutdown  \
  downgrade-1.0 force-response-1.0



Answer : Apache Reverse proxy https to http

Random Solutions  
 
programming4us programming4us