0

I have web application server that handles requests and returns response created in Eiffel web framework and uses fcgi as a connector, and I have put the final executable file in the htdocs file (app.exe).

Now I want to run apache with fastcgi and start the application and run it in localhost. I modified the httpconf file as below, but its not running.

<Directory "C:/Apache2.2/htdocs">
    Options +ExecCGI +Includes +FollowSymLinks -Indexes
    AllowOverride All
    Order allow,deny
    Allow from all
    Require all granted
</Directory>

<IfModule mod_fcgid.c>

    AddHandler fcgid-script .ews
    FcgidWrapper C:/Apache2.2/htdocs/app.exe .ews

</IfModule>

<IfModule mod_rewrite.c>

    RewriteEngine on
    RewriteBase /
    RewriteRule ^$ app.ews [L]
    RewriteCond %{REQUEST_FILENAME} !­f
    RewriteCond %{REQUEST_FILENAME} !­d
    RewriteCond %{REQUEST_URI} !=/favicon.ico
    RewriteCond %{REQUEST_URI} !service.ews
    RewriteRule ^(.*)$ service.ews/$1
    RewriteRule .* ­ [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]

</IfModule>

I have loaded the 2 modules fcgid and rewrite.

4

1 回答 1

0

apache 配置是正确的,在与用户调查此问题后,但似乎 app.exe 未编译为作为 libfcgi 服务器运行,而是作为独立服务器运行。

使用 EWF ,可以编译相同的代码以作为 CGI、libfcgi 的独立服务器或所有这些运行,但在这种情况下,可执行文件的名称很重要。这就是错误。用户修复了他的错误并且无法将其应用程序作为 FCGI 服务器运行。

于 2014-07-02T10:37:26.147 回答