HTTPS redirect to HTTP with form inputs from the redirected page

Okay let me paint the enviroment picture. I have a webserver located within a DMZ which is https://www.webserver.com and it has access to a tomcat server that is located within the local network which is http://www.reports.com:8080. Currently when the users access the https://www.webserver.com/app then are given a page for the reports generation and they enter the information that need for the reports, when they click the submit button they are sent to https://www.webserver.com/reports which is a proxypass to http://www.reports.com:8080 and they recieve a message that there are both secure and insecure information do you want to continue. I'm trying to redirect the https://www.webserver.com/reports to http://www.webserver.com/reports, from SSL to NON_SSL using the mod_rewrite. And when I mod_rewrite is does not forward the form input from the previous page to the redirected page. How can I pass the form input the new page or am I using the wrong module to do this? Any help would apperciated.
Here are the PROXYPASS AND REDIRECT that I'm doing:
RewriteEngine on
RewriteLog /root/server.rewrite.txt
RewriteLogLevel 9
RewriteRule ^/reports http://%{SERVER_NAME}/tomcat%{REQUEST_URI} [R]
 
ProxyPass /tomcat/reports  http://www.reports.com:8080
ProxyPassReverse /tomcat/reports  http://www.reports.com:8080
ProxyPassReverse /tomcat/reports  http://www.reports.com:8080


Thanks
~jon~
droz578Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mrielfCommented:
Use form's action field to do this...

Instead
<form name="Form" action="/report" ....
this:
<form name="Form" action="http://www.webserver.com/report" ....

0
droz578Author Commented:
The on thing that I forgot to add is that there are people coming from different URL's to access the application. So they would be coming from https://www.webserver.com/reports , https://www.webserver-1.com/reports, https://www.webserver-2.com/reports
0
mrielfCommented:
The form is generated with php or some server side script? If not, then it can be?

Here an example for php solution. Just create the form tag like this:
<?php
echo "<form name=\"formname\" action=\"http://" . $_SERVER['HTTP_HOST'] . "/report\">";
?>

this resolve your problem with servernames...
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

mrielfCommented:
When asker don't react at least "boo" then what we want...

I don't know my solution is useful or not because no react from asker...


0
droz578Author Commented:
Apologize for the tardiness of the points reward. This solution is correct, but due to the way that the java application was written I could not use this solution. But this is not mrielf’s problem. Thanks for the help with the redirection issue.

~Thanks
~Jon
0
mrielfCommented:
My examle is for php, but it's easy to translate to java... Or you can't edit the source?
0
droz578Author Commented:
Do nbot have access to the source.......
0
mrielfCommented:
Then other possible solution to avoid message popups, to access www.reports.com through https link...
0
mrielfCommented:
I can't test this on my sytem, but maybe works...
0
mrielfCommented:
Or write your own redirect script and don't use apache ProxyPass...
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Apache Web Server

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.