Gallery: 在Windows Server2003和Apache上的安装:修订间差异
来自站长百科
Firebrance(讨论 | 贡献) |
Firebrance(讨论 | 贡献) 无编辑摘要 |
||
第1行: | 第1行: | ||
目前为占位之用。 | |||
= | = 使用Apache = | ||
==mod rewrite== | ==mod rewrite== | ||
* | *要让mod-rewrite起效,我必须完成大部分的工作。但所有的变更都是mod-rewrite及Apache特定的,它们与G2无关。不过G2测试却告诉我Apache Mod-rewrite能够正常运行。但当我登入gallery后,所有URL的重写都被破坏了。因此目前此测试在Win32上还不够可靠。我需要在安装中进行修改的东西如下,这样我才能让url重写起效: | ||
* | *这一步我在G2 url重写测试之前就完成了。在此步完成显示正常,但却无法工作。在httpd.conf 中通过移除LoadModule rewrite_module modules/mod_rewrite.so 之前的#来启用mod_rewrite.so模块。 | ||
* | *为httpd.conf中的gallery dir启用符号链接。对此dir,非限制性选项是:Options IncludesNOEXEC Indexes MultiViews FollowSymLinks ExecCGI | ||
* | *在httpd.conf中添加一个重写日志来看看发生了什么: | ||
RewriteLog "C:/Program Files/Apache Group/Apache2/logs/rewrite.log" | RewriteLog "C:/Program Files/Apache Group/Apache2/logs/rewrite.log" | ||
* | *重启Apache服务。 | ||
[[Category:Gallery 2:Installation|Windows Server 2003 and Apache]] | [[Category:Gallery 2:Installation|Windows Server 2003 and Apache]] |
2008年11月25日 (二) 10:48的版本
目前为占位之用。
使用Apache
mod rewrite
- 要让mod-rewrite起效,我必须完成大部分的工作。但所有的变更都是mod-rewrite及Apache特定的,它们与G2无关。不过G2测试却告诉我Apache Mod-rewrite能够正常运行。但当我登入gallery后,所有URL的重写都被破坏了。因此目前此测试在Win32上还不够可靠。我需要在安装中进行修改的东西如下,这样我才能让url重写起效:
- 这一步我在G2 url重写测试之前就完成了。在此步完成显示正常,但却无法工作。在httpd.conf 中通过移除LoadModule rewrite_module modules/mod_rewrite.so 之前的#来启用mod_rewrite.so模块。
- 为httpd.conf中的gallery dir启用符号链接。对此dir,非限制性选项是:Options IncludesNOEXEC Indexes MultiViews FollowSymLinks ExecCGI
- 在httpd.conf中添加一个重写日志来看看发生了什么:
RewriteLog "C:/Program Files/Apache Group/Apache2/logs/rewrite.log"
- 重启Apache服务。