Site Administration forms redirecting to https

Site Administration forms redirecting to https

by Tom Palaz -
Number of replies: 4
We just upgraded to 3.2.2 (running on apache) and are noticing that after submitting Site Administration forms, they redirect to https. For previous versions of moodle we didn't need a certificate on our servers (we use CAS for login) but now with 3.2.2 it looks like a certificate is required? Or, is there a way to turn off this redirection to https? We'd rather serve everything over http.


Average of ratings: -
In reply to Tom Palaz

Re: Site Administration forms redirecting to https

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

I can't think of anything in Moodle that would do this. My first thought is that your web server or .htaccess file is redirecting URLs with /admin in them. 

In reply to Howard Miller

Re: Site Administration forms redirecting to https

by Tom Palaz -

That was my first thought too, but I installed 3.2.2 on the same server we were running Moodle 3.1.3 and didn't make any changes to our conf file or add any .htaccess files so I figured it was something different with 3.2.2 . It wasn't happening in 3.1.3. We actually don't have any .htaccess files anywhere on the server.

Are you running 3.2.2 and are the admin pages redirecting to https?

In reply to Tom Palaz

Re: Site Administration forms redirecting to https

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

I've got 3.2.2 running on my test server and it definitely doesn't do that.

Have you got 'loginhttps' enabled? 

In reply to Howard Miller

Re: Site Administration forms redirecting to https

by Tom Palaz -

It turned out to be a setting on our load balancer (Redirect Rewrite was set to Matching) so it was ignoring the headers. Working now.