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.