I've browsed around a bit before registering and posting this. Still, I'm stumped.
First, my config :
Apache2 v2.2.13 running on a Solaris 10u5 box, using PHP 5.2.10 and Gallery 2.3.
The gallery is facing internet, no problem there, anyone can access it provided they use to proper FQDN.
What I find highly inconenient is that users on my LAN have to use the FQDN (thus going outside the LAN, resolve the FQDN on the net, and then come back on my LAN from the net) instead of simply using my webserver's hostname.
Might it be a way to allow me to tweak Gallery2 (or maybe some httpd.conf tweak ? I'm thinking a combination of vhost+mod_alias+mod_rewrite, maybe; you tell me
) so that the same gallery can be seen facing the net or from my LAN ?
Thanks,
Jeff
Posts: 16503
You can try setting the baseUri setting at the bottom of config.php to be empty. If that doesn't work, then setup your internal DNS servers (or local hosts files if you don't have internal DNS or only have a few machines internally) so that the FQDN resolves to the internal address. Just remember that's set for testing purposes though.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 3
I'll go with the modification of config.php.
Modifying /etc/hosts wouldn't work : to get on the Gallery from the Net you have to go to a specific (not 80/tcp) port and the f/w forwards the connection to the web server on the network on 80/tcp.
Putting a new server on the non-80 port on the network is not an option, neither is tweaking the firewall. You see the kind of bind I'm in ?
I'll try fooling around config.php and will post my results here. Most likely tomorrow (saturday).
-- Jeff
** EDIT (10 mins later)
nivekiam, you're the best.
I've changed the parameter in config.php as you suggested, and it worked.
I was a bit suspicious : the gallery runs on a vhost on the webserver; the vhost's DocumentRoot is located outside the webserver's ServerRoot. I couldn't reach the vhost directly from the local network as its name doesn't resolve. I had to use a directory alias in the main httpd config so that by going on the webserver and then a specific ("aliased") directory, it goes on the gallery. Oh well.. it works now
Thanks again !