Drdrake Posted October 27, 2017 Share Posted October 27, 2017 Hello, I am moving from apache to nginx and I was wondering if someone can help me with the nginx config, expecially rewrite rules. Thank you Link to comment Share on other sites More sharing options...
Lufi Posted November 6, 2017 Share Posted November 6, 2017 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. 1 Link to comment Share on other sites More sharing options...
Recommended Posts