23b Posted November 24, 2020 Share Posted November 24, 2020 Background: I recently upgraded my development laptop. It's a Macbook Air with M1 Chip, running MacOs 11.0.1, On my previous Macbook (MacOS 10.14.6) i was successfully running the same setup to develop Prestashop (without nginx configuration changes) Installation type (new/update): Both tested on copied installation and fresh install, same issue PrestaShop version: 1.7.6.7 Theme (default/customized): default Code (original/modified): original Hosting: Local MacOs 11.0.1, Laravel Valet 2.13.2, Nginx 1.19.4 PHP version: 7.2.33 MySQL version: mysql Ver 15.1 Distrib 10.5.8-MariaDB, for osx10.16 (x86_64) using readline 5.1 Browser(s) concerned: Firefox 83.0 Issue: All backend controllers that are using symfony are being redirected to the frontend, where they show a error 404. Example url: https://shop.test/admin-dev/index.php/sell/customers/?_token=AtnahJ[...] I have tried adding some lines to the nginx.conf like so, without success: location ~ /(sell|improve|configure|international|_profiler|product|feature|attribute|supplier|combination|specific-price)/(.*)$ { try_files $uri $uri/ /index.php?q=$uri&$args /admin-dir/index.php$is_args$args; } or location /admin-dev/ { # [REQUIRED EDIT] the name of your admin directory if (!-e $request_filename) { rewrite ^/.*$ /admin-dev/index.php last; # [REQUIRED EDIT] the name of your admin directory } } Link to comment Share on other sites More sharing options...
Juaniyyo Posted May 25, 2021 Share Posted May 25, 2021 Here is the solution for Laravel Valet: Custom Driver https://github.com/scheMeZa/prestashop-valet-driver 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now