?
Solved

HTTPS redirect to HTTP with form inputs from the redirected page

Posted on 2004-11-04
11
Medium Priority
?
186 Views
Last Modified: 2010-03-04
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~
0
Comment
Question by:droz578
  • 7
  • 3
10 Comments
 
LVL 5

Expert Comment

by:mrielf
ID: 12502121
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
 

Author Comment

by:droz578
ID: 12504892
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
 
LVL 5

Accepted Solution

by:
mrielf earned 2000 total points
ID: 12506506
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
Veeam and MySQL: How to Perform Backup & Recovery

MySQL and the MariaDB variant are among the most used databases in Linux environments, and many critical applications support their data on them. Watch this recorded webinar to find out how Veeam Backup & Replication allows you to get consistent backups of MySQL databases.

 
LVL 5

Expert Comment

by:mrielf
ID: 12699965
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
 

Author Comment

by:droz578
ID: 12700050
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
 
LVL 5

Expert Comment

by:mrielf
ID: 12700305
My examle is for php, but it's easy to translate to java... Or you can't edit the source?
0
 

Author Comment

by:droz578
ID: 12700322
Do nbot have access to the source.......
0
 
LVL 5

Expert Comment

by:mrielf
ID: 12702139
Then other possible solution to avoid message popups, to access www.reports.com through https link...
0
 
LVL 5

Expert Comment

by:mrielf
ID: 12702152
I can't test this on my sytem, but maybe works...
0
 
LVL 5

Expert Comment

by:mrielf
ID: 12702169
Or write your own redirect script and don't use apache ProxyPass...
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction As you’re probably aware the HTTP protocol offers basic / weak authentication, which in combination with the relevant configuration on your web server, provides the ability to password protect all or part of your host.  If you were not…
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses
Course of the Month13 days, 20 hours left to enroll

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question