evilGmonkey / opendatakit

Automatically exported from code.google.com/p/opendatakit
0 stars 0 forks source link

Aggregate behind Apache proxy #212

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install Aggregate into Tomcat 6 with port 8080
2. Configure Apache at port 80 to proxypass request into Tomcat

<Location /ODKAggregatePlatform>
<IfModule proxy_http_module>
  ProxyPass http://server.example.com:8080/ODKAggregatePlatform
  ProxyPassReverse http://server.example.com:8080/ODKAggregatePlatform
  ProxyPassReverseCookieDomain server.example.com:8080 server.example.com
</IfModule>
Order Allow,deny
Allow from all
</Location>

3. Login at http://server.example.com/ODKAggregatePlatform

What is the expected output? What do you see instead?
After login routine at Google servers, URL passed is 
http://server.example.com:8080 instead of http://server.example.com
You need manually remove ":8080" from browsers's URL to continue.
Seems everything work fine after this point.

What version of the product are you using? On what operating system?
ODKAggregate v1.0 alpha 6++ war-manual-config

Please provide any additional information below.
Tomcat 6.0.32
Apache 2.2.2

Original issue reported on code.google.com by yecarri...@gmail.com on 12 May 2011 at 8:38

GoogleCodeExporter commented 9 years ago

Original comment by wbrune...@gmail.com on 20 May 2011 at 9:43

GoogleCodeExporter commented 9 years ago
In the security.properties configuration, there are two settings:

security.server.port=80
security.server.securePort=443

Please set these to be the ports that the browser will see.
In this case, they should be 80 and 443.

(Note that they need to be either 80 & 443 or 8080 & 8443 -- this is 
configuration shortcoming of the Spring security 3.0.5 framework).

Let me know if this does not resolve the issue.

Original comment by mitchellsundt@gmail.com on 20 May 2011 at 9:50

GoogleCodeExporter commented 9 years ago
Hi Mitchet. It doesn't  work. Still having 8080 as port instead of 80

Original comment by yecarri...@gmail.com on 23 May 2011 at 4:49

GoogleCodeExporter commented 9 years ago
Forms list are returning XML including port:
http://server.example.com/odk/formList

<forms>
<form 
url="http://server.example.com:8080/odk/formXml?formId=build_form1">form1</form>
</forms>

With described configuration, this list should be without 8080 port

Original comment by yecarri...@gmail.com on 26 May 2011 at 5:41

GoogleCodeExporter commented 9 years ago
The port configuration will either be applied everywhere or not, so this is 
expected.  I won't have time to look into this in the near term.

Original comment by mitchellsundt@gmail.com on 27 May 2011 at 9:40

GoogleCodeExporter commented 9 years ago
I believe this is addressed by changeset 
http://code.google.com/p/opendatakit/source/detail?r=cf6bdec216cfe55da858523064d
8d9dc73b89f0f&name=uiexperiment&repo=aggregate

Created a verification build for Yesid to try....

Original comment by mitchellsundt@gmail.com on 1 Jul 2011 at 7:34

GoogleCodeExporter commented 9 years ago
Marking as fixed; awaiting fix verification.

Original comment by mitchellsundt@gmail.com on 1 Jul 2011 at 8:25

GoogleCodeExporter commented 9 years ago
add Beta tag.  Presumed fixed.

Original comment by mitchellsundt@gmail.com on 20 Jul 2011 at 12:08