Gallery: 在Windows Server2003和Apache上的安装:修订间差异

来自站长百科
跳转至: 导航、​ 搜索
无编辑摘要
第1行: 第1行:
This is just a placeholder for now.
目前为占位之用。


= Using Apache =
= 使用Apache =
==mod rewrite==
==mod rewrite==
*For mod-rewrite to work I had to do the most stuff. But all the alterations are mod-rewrite and Apache specific. They have nothing to do with G2. However, the G2 test told me that Apache Mod-rewrite worked correctly. But when I went into my galleries all URL's were broken. So the test is for this moment not adequate enough on Win32. Things I had to alter in my setup to make url rewriting work:
*要让mod-rewrite起效,我必须完成大部分的工作。但所有的变更都是mod-rewrite及Apache特定的,它们与G2无关。不过G2测试却告诉我Apache Mod-rewrite能够正常运行。但当我登入gallery后,所有URL的重写都被破坏了。因此目前此测试在Win32上还不够可靠。我需要在安装中进行修改的东西如下,这样我才能让url重写起效:


*This step I had done already before the G2 test of url-rewriting. After this step the test gave me green light, however it did not work yet. enable the mod_rewrite.so module in httpd.conf by removing the # in front of
*这一步我在G2 url重写测试之前就完成了。在此步完成显示正常,但却无法工作。在httpd.conf 中通过移除LoadModule rewrite_module modules/mod_rewrite.so 之前的#来启用mod_rewrite.so模块。
LoadModule rewrite_module modules/mod_rewrite.so  


*Enable symlinks for the gallery2 dir in httpd.conf. My rather unrestrictive options for that dir are: Options IncludesNOEXEC Indexes MultiViews FollowSymLinks ExecCGI  
*为httpd.conf中的gallery dir启用符号链接。对此dir,非限制性选项是:Options IncludesNOEXEC Indexes MultiViews FollowSymLinks ExecCGI  


*Add a rewrite log in httpd.conf to see what is happening:
*在httpd.conf中添加一个重写日志来看看发生了什么:
RewriteLog "C:/Program Files/Apache Group/Apache2/logs/rewrite.log"  
RewriteLog "C:/Program Files/Apache Group/Apache2/logs/rewrite.log"  


*Restart the Apache service.
*重启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服务。