这里有些参考http://www.blong.com/Articles/Apache%20For%20Windows/ApacheWindows.html
哈,我自己搞定了。。。。下面是最简单的做法。。。 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
一。新检一个intraweb project ,我选 apache1的
library IWDSOProject;
uses ApacheApp, IWInitApache, ServerController in 'ServerController.pas' {IWServerController: TIWServerControllerBase}, IWUnit1 in 'IWUnit1.pas' {formMain: TIWForm1};
{$E so}
{$R *.RES}
exports apache_module name 'IWDSOProject_module';
begin IWRun(TFormMain, TIWServerController); end.
二。编译出IWDSOProject.so , 拷到 /apache/modules 里
三。在 apache/conf/httpd.conf 最后加上 LoadModule IWDSOProject_module modules/IWDSOProject.so <Location /test> SetHandler iwdsoproject-handler </Location>
四。重启 apache服务。
五。可以浏览了喽! http://localhost/test/
说明一下:LoadModule IWDSOProject_module modules/IWDSOProject.so IWDSOProject_module 就是你的delphi里的 apache_module name 'IWDSOProject_module'; 中的IWDSOProject_module
SetHandler iwdsoproject-handler ,这个 iwdsoproject 就是你编译出来的文件(.so)前面的文件名的小写,再后面加上 “-handler”
嘻嘻,,,,搞定,,,linux的也这样配置就行了,apache2的也一样啦,,,
说明一下在 linux 下编译apache时一定要 ./configure --enable-module=so ,这样才能用DSO。。。。
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 最后了,大家继续讨论------------------- 有一个问题,,在win32编译出来的 .so可以直接在linux上用么? 如果不行就惨了,kylix3 没有 intraweb 啊~~~~~ --------------------
我今天见过一个程序(keygen的东东)可以同时在 win32和linux下运行哦~~~~~不知谁知道怎么搞??? 
|