Re: HTTP -> Apache2 /var/www only & HTTPS -> Tomcat via mod_proxy only

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

 



Solved the problem.

The config below is correct, but I needed to configure my BlazeDS channelset to use htpps instead of http. The Flex html page loads fine for htpp or https, but since I have opened ONLY https for the backend server, I needed https for BlazeDS.

Hope this helps someone else as well

Here is my service-config.xml file now

<?xml version="1.0" encoding="UTF-8"?>
<services-config>
    <services>
<default-channels>
          <channel ref="https-amf"/> 
        </default-channels>
    </services>

    <channels>
<channel-definition id="https-amf" class="mx.messaging.channels.SecureAMFChannel"> 
            <endpoint url="https://{server.name}:{server.port}/{context.root}/spring/messagebroker/amfsecure" 
            class="flex.messaging.endpoints.SecureAMFEndpoint"/>
        </channel-definition>  
    </channels>
</services-config>


Thanks
Des




On 19/08/2010, at 12:01 AM, Des Hartman wrote:

Eric

Thanks for the reply. I tried this:

NameVirtualHost *:443

<VirtualHost *:443>
ServerAdmin webmaster@localhost

SSLEngine On
SSLCertificateFile /etc/apache2/ssl/apache.pem

#=======

ProxyPass /SFXServer/ balancer://backtcserver/


and it seem to work. Issue I now hit is I get a 404 from my backend Tomcat

"203.217.63.195 - - [18/Aug/2010:13:47:14 +0000] "POST /SFXServer/spring/messagebroker/amf HTTP/1.1" 404 522 "-" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_4; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.126 Safari/533.4"
"

Is there a way to enable more detailed debugging to see why? If I have the proxy pass in httpd.conf, I do not get this error, but I can reach the backend Tomcat on the same URL using http and https, which is not what I want.


Thanks
Des




On 18/08/2010, at 11:51 PM, Eric Covener wrote:

On Wed, Aug 18, 2010 at 8:22 AM, Des Hartman <des@xxxxxxxxxxxxxx> wrote:
Hi,

Is there a simple way to do the following:

1) All "http" based requests to website www.abc.com go to my Apache2 server regardless of the virtual site

2) All "https" based requests to website www.abc.com are proxied to a private tomcat server via mod_proxy

You already need two vhosts for the two frontend protocols. Just put
ProxyPass directives in the SSL vhost.

--
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




[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