Jump to content

Nginx configuration


Recommended Posts

  • 2 weeks later...

This configuration is enough:

#for main location
location / {
  try_files $uri $uri/ /index.php;
}

#for admin panel (if you are using custom admin directory you have to modify this path)
location ^~ /admin {
  try_files $uri $uri/ /admin/index.php;
}

Of course it is only rewrite rules config, You have to also set up php-fpm.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated