Gallery3 Host URL configuration

s4mur4i

Joined: 2011-04-01
Posts: 6
Posted: Sun, 2012-06-17 10:30

Hy,

I have an interesting setup, where gallery3 server is behind NAT and Apache reverse proxy. Some pages load okay, but some pages, for example on admin dashboard are redirected to the local hostname domain.

I have tried looking in the application/config/config.php file, but that is for only the domain part not the main hostname.
I also found this information http://codex.gallery2.org/Gallery3:Developer_Handbook:URLs_and_URL_Routing but no info if it is possible to overwrite the hostname.

Version: 3.0.4 (Ricochet)
Operating system: Linux 2.6.32-5-amd64
Apache: Apache/2.2.16 (Debian)
PHP: 5.3.3-7+squeeze13

External link should be: kep.szamuraj.ath.cx/gallery
Internal link is: ricardo.szamuraj.info/gallery

Thanks for any info.

 
s4mur4i

Joined: 2011-04-01
Posts: 6
Posted: Mon, 2012-06-18 13:55

Solved it.

On reverse proxy change two directives:

# ProxyPassReverse / http://whatever/
ProxyPreserveHost On

and it evaluates fine.