

![]() | Start a set with this search |
![]() | Include this search in one of my sets |
![]() | Exclude this search from one of my sets |
![]() | Permalink to these results Paste this link in email or IM: |
| Atom feed for tracking future search results Paste this URL into your reader: |
20 messages in ru.sysoev.nginxRe: Ngix not picking up the index fil...| From | Sent On | Attachments |
|---|---|---|
| mrginx | Jul 23, 2009 12:53 am | |
| Igor Sysoev | Jul 23, 2009 12:55 am | |
| mrginx | Jul 23, 2009 1:30 am | |
| Igor Sysoev | Jul 23, 2009 1:34 am | |
| Nuno Magalhães | Jul 23, 2009 2:57 am | |
| Tom Keyser | Jul 24, 2009 3:50 pm | |
| Michael Shadle | Jul 24, 2009 4:01 pm | |
| Michal Kowalski | Jul 24, 2009 8:19 pm | |
| Shr...@ DevLib.Org | Jul 24, 2009 11:35 pm | |
| Tom Keyser | Jul 24, 2009 11:47 pm | |
| Igor Sysoev | Jul 25, 2009 12:06 am | |
| Shr...@ DevLib.Org | Jul 25, 2009 12:34 am | |
| Shr...@ DevLib.Org | Jul 25, 2009 1:05 am | |
| Tom Keyser | Jul 25, 2009 1:50 am | |
| Olivier B. | Jul 25, 2009 2:36 am | |
| Tom Keyser | Jul 25, 2009 3:21 am | |
| Tom Keyser | Jul 25, 2009 4:25 am | |
| Olivier B. | Jul 25, 2009 4:55 am | |
| merlin corey | Jul 25, 2009 5:04 am | |
| Michal Kowalski | Jul 25, 2009 5:42 am |

![]() | Permalink for this message Paste this link in email or IM: |
![]() | Permalink for this thread Paste this link in email or IM: |
| Atom feed for this thread Paste this URL into your reader: |
| Subject: | Re: Ngix not picking up the index file.... after upgrade | Actions... |
|---|---|---|
| From: | Shr...@ DevLib.Org (sh...@devlib.org) | |
| Date: | Jul 25, 2009 12:34:14 am | |
| List: | ru.sysoev.nginx | |
Might be better for me to paste the config here. I think months of modifications might have left it corrupted.
server {
listen 80; server_name www.hostname.com hostname.com ; root /site/expat/oct08; index index.php;
if ($host !~ ^www\.hostname\.com$) { rewrite ^.+ http://www.hostname.com$uri permanent; break; }
location / { rewrite ^/index.php(.*)$ http://www.hostname.com/ permanent; try_files $uri @wordpress; }
location ~* \.(css|js|ico|swf|gif)$ { access_log off; expires 30d; }
location /classifieds/(.+\.php)(/.+)$ { set $script $uri; set $path_info ""; if ($uri ~ "(.+\.php)(/.+)") { set $script $1; set $path_info $2; } fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /site/expat/oct08$fastcgi_script_name; fastcgi_pass phpbackend; fastcgi_param PATH_INFO $path_info; include fastcgi_params; }
location ~ \.php { set $script $uri; set $path_info ""; if ($uri ~ "(.+\.php)(/.+)") { set $script $1; set $path_info $2; }
fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /site/expat/oct08$fastcgi_script_name; fastcgi_pass phpbackend; fastcgi_param PATH_INFO $path_info; include fastcgi_params; }
location @wordpress { fastcgi_param SCRIPT_FILENAME /site/expat/oct08/index.php; fastcgi_pass phpbackend; include fastcgi_params; } }
----- Original Message ----- From: "Igor Sysoev" <is...@rambler-co.ru> To: <ngi...@sysoev.ru> Sent: Saturday, July 25, 2009 3:06 PM Subject: Re: Ngix not picking up the index file.... after upgrade
On Sat, Jul 25, 2009 at 02:35:28PM +0800, Shri @ DevLib.Org wrote:
I have had this working for ever and some how after the upgrade to 0.8.x it seems to have stopped working.
The following config results in the http://www.hostname.com/classifieds/ not working.
http://www.hostname.com/classifieds/index.php pulls up the correct file.
Probably, you need:
location / { ... index index.php; }
What am I missing? (Yes, I do need path_info to be set correctly)
location /classifieds/(.+\.php)(/.+)$ { set $script $uri; set $path_info ""; if ($uri ~ "(.+\.php)(/.+)") { set $script $1; set $path_info $2; }
fastcgi_param SCRIPT_FILENAME /site/expat/oct08$fastcgi_script_name; fastcgi_pass phpbackend; fastcgi_param PATH_INFO $path_info; include fastcgi_params; }
Help please. :)
Where do you use $script ?
Now you can use:
location ~ /classifieds/(.+\.php)(/.+)$ {
fastcgi_split_path_info ^(.+\.php)(/.+);
fastcgi_param SCRIPT_FILENAME /site/expat/oct08$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_pass phpbackend; include fastcgi_params; }
-- Igor Sysoev http://sysoev.ru/en/







