1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

/arcade = works | /arcade.php = NOPE

Discussion in 'Server Configuration and Hosting' started by ChemicalKicks, Dec 20, 2011.

  1. ChemicalKicks

    ChemicalKicks Well-Known Member

    Try it yourself.

    Going to www.the-sps.org/arcade will take you to the arcade but add.php on the end and it's a no show, not even a 404.

    Also of interest are the 404 and when they chose to work,

    www.the-sps.org/doesntwork
    www.the-sps.org/doesntwork.php

    As soon as the .php extension is there the nginx just says NOPE.

    Has to the the nginx vhost but what?

    NOTE.

    If you've stumbled across this thread for a fix to the described problem just go ahead and use the suggest nginx conf that can be found in the xf help pages it incorporates the changes suggested in this thread. :)
     
  2. Digital Doctor

    Digital Doctor Well-Known Member

    does /arcade/arcade.php work ?

    is the file called arcade.php or is it xfarcade.php ? or ...
     
  3. Digital Doctor

    Digital Doctor Well-Known Member

    FYI, in Space Invaders ... when it is down to the last guy ... the invader speed doesn't increase ! It is very easy :)
    space.invaders.the-SPS.org.png
     
    ChemicalKicks likes this.
  4. ChemicalKicks

    ChemicalKicks Well-Known Member

    You think like me, tried that and no it didn't work.
    heh well....... there isn't an arcade.php in the web root. Here's what Kevin had to say on it
    Now I'm using the rules suggested by XenForo Help as per here but now joy.
     
  5. ChemicalKicks

    ChemicalKicks Well-Known Member

    Did your score submit?
     
  6. Digital Doctor

    Digital Doctor Well-Known Member

    No. I'm a guest too. Pacman didn't give submission options (FYI).
     
  7. ChemicalKicks

    ChemicalKicks Well-Known Member

    Yeah it's the old v3 games that do that which prompted me to try and get help on the arcade.php bit not working :)
     
  8. Brandon Sheley

    Brandon Sheley Well-Known Member

  9. ChemicalKicks

    ChemicalKicks Well-Known Member

    That would be preferable but the problem I'm having with the arcade is merely a symptom, It's not a cause. Try this.

    www.the-sps.org/brandon gets a 404 which has been internally handled

    Now try

    www.the-sps.org/brandon.php gets 404 handled by the webserver

    :)
     
  10. Liam D.

    Liam D. Active Member

    What webserver are you running on?
     
  11. ChemicalKicks

    ChemicalKicks Well-Known Member

    Nginx.

    I was speaking to Mike but he doesn't feel confident enough dealing with nginx to give me any solid advice.
     
  12. Liam D.

    Liam D. Active Member

    For NginX:

    Code:
    location /path-to-forum/ {
      try_files $uri $uri/ $uri.php;
    }
    Backup first before adding code. Just to be safe.
     
    ChemicalKicks likes this.
  13. ChemicalKicks

    ChemicalKicks Well-Known Member

    Thanks for your suggestion, I tried that, cleared the cache and restarted php and nginx. When I attempted to access my main url I got a 403 error.

    This is what I have at the moment, I hope it helps.

    Code:
    location / {
        try_files $uri $uri/ /index.php?$uri&$args;
        index index.php index.html;
    }
     
  14. Luke F

    Luke F Well-Known Member

    try_files $uri $uri/ $uri.php /index.php?$uri&$args;
     
    ChemicalKicks likes this.
  15. ChemicalKicks

    ChemicalKicks Well-Known Member

    Gave that a go, restarted and although the rest of the site works www.the-sps.org/arcade.php doesn't :)
     
  16. Luke F

    Luke F Well-Known Member

    rewrite /arcade.php /arcade redirect;
     
  17. ChemicalKicks

    ChemicalKicks Well-Known Member

    So say something like this :)


    Code:
    location / {
    try_files $uri $uri/ /index.php?$uri&$args;
    index index.php index.html;
    rewrite /arcade.php /arcade redirect;
    }
     
  18. ChemicalKicks

    ChemicalKicks Well-Known Member

    Still running into a brick wall with this, not sure how I'm going to get this resolved.
     
  19. Liam D.

    Liam D. Active Member

    Try this:

    Code:
    location /path-to-forum/ {
        index index.php index.html;
        try_files $uri $uri/ $uri.php?$uri&args;
    }
    
    I believe that would work, since I ran that successfully on my server, and of course, restart the NginX service.
     
    ChemicalKicks likes this.
  20. ChemicalKicks

    ChemicalKicks Well-Known Member

    Hey Liam,

    Thanks, I tried that in my conf.

    It resulted in /arcade.php throwing up a 404. Bummer.
     

Share This Page