I m running a django application with fcgi
when I do this with one application, my .htaccess file looks like
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ app.fcgi/$1 [QSA, L]
并且效果良好。
Now, I want to run different applications on different subdomains.
So I will create a *.fcgi file for every app.
Basically, what I want to do is to redirect the request to subdomain.mydomain.com to the subdomain.fcgi file.
我尝试过这个,但没有工作
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{HTTP_HOST} ^(.*).mydomain.com$
RewriteRule ^(.*)$ %1.fcgi/$1 [QSA, L]