27 lines
552 B
Plaintext
27 lines
552 B
Plaintext
Options Indexes FollowSymLinks ExecCGI
|
|
|
|
<IfModule mod_fcgid.c>
|
|
AddHandler fcgid-script .eapp
|
|
FcgidWrapper ##SAMPLE-CGI-DIR##/sample.exe .eapp
|
|
|
|
</IfModule>
|
|
|
|
Options +ExecCGI
|
|
AddHandler cgi-script exe
|
|
|
|
|
|
<IfModule mod_rewrite.c>
|
|
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]
|
|
|
|
</IfModule>
|