New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apache 2.2 does not provide REQUEST_SCHEME #143

Closed
jean1 opened this Issue Jun 10, 2015 · 0 comments

Comments

Projects
None yet
1 participant
@jean1
Collaborator

jean1 commented Jun 10, 2015

When trying to authenticate with CAS when Netmagis is running with Apache 2.2,the method cgi-dispatch return an error page saying:

Cannot get my own URL

The problem is located in common/pkgtcl/webapp.tcl, proc ::webapp::myurl

I dumped the whole environment to check why this proc was failing:
t(DOCUMENT_ROOT) = /www/docs
t(GATEWAY_INTERFACE) = CGI/1.1
t(HTTPS) = on
t(HTTP_CONNECTION) = keep-alive
t(HTTP_COOKIE) = __....
t(HTTP_HOST) = netmagis
t(LANG) = fr_FR.UTF-8
t(REMOTE_ADDR) = 192.168.1.2
t(REMOTE_PORT) = 46300
t(REMOTE_USER) = jean
t(REQUEST_URI) = /netmagis/start
t(SCRIPT_URI) = https://netmagis.example.com/netmagis/start
t(SCRIPT_URL) = /netmagis/start
t(SERVER_ADDR) = 172.16.2.78
t(SERVER_NAME) = netmagis.example.com
t(SERVER_PORT) = 443
t(SERVER_PROTOCOL) = HTTP/1.1
t(SERVER_SIGNATURE) =

Apache Server at netmagis.example.com Port 443
t(SSL_TLS_SNI) = netmagis.example.com

Apparently, the env. variable REQUEST_SCHEME is missing.

Suggestion to get around this problem:
http://stackoverflow.com/questions/18008135/is-serverrequest-scheme-reliable

Another possibility is to change the specs and force Apache 2.4 as a requirement.

@pdav pdav closed this in 57a8469 Jun 24, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment