2010-07-02 10:21:26
Setting Atutor behind a Reverse Proxy
People from internet are not able to login to my Atutor
while from LAN any one can login and it works fine.
Things to describe:
Operating system ATutor is installed on - Ubuntu 10.04
ATutor version - 1.6.4
Patch #s applied - none
ATutor theme name - no idea what that means
PHP version - 5
MySQL version - Ver 14.14 Distrib 5.1.41, for debian-linux-gnu (x86_64) using readline 6.1
Webserver & version - Apache 2
Copies of error messages - None
Changes to default settings - Nome
Web browser being used - Chrome,Firefox 3
...and anything else relevant -
I am testing ATutor on our LAN it installed and worked fine.We now want it to be publicly accessible we have some websites running on our webserver in a Reverse Proxy environment.
I configured the same for ATutor but the page being served to client browser on internet was not able to login to the Atutor interface we have.
I want to know how does ATutor handles X-Forwarded-For header when a request comes to it forwarded via Reverse Proxy where can I give it the IP of my Reverse Proxy Server so that it can maintain the session or the user can login the
Settings of Reverse Proxy on Apache2 for Atutor are
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName mydomain.com
ProxyRequests off
ProxyRequests off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass /atutor http://192.168.1.5/atutor
ProxyPassReverse /atutor http://192.168.1.5/atutor
</VirtualHost