Jump to content

Hogie

Members
  • Posts

    4
  • Joined

  • Last visited

  • Days Won

    1

Reputation Activity

  1. Like
    Hogie got a reaction from Stu in Blesta + nginx + php-fpm + php 7   
    I guess I should also throw out what is going on with it...
     
    try_files is a fast way to do an if statement if the files exist.  First, it will try to see if that path exists as a file ($uri), then see if it is a directory ($uri/)  then it will internally redirect it to run as index.php?fullpath which is what the url was doing with index.php in it, but we are just making it go away.  You can add other things too, and this is MUCH faster than if statements in the location section.  If you can get away with it, never use if statements in the nginx configuration where it will be parsed for every connection.  It would slow it down to apache levels
  2. Like
    Hogie got a reaction from Paul in Blesta + nginx + php-fpm + php 7   
    I am running blesta-4.0.0-b4 as root in a dev environment (debian/nginx/php7.0-fpm) and I use this for the root location section:
    location / {                 try_files $uri $uri/ /index.php?$args; } and my urls come out as:  http://blesta.mydomain.local/admin/settings/company/modules/manage/10
     
    Hope that helps.
  3. Like
    Hogie got a reaction from Abdy in Blesta + nginx + php-fpm + php 7   
    I am running blesta-4.0.0-b4 as root in a dev environment (debian/nginx/php7.0-fpm) and I use this for the root location section:
    location / {                 try_files $uri $uri/ /index.php?$args; } and my urls come out as:  http://blesta.mydomain.local/admin/settings/company/modules/manage/10
     
    Hope that helps.
  4. Like
    Hogie got a reaction from Michael in Blesta + nginx + php-fpm + php 7   
    I am running blesta-4.0.0-b4 as root in a dev environment (debian/nginx/php7.0-fpm) and I use this for the root location section:
    location / {                 try_files $uri $uri/ /index.php?$args; } and my urls come out as:  http://blesta.mydomain.local/admin/settings/company/modules/manage/10
     
    Hope that helps.
×
×
  • Create New...