通过固定IP访问Gallery
来自Ubuntu中文
Oneleaf(讨论 | 贡献)2007年5月31日 (四) 09:15的版本 (新页面: == 通过固定IP访问Gallery == *请参阅 如何安装 Gallery 来提供图片相册服务? {|border="1" cellspacing="0" |例如 假設网络及 internet 连接是...)
通过固定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";
- 保存不编辑过的文件(范 例)
- http://www.url.com/gallery/albums.php