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: https somehow get's re-writen into http and causes me error |
|
Author |
|
mlebel
Joined: 04 Dec 2013 Posts: 2 Location: Canada
|
Posted: Wed 04 Dec '13 16:00 Post subject: https somehow get's re-writen into http and causes me error |
|
|
Simply put, I have a custom software that runs it's own webserver. I then found instructions on how to use apache2 as a proxy that will enable ssl for that site. (long story short, my custom software doesn't support ssl and it's not an option)
When I go to Code: | https://myserver.com:8096/ | (port is forwarded internally to 443), the server re-writes the url as Code: | http://myserver.com:8096/abc/123/ | which causes the connection to fail because it's expecting HTTPS.
I'm not sure what part of the code might be causing this problem so I posted my default-ssl file at http://pastebin.com/3Pi5VQat
Apache Version - 2.2.22-13
OS - Debian Wheezy (Stable)
Logs - No errors in there
Can someone help me?
Thanks in advance,
Marc |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3093 Location: Hilversum, NL, EU
|
Posted: Wed 04 Dec '13 21:50 Post subject: |
|
|
You have:
Code: | .........
.........
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyVia On
ProxyPass /webdav/ http://127.0.0.1:8069/webdav/
<Location /webdav/ >
ProxyPassReverse /webdav/
<Limit OPTIONS PROPFIND GET REPORT MKACTIVITY PROPPATCH PUT MOVE COPY DELETE LOCK UNLOCK>
Order Deny,Allow
Allow from all
Satisfy Any
</Limit>
</Location>
ProxyPass / http://127.0.0.1:8069/
<location / >
ProxyPassReverse /
</location>
......
...... |
A little complicated.
First try instead of above and see how it goes:
....
....
ProxyPreserveHost On
ProxyPass / http://127.0.0.1:8096/
ProxyPassReverse / http://127.0.0.1:8096/
.......
....... |
|
Back to top |
|
mlebel
Joined: 04 Dec 2013 Posts: 2 Location: Canada
|
Posted: Fri 06 Dec '13 1:03 Post subject: |
|
|
Thanks for responding Steffen.
You know, it didn't work but your post reminded me of an important fact, bring it back to the basics and add on to it when it works.
I installed nginx and had the same problem. This ruled out Apache. (in my mind anyway )
So i'm going to go look on the other side.
Thanks for the help
Marc |
|
Back to top |
|
|
|
|
|
|