通过动态IP访问Gallery

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

通过动态IP访问Gallery

例如 假设您的网络连接已经正确设置好
LAN (dynamic IP): 192.168.0.1
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 = "/gallery";

$gallery->app->albumDirURL = "/albums";