Re: Reverse proxy problem

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

 



What is in the error file dude not the access one? Since you are proxying to https://192.168.112.57 do you have ssl enabled on that server? What do you see in its log file?

Since you said http proxying works i suspect you don't have ssl configured on the backend 192.168.112.57.

On Fri, Feb 17, 2012 at 8:57 PM, Andres Aguado <andriu.one@xxxxxxxxx> wrote:
Sorry Tom, here is an important piece of httpd-ssl.conf

SSLEngine on   #Behind proxypass sentences
SSLCertificateFile "C:\Program Files (x86)\Apache Software
Foundation\Apache2.2\conf\ssl\server.crt"
SSLCertificateKeyFile "C:\Program Files (x86)\Apache Software
Foundation\Apache2.2\conf\ssl\server.key"

.crt and .key files has been created and are present in specified directory

Actuallly, redirect to https is disabled, and i'm not connecting to
http, i'm connecting to https://ipreverseproxy:8443 directly.

Regards
Andres

2012/2/17 Tom Evans <tevans.uk@xxxxxxxxxxxxxx>:
> On Thu, Feb 16, 2012 at 2:31 PM, Andres Aguado <andriu.one@xxxxxxxxx> wrote:
>> Hi all, i'd like to expose my problem because i'm going crazy, and if
>> anyone could help me it'll be very appreciated.
>>
>> Well, I've an apache 2.2 server over win2k8, and i want to configure
>> it as reverse proxy to send request to backend Websphere server
>>
>> So, my httpd.conf file is written like this:
>>
>> NameVirtualHost *:80
>> <VirtualHost *:80>
>>      DocumentRoot "C:\Program Files (x86)\Apache Software
>> Foundation\Apache2.2\htdocs\my_example"
>>      ServerName www.my_example.es:80
>>      ServerRoot "C:\Program Files (x86)\Apache Software Foundation\Apache2.2"
>>      DirectoryIndex index.html
>>      Redirect / https://www.my_example.es:8443
>>      ErrorLog "C:\Program Files (x86)\Apache Software
>> Foundation\Apache2.2\logs\error.log"
>>      TransferLog "C:\Program Files (x86)\Apache Software
>> Foundation\Apache2.2\logs\access.log"
>>
>>      ProxyRequests Off
>> </VirtualHost>
>>
>> And i've configured virtual host on 8443 in httpd-ssl.conf like this:
>>
>> <VirtualHost _default_:8443>
>>      DocumentRoot "C:\Program Files (x86)\Apache Software
>> Foundation\Apache2.2\htdocs\my_example"
>>      DirectoryIndex index2.html
>>      ServerName www.my_example.es:8443
>>      ServerAdmin admin@my_example.es
>>      ErrorLog "C:\Program Files (x86)\Apache Software
>> Foundation\Apache2.2\logs\error.log"
>>      TransferLog "C:\Program Files (x86)\Apache Software
>> Foundation\Apache2.2\logs\access.log"
>>
>>      ProxyRequests Off
>>      ProxyPreserveHost On
>>      ProxyPass / https://192.168.112.57
>>      ProxyPassReverse / https://192.168.112.57
>> </VirtualHost>
>>
>> Proxy modules enabled are mod_proxy.so and mod_proxy_http.so
>> But this configuration is not working.
>>
>> If i comment both proxypass sentences and try, it connects to local
>> index.html page, but if i enable proxypass sentences, it tries to
>> connect, typical website certificate error (continue to this site)
>> appears in iexplorer and internal server error page is displayed.
>>
>> Could anyone help me please?
>>
>> Thank you very much
>> Andres
>>
>
> Your port 80 vhost redirects users with protocol https to your port 8443 vhost.
> Your port 8433 vhost is not configured for SSL.
> Your browser attempts to talk SSL to a non SSL vhost.
> Hilarity ensues.
>
> Cheers
>
> Tom
>
> ---------------------------------------------------------------------
> 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