Access gallery just with http://1.2.3.4

seladj

Joined: 2005-05-11
Posts: 1
Posted: Wed, 2005-05-11 04:25

Hello I am running Gallery 1.5. I do not have
the version for Apache and PHP as I am not
at my machine right now. The machine OS
is Fedora Core 2.

I am trying to access Gallery with just
http://1.2.3.4 instead of http://1.2.3.4/gallery.
I have place a soft link at the DocumentRoot
directory, the file index.html points to
/var/www/html/gallery/index.php.

I encountered an error message,
"To include this file you must edit %s's index.php and add %s to the \$safe_to_include array")"

I have placed an additional line "/var/www/html/index.html".
in the index.php. However the error message still reappears.
Is there a simple solution to this simple problem? Thanks!

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Wed, 2005-05-11 04:40

You could just put all the files in "/gallery/" into the "/" directory instead. Then you gallery dir would be (example only!) "/var/www/html" and your albums dir would probably be something like "/var/www/html/albums". Should work fine.