MEDIUM: Move to WSGI since it gives better perf

This commit is contained in:
Bertrand Jacquin 2016-11-02 01:07:09 +00:00
parent c5db992f1e
commit 76e4ab5d98
No known key found for this signature in database
GPG Key ID: 5534871F2E2E93DA
1 changed files with 4 additions and 6 deletions

View File

@ -3,15 +3,13 @@
# FollowSymlinks for RewriteEngine
Options -Indexes ExecCGI FollowSymlinks
AddHandler cgi-script .fcgi
AddHandler wsgi-script .wsgi
# No index.html or other things
DirectoryIndex extra.fcgi
RewriteEngine On
DirectoryIndex extra.wsgi
# Stop here if application is handling the request
RewriteCond %{REQUEST_URI} ^/extra\.fcgi
RewriteCond %{REQUEST_URI} ^/extra\.wsgi
RewriteRule (.*) - [L]
# Extra application
RewriteRule (.*) /extra.fcgi/$1 [L,QSA,NS]
RewriteRule (.*) /extra.wsgi/$1 [L,QSA,NS]