Jump to content

What is wrong with this nginx configuration?


Recommended Posts

Posted

Hello

I just test an nginx + MariaDB + php+fpm setup and i was install to test invision forum.

But the index is working:

http://109.236.80.227/

When i click to read a topic or anything else i get 404 not found.

I am sure that i did correct the installation of invision as it is very easy to follow...

Any ideas?

Thank you

Posted

Ok i got it working :

I just uncomment this:

try_files $uri $uri/ /index.php;

But is this correct?

http://109.236.80.227/index.php/forum/2-a-test-forum/



The index.php there?


Thank you

  • 2 weeks later...
Posted

It's a setting in the admincp, you also need to use an .htaccess file for re-directs. It explains it in the settings.



nginx doesn't use (for performance reasons) .htaccess files: since you don't need to parse .htaccess files every time there's a request, but you store rewrites in the RAM-stored nginx configuration, there's a (significant enough) speed gain.

however, he needs to enable "Use .htaccess mod_rewrite" in the SEO settings for friendly URLs to work properly. the "try files" configuration should cover the rewritepart without needing to do anything else.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...