Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
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.
| |
|
Topic: Apache + SSL rewrite_mod |
|
Author |
|
banaouas
Joined: 07 Dec 2010 Posts: 1
|
Posted: Tue 07 Dec '10 17:30 Post subject: Apache + SSL rewrite_mod |
|
|
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
|
Posted: Mon 24 Jan '11 17:44 Post subject: |
|
|
What's in the error logs? |
|
Back to top |
|
|
|
|
|
|