Re: (internal app) --http-->apache---https--->(external app)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <covener@xxxxxxxxx> wrote:

> From: Eric Covener <covener@xxxxxxxxx>
> Subject: Re:  (internal app) --http-->apache---https--->(external  app)
> To: users@xxxxxxxxxxxxxxxx
> Date: Sunday, August 23, 2009, 12:47 PM
> On Sun, Aug 23, 2009 at 12:04 PM, pe
> uni<peuni@xxxxxxxxx>
> 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
> covener@xxxxxxxxx
> 
> ---------------------------------------------------------------------
> 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-unsubscribe@xxxxxxxxxxxxxxxx
>    "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
> 
> 


      

---------------------------------------------------------------------
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-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux