logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Apache + SSL rewrite_mod
Author
banaouas



Joined: 07 Dec 2010
Posts: 1

PostPosted: Tue 07 Dec '10 17:30    Post subject: Apache + SSL rewrite_mod Reply with quote

Hi,
I meet a problem with rewrite_mod.
I have two http servers on the localhost machine:
- Zope HTTP server listening on http 8080
- Apache (httpd-2.2.17-win32-x86-openssl-0.9.8o.msi) listening on http 80.
RewriteRule ^/(.*) http://localhost:8080/VirtualHostBase/http/%{SERVER_NAME}:80/$1 [L,P]

rewrite_mod works well on this configuration: all requests are redirected to 8080 and my Zope is responding like a charm with a right content for all url like http://localhost/mypath/mypage.
rewrite.log shows all url parse and redirect.

But when I changed to https, rewrite_mod seems to ignore completely my rule:
RewriteRule ^/(.*) http://localhost:8080/VirtualHostBase/https/%{SERVER_NAME}:443/$1 [L,P]

Apache response is ok for https://localhost, saying "It Works !", after I confirmed the certificate with my Firefox browser.
But any url (https://localhost/mypath/mypage) respond:
"""Not Found
The requested URL /mypath/mypage was not found on this server."""
rewrite.log shows nothing! It looks like if rewrite_mod doesn't take the rule.

Any suggestion ?
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Mon 24 Jan '11 17:44    Post subject: Reply with quote

What's in the error logs?
Back to top


Reply to topic   Topic: Apache + SSL rewrite_mod View previous topic :: View next topic
Post new topic   Forum Index -> Apache