Hi Eric, thanks for the reply.
"my application" is the internal application.
I tried the rewrite rule with P option, still doesn't work.

Internal application has the target URL set as 
www.techmed.com/VENDOR/vendor.asmx with port 80  and is configured to use 
my_proxy_server : 44444 as the proxy

Goal is --- (my internal appln) ----http--->apache ---https with client 
certs---->(www.techmed.com/VENDOR/vendor.asmx)

Here is my httpd.conf...   apache logs show error "proxy: HTTPS: failed to 
enable ssl support for my_ipaddr:443"
--------------------------------------
<VirtualHost my_ipaddr:44444>
   ServerName my_proxy_server
   Options +FollowSymlinks
   ProxyRequests off

   RewriteEngine On
   RewriteLogLevel 9
   RewriteLog /etc/httpd/logs/rewrite_80_log
   RewriteRule ^/(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [P,L]
</VirtualHost>

<VirtualHost my_ipaddr:443>
    ServerName  my_proxy_server
    ServerAlias my_proxy_server
    LogLevel debug
    ProxyRequests Off
    CustomLog /etc/httpd/logs/access_log common
    ErrorLog  "|/usr/sbin/rotatelogs /etc/httpd/logs/error_log 86400 common"
    TransferLog /etc/httpd/logs/ssl_access_log

    SSLEngine On
    SSLCertificateFile /etc/httpd/ssl/servercerts/server.CRT
    SSLCertificateKeyFile /etc/httpd/ssl/servercerts/server.KEY
    SSLProxyMachineCertificateFile /etc/httpd/ssl/clientcerts/client-cert.p12

    Proxypass    /VENDOR https://www.techmed.com/VENDOR/vendor.asmx    
ProxypassReverse /VENDOR https://www.techmed.com/VENDOR/vendor.asmx
</VirtualHost>
---------------------------------------
Thanks,
Pe

--- On Sun, 8/23/09, Eric Covener <cove...@gmail.com> wrote:

> From: Eric Covener <cove...@gmail.com>
> Subject: Re: [us...@httpd] (internal app) 
> --http-->apache---https--->(external  app)
> To: users@httpd.apache.org
> Date: Sunday, August 23, 2009, 12:47 PM
> On Sun, Aug 23, 2009 at 12:04 PM, pe
> uni<pe...@yahoo.com>
> wrote:
> > Hi,
> > I have a scenario to configure apache to  handle
> > (internal
> app)--http-->apache---https--->(external app)
> >
> > My internal app cannot handle SSL and can only handle
> HTTP connections.
> >
> > How do i set up apache to handle such a scenario?
> > I tried creating a virtual host listening on port
> 10001 and then used the rewrite rule to change the url to
> https. This works on a browser but fails on my applicatin as
> it cannot handle the HTTPS traffic.
> 
> You need to proxy, via mod_rewrite with the "P" flag or
> ProxyPass.
> 
> I assume your "my application" in the final sentence refers
> to the
> internal app, not the external app -- otherwise it's a lost
> cause.
> 
> 
> -- 
> Eric Covener
> cove...@gmail.com
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP
> Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more
> info.
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>    "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
> 
> 




---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to