You are not logged in.
Pages: 1
Hi:
We had configured GLPI in a server, and it working ok with internal URL. Our problem comes that we have published the aplication to internet through reverse proxy, that we haven't manage, and GLPI not work, because use absolute redirection. We had tried to change GLPI_ROOT values to external URL and $CFG_GLPI["root_doc"] too, but GLPI not seems to work.
The aplication is publish in www.domain.com/company/department/web/glpi, and the css and redirections seems to go www.domain.com. For example, if we try to login we have 404 error and the url redirect goes to www.domain.com/front/central.php.
We have tried to change the GLPI_ROOT value to www.domain.com/company/department/web/glpi and $CFG_GLPI['root_doc'] to www.domain.com/company/department/web$_SERVER['REQUEST_URI'] (concatenated). But still not work, with some LDAP errors with absolute route of servers file /var/www/glpi/...
From internal network the GLPI works ok.
Has anyone has resolved this kind of problem before? Or any idea in how to solve it or why this problem is produced. We cannot do any change in the reverse proxy or change the external url to another domain.
Thanks in advance.
Offline
GLPI_ROOT is a relative path not an URL.
I think that the proxy do not permit a good computation of the $CFG_GLPI["root_doc"] variable.
Give us all your proxy config to be able to test and detect the problem.
MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI : Support Contribute References Freshmeat
Offline
Hi Everybody:
We had resolved the problem using and apache module: mod_substitute. This module change a part of an url to another text, so in our case we substitute the first slash to the external path. To configure this module you have to use the following configuration in your apache conf.
AddOutputFilterByType SUBSTITUTE text/html
Substitute ‘s|”/|”http://www.externaldomain.com/directory/|in’
Substitute “s|’/|’http://www.externaldomain.com/directory/|in”
Offline
Pages: 1