C
CADVector
Unregistered / Unconfirmed
GUEST, unregistred user!
源文件:
library Web;
uses
WebBroker,
ApacheTwoApp,
MyWeb in 'MyWeb.pas' {WebModule1: TWebModule};
{$R *.res}
{$E so} //change binary file extension from .dll to .so
{$LIBPREFIX 'mod_'}
exports
apache_module name 'Web_module';
begin
Application.Initialize;
Application.CreateForm(TWebModule1, WebModule1);
Application.Run;
end.
然后在httpd.conf中添加
LoadModule Web_module modules/mod_Web.so
<Location /delphi>
SetHandler mod_web-handler
</Location>
重新启动APACHE服务,启动失败,提示无法加载mod_Web.so,不知道为什么
library Web;
uses
WebBroker,
ApacheTwoApp,
MyWeb in 'MyWeb.pas' {WebModule1: TWebModule};
{$R *.res}
{$E so} //change binary file extension from .dll to .so
{$LIBPREFIX 'mod_'}
exports
apache_module name 'Web_module';
begin
Application.Initialize;
Application.CreateForm(TWebModule1, WebModule1);
Application.Run;
end.
然后在httpd.conf中添加
LoadModule Web_module modules/mod_Web.so
<Location /delphi>
SetHandler mod_web-handler
</Location>
重新启动APACHE服务,启动失败,提示无法加载mod_Web.so,不知道为什么