You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2009-02-13 12:23:45

mmontesino
Member
Registered: 2009-02-12
Posts: 6

Publish GLPI through reverse proxy

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

#2 2009-02-26 19:49:46

MoYo
GLPI - Lead
From: Poitiers
Registered: 2004-09-13
Posts: 14,513
Website

Re: Publish GLPI through reverse proxy

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

#3 2009-03-18 13:42:40

mmontesino
Member
Registered: 2009-02-12
Posts: 6

Re: Publish GLPI through reverse proxy

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

Board footer

Powered by FluxBB