Options Indexes FollowSymLinks ExecCGI AddHandler fcgid-script .eapp FcgidWrapper c:/_dev/Dev-Process/web-framework/library/server/request/rest/tests/htdocs/../EIFGENs/rest_sample_cgi/W_code/sample.exe .eapp Options +ExecCGI AddHandler cgi-script exe RewriteEngine on RewriteBase /REST RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !=/favicon.ico RewriteRule ^(.*)$ sample.eapp/$1 # To let CGI app knows about HTTP_AUTHORIZATION RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]