12 messages in ru.sysoev.nginxHelp with rewrite rules
FromSent OnAttachments
Šime RamovFeb 13, 2007 1:03 pm 
Igor SysoevFeb 14, 2007 6:08 am 
Šime RamovFeb 14, 2007 1:03 pm 
Šime RamovFeb 14, 2007 1:06 pm 
Šime RamovFeb 14, 2007 1:24 pm 
Tomislav FilipčićFeb 14, 2007 2:02 pm 
Šime RamovFeb 15, 2007 3:50 am 
Tomislav FilipčićFeb 15, 2007 4:29 am 
Šime RamovFeb 15, 2007 4:58 am 
Tomislav FilipčićFeb 15, 2007 6:59 am 
Šime RamovFeb 15, 2007 7:29 am 
Šime RamovFeb 20, 2007 10:09 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Help with rewrite rulesActions...
From:Šime Ramov (hi-8@public.gmane.org)
Date:Feb 13, 2007 1:03:39 pm
List:ru.sysoev.nginx

Hello,

I'm trying to set-up phpMyID (OpenID). Everything works until the last point where I actually need to log in, it just stalls after i enter username and password.

I'm running PHP in CGI mode (nginx proxy), so I need to enter some rewrite rules because of that.

This is from the htaccess file from the phpMyID distribution:

# If you are running PHP in CGI mode you will need to add one set of these # directives to your .htaccess file, or your virtualhost configuration. # # The easiest way to do so is to simply rename this file ".htaccess"

# Option 1, mod_rewrite (req) #RewriteEngine on #RewriteCond %{HTTP:Authorization} !^$ #RewriteCond %{QUERY_STRING} openid.mode=authorize #RewriteCond %{QUERY_STRING} !auth= #RewriteCond %{REQUEST_METHOD} =GET #RewriteRule (.*) %{REQUEST_URI}?%{QUERY_STRING}&auth=%{HTTP:Authorization} [L]

# Option 2, mod_rewrite (env) #RewriteEngine on #RewriteRule \.php$ - [E=PHP_AUTH_DIGEST:%{HTTP:Authorization},L]

# Option 3, mod_setenvif #SetEnvIf Authorization "(.*)" PHP_AUTH_DIGEST=$1

Now, I need to choose one option (which is possible and best suited for nginx) and convert apache rewrite rules to nginx rewrite rules... Any help would be greatly appreciated...

- Šime