Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Error 500 proxying to SSL-secured site

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  Apache as reverse proxy to OWA 2003  
Author Message
user2833

External


Since: Jun 18, 2004
Posts: 22



(Msg. 1) Posted: Mon Jun 28, 2004 2:35 am
Post subject: Error 500 proxying to SSL-secured site
Archived from groups: alt>apache>configuration (more info?)

I have a web-based application that I'm trying to reverse proxy through
Apache 2.0. I'd like for the connection between browser and proxy to
be SSL-secured, but due to certain limitations with this application
that also means the connection between the proxy and the internal web
server must also be SSL-secured.

When I use an "https://" URL in the appropriate ProxyPass directives,
however, I get an 500 error from Apache. I'm pasting the pertinent
portion of my httpd.conf below.

<Location /home>
ProxyPass https://extranet.domain.com/home
ProxyPassReverse https://extranet.domain.com/home
SSLRequireSSL
</Location>

<Location /msoffice>
ProxyPass https://extranet.domain.com/msoffice
ProxyPassReverse https://extranet.domain.com/msoffice
SSLRequireSSL
</Location>

Any suggestions?

--
Scott Lowe

 >> Stay informed about: Error 500 proxying to SSL-secured site 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 2) Posted: Mon Jun 28, 2004 10:04 am
Post subject: Re: Error 500 proxying to SSL-secured site [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Scott Lowe <me RemoveThis @privacy.net> wrote:
 > however, I get an 500 error from Apache.

Error 500 is a catch all, when something bad happens Apache send
an error 500. What's in the error_log?

Davide


--
| Drugs may be the road to nowhere, but at least they're the scenic
| route!
|
|<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Error 500 proxying to SSL-secured site 
Back to top
Login to vote
user2833

External


Since: Jun 18, 2004
Posts: 22



(Msg. 3) Posted: Mon Jun 28, 2004 2:16 pm
Post subject: Re: Error 500 proxying to SSL-secured site [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2004-06-28 03:04:46 -0400, Davide Bianchi
<davideyeahsure.DeleteThis@onlyforfun.net> said:

 > Scott Lowe <me.DeleteThis@privacy.net> wrote:
  >> however, I get an 500 error from Apache.
 >
 > Error 500 is a catch all, when something bad happens Apache send
 > an error 500. What's in the error_log?
 >
 > Davide

The only applicable error I can find relates to SSLProxyEngine. Is
this something that needs to be turned on?

--
Scott Lowe<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Error 500 proxying to SSL-secured site 
Back to top
Login to vote
user2833

External


Since: Jun 18, 2004
Posts: 22



(Msg. 4) Posted: Mon Jun 28, 2004 3:06 pm
Post subject: Re: Error 500 proxying to SSL-secured site [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2004-06-28 11:16:21 -0400, Scott Lowe <me.RemoveThis@privacy.net> said:

 > On 2004-06-28 03:04:46 -0400, Davide Bianchi
 > <davideyeahsure.RemoveThis@onlyforfun.net> said:
 >
  >> Scott Lowe <me.RemoveThis@privacy.net> wrote:
   >>> however, I get an 500 error from Apache.
  >>
  >> Error 500 is a catch all, when something bad happens Apache send
  >> an error 500. What's in the error_log?
  >>
  >> Davide
 >
 > The only applicable error I can find relates to SSLProxyEngine. Is
 > this something that needs to be turned on?

I've answered my own question. I added "SSLProxyEngine On" to the
appropriate virtual host configuration, and now it works (so far).

Only one error remains, and I am not 100% certain that it is
server-based. When I attach to the SSL-secured reverse proxy, I
receive an error along the lines of "site identity cannot be verified."
I take this to mean that the server is presenting an SSL certificate
that a) doesn't match the URL I'm using to access the site, or b)
doesn't have an appropriate trusted CA certificate.

I'm reasonably certain that it's not a client-side issue (I use Camino
0.8 on Mac OS X 10.3) since I can attach to other SSL-secured sites
that have certificates from the same internal CA and don't receive the
same error. This leads me to believe that I have incorrectly
configured the root CA-related directives on Apache. I've converted
the root CA certificate into PEM format and specified it in the
configuration file using the SSLCertificateChainFile <filename>
directive. Is this the correct approach?

Thanks in advance for everyone's help.

--
Scott Lowe<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Error 500 proxying to SSL-secured site 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 5) Posted: Mon Jun 28, 2004 6:54 pm
Post subject: Re: Error 500 proxying to SSL-secured site [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Scott Lowe <me.TakeThisOut@privacy.net> wrote:
 > The only applicable error I can find relates to SSLProxyEngine. Is
 > this something that needs to be turned on?

No, I've never used such thing, and this is exactly how I did the
Exchange proxy business without any SSLProxy. The only appreciable
differences is that I used Apache 1.3.x instead of 2 (it was already
installed and working).

If not that your proxy doesn't accept the certificate of the
final server?

Davide

--
| The C Programming Language -- A language which combines the
| flexibility and power of assembly language with the readability of
| assembly language.
|<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Error 500 proxying to SSL-secured site 
Back to top
Login to vote
user2833

External


Since: Jun 18, 2004
Posts: 22



(Msg. 6) Posted: Mon Jun 28, 2004 6:54 pm
Post subject: Re: Error 500 proxying to SSL-secured site [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2004-06-28 11:54:33 -0400, Davide Bianchi
<davideyeahsure.RemoveThis@onlyforfun.net> said:

 > Scott Lowe <me.RemoveThis@privacy.net> wrote:
  >> The only applicable error I can find relates to SSLProxyEngine. Is
  >> this something that needs to be turned on?
 >
 > No, I've never used such thing, and this is exactly how I did the
 > Exchange proxy business without any SSLProxy. The only appreciable
 > differences is that I used Apache 1.3.x instead of 2 (it was already
 > installed and working).
 >
 > If not that your proxy doesn't accept the certificate of the
 > final server?
 >
 > Davide

Davide, see my parallel post--we must have been typing at the same
time! SSLProxyEngine fixed the problem.

Thanks.

--
Scott Lowe<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Error 500 proxying to SSL-secured site 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 7) Posted: Mon Jun 28, 2004 7:29 pm
Post subject: Re: Error 500 proxying to SSL-secured site [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Scott Lowe <me.TakeThisOut@privacy.net> wrote:
 > receive an error along the lines of "site identity cannot be verified."
 > I take this to mean that the server is presenting an SSL certificate
 > that a) doesn't match the URL I'm using to access the site

I think this the one.
Davide

--
| An alcoholic is a person who drinks more than his own physician.
|
|
|<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Error 500 proxying to SSL-secured site 
Back to top
Login to vote
user2833

External


Since: Jun 18, 2004
Posts: 22



(Msg. 8) Posted: Mon Jun 28, 2004 11:01 pm
Post subject: Re: Error 500 proxying to SSL-secured site [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2004-06-28 12:29:51 -0400, Davide Bianchi
<davideyeahsure DeleteThis @onlyforfun.net> said:

 > Scott Lowe <me DeleteThis @privacy.net> wrote:
  >> receive an error along the lines of "site identity cannot be verified."
  >> I take this to mean that the server is presenting an SSL certificate
  >> that a) doesn't match the URL I'm using to access the site
 >
 > I think this the one.
 > Davide

Using "openssl x590 -in <cert-file-name> -noout -text" or "openssl x509
-in <cert-file-name> -noout -subject" verifies that the CN field of the
subject of the certificate matches the FQDN that I am requesting from
the server. Correct me if I am wrong, but if the certificate's subject
is:

/C=US/ST=State/L=Locality/O=Organization Name/OU=Department
Name/CN=extranet.domain.com

and I am requesting "https://extranet.domain.com", then everything
should be fine, yes? (The CN field of the subject matches the FQDN
being requested.)

Or am I missing something?

--
Scott Lowe<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Error 500 proxying to SSL-secured site 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
websphere application crashes when proxying to site throug.. - Background: An AS/400 on the company network is running websphere 5r1 (soon to be r2). The developer is creating applications that are to be accessible from the Internet. He is running an instance of apache on port 80, using the "WebSphere Plugin&...

basic authentication and proxying - Hello everyone, I have this weird problem with getting authentication working with proxying. I was able to get the authentication working without proxying. I made a ..htaccess file: AuthType Basic AuthName UserAdmin AuthUserFile..

*Newbee* problem with rewrite mod/reverse proxying - Hi all, I've read lots of docs on the web but I can help say to myself that I'm really a big noob. So that's the problem. I've got a web site which is hosted on a server (for the moment it's easy lol) This server countain several aplications which are...

Problem with virtual host - WAP site 403 Error - I've configured two virtual hosts for www web site and wap. WWW works fine, but as i get to wap site via IE or M3Gate Wap explorer it gives me 403 Forbidden error. All files (www and wap) are chmod 775/664 and user is apache, group apache. httpd.conf..

how can I prevent my site from .. - Hello: I have suse 9 with apache 2 and how can I prevent my site from being totally downloaded by wget or by any other software. I have my site in php. Thanks
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]