In Apache I can set an environment variable using SetEnv
For E.g
[code]
<VirtualHost *:80>
DocumentRoot /var/apache2/htdocs/tutorial/Web/
ServerName dev.tutorial.local
SetEnv FLOW3_CONTEXT Development
</VirtualHost>
[/code]
Whats the equivalent way to do it in Nginx
Second whats the correct rewrite rule for this simple one
[code]
# Continue only if the file/symlink/directory does not exist
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule (.*) index.php/$1
[/code]
I'm trying this code but i'm getting "rewrite or internal redirection cycle while processing"
[code]
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php/$1 last;
break;
}
[/code]
Edited 1 time(s). Last edit at 09/14/2009 04:26PM by MySchizoBuddy.