Ticket #665 (closed maintenance: fixed)
Wagn "Problem Loading Page" error
Reported by: | chris | Owned by: | chris |
---|---|---|---|
Priority: | major | Milestone: | Maintenance |
Component: | Wagn | Keywords: | |
Cc: | ed, sam | Estimated Number of Hours: | 0.0 |
Add Hours to Ticket: | 0 | Billable?: | yes |
Total Hours: | 0.91 |
Description
Bug report from Tom:
I've encountered a problem when trying to set up new accounts: I get a 'Problem Loading Page' error when it tries to load http://localhost:3000/wagn/Invite_Success. This seems to be explained at http://wagn.org/Special_Urls_and_Ports - which I am hoping falls under your area of responsibility as I'm not sure how to do it myself,! But let me know if not...
Change History
comment:1 Changed 3 years ago by chris
- Add Hours to Ticket changed from 0.0 to 0.3
- Total Hours changed from 0.0 to 0.3
comment:2 Changed 3 years ago by chris
However creating a wagn.rb file didn't solve the problem, Tom has raised a ticket about this here: http://wagn.org/Site_admin_functions_redirecting_to_localhost_rather_than_domain_name
comment:3 Changed 3 years ago by chris
- Add Hours to Ticket changed from 0.0 to 0.35
- Total Hours changed from 0.3 to 0.65
Ethan as replied to the ticket, http://wagn.org/Site_admin_functions_redirecting_to_localhost_rather_than_domain_name and updated the docs, http://wagn.org/Special_Urls_and_Ports
So I have added this to config/wagn.yml:
host: patterns.transitionresearchnetwork.org protocol: https
And restarted the WEBrick server.
I have also deleted the config/wagn.rb file.
Ethan asked:
I'm not sure why this is not happening correctly for you or where the "localhost" issue is coming from, unless you already have something like "host: localhost:3000" in wagn.yml?
This is because we have a Ngnix reverse proxy running in front of WEBrick see ticket:561 for more detail, we have also upgraded to Debian Wheezy since then.
Ethan also said:
I would also suggest you look closely at wagn in production, which offers some key hints for making wagn run more speedily. If, for example, you are not using memcache, I would *strongly* recommend it!!
I'd be happy to go down this road, installing Phusion Passenger and memcache and using the mysql2 adapter in database.yml, but it would probably take a few hours to set up, we opted for the WEBrick server with a reverse Nginx proxy to start with because it was very quick and easy to set up.
comment:4 Changed 3 years ago by chris
- Add Hours to Ticket changed from 0.0 to 0.25
- Total Hours changed from 0.65 to 0.9
Report from Tom:
This has changed the redirect address, but to one with extra text in that
doesn't work!
https://patterns.transitionresearchnetwork.org/httpspatterns.transitionresearchnetwork.org/Invite_Success
I've updated the support ticket at
http://wagn.org/Site_admin_functions_redirecting_to_localhost_rather_than_domain_name
I have commented out the protocol to see if this helps, so we have this in wagn.yml:
host: patterns.transitionresearchnetwork.org #protocol: https
Ideally we wouldn't specify the protocol and links would either be in this form:
/recent
Or like this so they work with HTTP and HTTPS:
//patterns.transitionresearchnetwork.org/recent
We are using a STS header (see https://en.wikipedia.org/wiki/HTTP_Strict_Transport_Security ) and redirecting logins to use HTTPS to ensure security at the Nginx level:
# Redirect logins to HTTPS # http://wiki.nginx.org/NginxHttpCoreModule#location location ^~ /account { rewrite ^(.*)$ https://$server_name$1 permanent; }
There was no config/wagn.rb file so I have created one with this in it:
And restarted the server as per wiki:TransitionResearchWagn