Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sun Jan 01, 2012 8:32 pm 
Offline
Senior Newbie

Joined: Sun Nov 27, 2011 4:54 pm
Posts: 15
I have an arcade installed on my forum, the games pass their score to [forum]/arcade.php however this file doesn't actually exist. Under Apache this system worked but with NginX the process is falling over.

Forum URL
www.the-sps.org

Arcade URL
www.the-sps.org/arcade

The following URL should pass of as the Arcade URL above but throws up a 404
www.the-sps.org/arcade.php

I'm rubbish at explaining it but this guy Kevin over at XenForo did a pretty good job. You'll maybe need to read a couple of posts up to get the context.

Code:
server {
   listen            80 default_server;
   server_name         the-sps.org;
   access_log         off;
   error_log         /srv/www/the-sps.org/logs/error.log;
   root            /srv/www/the-sps.org/public_html;
   index            index.php index.html;

   location / {
    try_files $uri $uri/ /index.php?$uri&$args;
    index index.php index.html;
   }
   
   location /internal_data/ {
    internal;
   }
   
   location /library/ {
    internal;
    }

   location ~ \.php$ {
      fastcgi_split_path_info   ^(.+\.php)(/.+)$;
      fastcgi_pass      127.0.0.1:9000;
      fastcgi_param      PATH_INFO   $fastcgi_path_info;
      fastcgi_param      PATH_TRANSLATED   $document_root$fastcgi_script_name;
      include         fastcgi_params;
   }
}


Top
   
 Post subject:
PostPosted: Wed Jan 04, 2012 12:48 pm 
Offline
Senior Newbie

Joined: Sun Nov 27, 2011 4:54 pm
Posts: 15
I've just noticed something.

Route handling seems to work with any other file extension just not .php

For example
http://the-sps.org/arcade.mp3 works you can actually add any extension you like and it'll work
http://the-sps.org/arcade.php doesn't


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group