2006-08-11 14:53:59
basepath and proxied sites
Hello,
I have just installed ATutor 1.5.3.2 for evaluation. It is running behind a proxy, and after an otherwise normal installation process, pages were generated with the IP address of the proxy as the base href (i.e. <base href="http://10.0.0.7/" />). Obviously my browser could not reach this directly. After playing around with UseCanonicalName settings in httpd.conf, etc., I finally changed line 147 of include/lib/constants.inc.php from using HTTP_HOST to using SERVER_NAME. Reading http://us2.php.net/reserved.variables, it would seem that this is a better choice against which to derive the $_base_href variable. Thoughts? Thanks!
David