Quantcast
Channel: Installing and upgrading help
Viewing all articles
Browse latest Browse all 47328

Re: Redirection from apache2 server to nginx reverse proxy server w moodle 3.3

$
0
0

by Carolynn Bellavance.  

I would love to change the configuration but I am to work with what I have right now before trying  anything "new". The nginx is configured in a way to have all our locations in the same conf file, if I change it, it will also change for all our sites and without testing what config works for everything without any downtime I cannot do it for moodle. 


I do not know what you mean by "exposing" my hostname ?
CFG->reverseproxy = true is already at true, but I did take out the trailing slashes, as I wrote in my last message, it gives out a 404 error "/moodle/ not found".


Tried Emma's suggestion but it only gives these logs on nginx : 

==> /var/log/nginx/domain.access.log <==

192.168.0.160 - - [15/Jan/2018:08:32:08 -0500] "GET /moodle/ HTTP/2.0" 499 0 "-""Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.75 Safari/537.36"

==> /var/log/nginx/domain.error.log <==

2018/01/15 08:33:08 [error] 40436#40436: *41130 upstream timed out (110: Connection timed out) while connecting to upstream, client: 192.168.0.160, server: example.com, request: "GET /moodle/ HTTP/2.0", upstream: "https://192.168.0.4:443/moodle/", host: "example.com"


EDIT: Thank you both of you for your help. Figured out the 404 error was becasue the apache conf on the moodle server directed to /var/www/moodle/ instead of /var/www/. It is now working as it should.


Viewing all articles
Browse latest Browse all 47328

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>