Djomobil Posted October 2, 2017 Share Posted October 2, 2017 Bonjour à tous, Je viens ici car je n'ai pas trouvé de réponse a mon problème sur la toile. Je m'explique : - J'ai installé prestashop 1.7.2 sur un serveur centos (nginx + php5-fpm) - J'ai mis en place un certificat ssl - J'ai mis ma boutique en multilangue Jusque la aucun problème !!! Cependant lorsque j'active les url simplifié sur le site la rien ne va plus ! mod_rewrite = apache (je suis sur nginx !) prestashop + url simplifié: fr -> https://www.mondomain.tld/fr/ en -> https://www.mondomain.tld/en Mais voila le probleme : mais au niveau de la config nginx je suis bloqué log error nginx : Ma conf nginx server { server_name modulex-solutions.com www.modulex-solutions.com; access_log /home/nginx/domains/modulex-solutions.com/log/access.log combined buffer=256k flush=60m; error_log /home/nginx/domains/modulex-solutions.com/log/error.log; root /home/nginx/domains/modulex-solutions.com/public; index index.php index.html; # Deny all attempts to access hidden files such as .htaccess, .htpasswd, .DS_Store (Mac). location ~ /. { deny all; access_log off; log_not_found off; } ## # Gzip Settings ## gzip on; gzip_disable "msie6"; gzip_vary on; gzip_proxied any; gzip_comp_level 1; gzip_buffers 16 8k; gzip_http_version 1.0; gzip_types application/json text/css application/javascript; location / { if (!-e $request_filename) { rewrite ^/.*$ /index.php last; } rewrite ^/api/?(.*)$ /webservice/dispatcher.php?url=$1 last; rewrite ^/([0-9])(-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$1$2.jpg last; rewrite ^/([0-9])([0-9])(-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$1$2$3.jpg last; rewrite ^/([0-9])([0-9])([0-9])(-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$3/$1$2$3$4.jpg last; rewrite ^/([0-9])([0-9])([0-9])([0-9])(-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$3/$4/$1$2$3$4$5.jpg last; rewrite ^/([0-9])([0-9])([0-9])([0-9])([0-9])(-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6.jpg last; rewrite ^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7.jpg last; rewrite ^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8.jpg last; rewrite ^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9.jpg last; rewrite ^/c/([0-9]+)(-[_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ /img/c/$1$2.jpg last; rewrite ^/c/([a-zA-Z-]+)(-[0-9]+)?/.+\.jpg$ /img/c/$1.jpg last; rewrite ^/([0-9]+)(-[_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ /img/c/$1$2.jpg last; try_files $uri $uri/ /index.php?$args; } # Custom Prestashop 404 page error_page 404 /index.php?controller=404; # Set long expirey values for CSS and Images (assuming you dont change them too often) location ~* ^.+.(gif|jpg|jpeg|png|wmv|avi|mpg|mpeg|mp4|htm|html|js|css|mp3|swf|ico|flv|xml) { access_log off; expires 30d; } location ~ .php$ { fastcgi_split_path_info ^(.+.php)(/.*)$; try_files $uri =404; fastcgi_keep_conn on; #include /etc/nginx/fastcgi_params; fastcgi_pass 127.0.0.1:9000; #Change this to your PHP-FPM location fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_read_timeout 60m; fastcgi_send_timeout 60m; fastcgi_buffer_size 128k; fastcgi_buffers 256 16k; fastcgi_max_temp_file_size 0; fastcgi_busy_buffers_size 256k; fastcgi_temp_file_write_size 256k; } include /usr/local/nginx/conf/staticfiles.conf; include /usr/local/nginx/conf/php.conf; include /usr/local/nginx/conf/drop.conf; include /usr/local/nginx/conf/errorpage.conf; include /usr/local/nginx/conf/vts_server.conf; } Si quelqu'un a une idée ou meme la solution je suis preneur Merci a vous ! Djomobil Link to comment Share on other sites More sharing options...
Djomobil Posted October 2, 2017 Author Share Posted October 2, 2017 up ! Link to comment Share on other sites More sharing options...
Djomobil Posted October 3, 2017 Author Share Posted October 3, 2017 Quelqu'un aurait une idée pour moi ? 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