通过固定IP访问Gallery

来自Ubuntu中文
跳到导航跳到搜索

通过固定IP访问Gallery

例如 假設网络及 internet 连接是已经正确设置完成
Internet (Hostname or fix IP) or LAN (fix IP): http://www.url.com
{
sudo cp /etc/gallery/config.php /etc/gallery/config.php_backup
sudo gedit /etc/gallery/config.php
  • 找到这段文字
...

$gallery->app->photoAlbumURL = "http://localhost/gallery";

$gallery->app->albumDirURL = "http://localhost/albums";

...
  • 用下面文字覆盖
$gallery->app->photoAlbumURL = "http://www.url.com/gallery";

$gallery->app->albumDirURL = "http://www.url.com/albums";