mattloyed / prestashop-nginx Goto Github PK
View Code? Open in Web Editor NEWPrestashop 1.7 Nginx Configuration
Prestashop 1.7 Nginx Configuration
Hi MattLoyeD,
Thanks for your great work. I got an error when testing the nginx configuration by running sudo nginx -t
. It's because the file fcgi.conf
. Would you please suggest what should I configure in this file? Thanks!
Regards,
Richard
Hello
I use this last configuration and got a probleme with home page
https://boutique.prestila.com/fr/
That not dipslay the page not found.
Can you help me thank you.
Hello,
for access to Prestashop Webservice
Add line :
rewrite ^/api/?(.*)$ /webservice/dispatcher.php?url=$1 last;
and other problem, not index:
index index.php index.html;
Hi,
I'm use this config and work very well expect webservice page, this page return 500 error.
http://localhost:8002/admin_page/index.php?controller=AdminWebservice
Hello.
Friendly urls doesn't work correctly.
When friendly URLs are turned on, all product images requests are returned with 404.
Location /
is not chosen, instead
Location ~* \.(css|js|docx|zip|pptx|swf|txt|jpg|jpeg|png|gif|swf|webp|flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav|mp4|m4v|ogg|webm|aac)$
kicks in, after which the request gets finalized.
*2 http request line: "GET /42-large_default/bark-natural.jpg HTTP/1.1"
*2 http uri: "/42-large_default/bark-natural.jpg"
*2 http exten: "jpg"
*2 test location: "/"
*2 test location: "robots.txt"
*2 test location: "img"
*2 test location: ~ "/(international|_profiler|module|product|feature|attribute|supplier|combination|specific-price|configure)/(.*)$"
*2 test location: ~ "\.(eot|otf|ttf|woff|woff2)$"
*2 test location: ~ "\.(css|js|docx|zip|pptx|swf|txt|jpg|jpeg|png|gif|swf|webp|flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav|mp4|m4v|ogg|webm|aac)$"
*2 using configuration "\.(css|js|docx|zip|pptx|swf|txt|jpg|jpeg|png|gif|swf|webp|flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav|mp4|m4v|ogg|webm|aac)$"
*2 http filename: "/srv/http/w3.prestashop/42-large_default/bark-natural.jpg.gz"
*2 http filename: "/srv/http/w3.prestashop/42-large_default/bark-natural.jpg"
*2 http finalize request: 404, "/42-large_default/bark-natural.jpg?" a:1, c:1
*2 http special response: 404, "/42-large_default/bark-natural.jpg?"
*2 internal redirect: "/index.php?controller=404"
*2 rewrite phase: 1
*2 http script value: "/admin-panel"
*2 http script set $admin_dir
*2 test location: "/"
*2 test location: "robots.txt"
*2 test location: "img"
*2 test location: ~ "/(international|_profiler|module|product|feature|attribute|supplier|combination|specific-price|configure)/(.*)$"
*2 test location: ~ "\.(eot|otf|ttf|woff|woff2)$"
*2 test location: ~ "\.(css|js|docx|zip|pptx|swf|txt|jpg|jpeg|png|gif|swf|webp|flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav|mp4|m4v|ogg|webm|aac)$"
*2 test location: ~ "/\."
*2 test location: ~ "[^/]\.php(/|$)"
*2 using configuration "[^/]\.php(/|$)"
*2 trying to use file: "/index.php" "/srv/http/w3.prestashop/index.php"
*2 try file uri: "/index.php"
*2 http finalize request: -4, "/index.php?controller=404" a:1, c:3
Hi, thanks for your work,
i have 3 shops
www.myshop.com/ => ok
www.myshop.com/shop2/ => can access but no theme or modules CSS / JS
www.myshop.com/shop3/ => can access but no theme or modules CSS / JS
can you add some configuration for that ?
thanks
Hi,
First I want to thank you for providing prestashop nginx configuration.
My problem is prestashop automatic language switching is broken with this config. For example if I go to myshop.com it doesn't automatically detect my browser language and apply the rtl styles. Moreover if I manually go to myshop.com/en or any other language codes it displays "Access Denied".
Please help me to resolve it.
Thank you in advance.
Which lines we need to add if you are using homestead as a local web server?
I cant access example.site.com , only example.site.com/index.php.
I've solved adding this to your config file:
# Redirect needed to "hide" index.php
location / {
#ADD THIS
index /index.php;
#END
try_files $uri $uri/ /index.php$uri&$args;
...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.