patrikocosta Posted April 27, 2015 Share Posted April 27, 2015 (edited) Hi, All my links redirect to the ip address of the server : 123.123.123.123:8000 instead of www.domain.com I try to change in SEO & URLS->SET SHOP URL with : domain.com but it doesn't work (error 500) my shop is hosted in a apache2 + nginx the .htaccess is generated per default. Anynody have an idea ? Thank you Edited April 27, 2015 by patrikocosta (see edit history) Link to comment Share on other sites More sharing options...
sibrodo Posted April 28, 2015 Share Posted April 28, 2015 Can you post your apache error log ? Try turning on display error in Config > defines.inc.php to this define('_PS_MODE_DEV_', true); Hopefully, there is a hint there. Link to comment Share on other sites More sharing options...
bellini13 Posted April 28, 2015 Share Posted April 28, 2015 I try to change in SEO & URLS->SET SHOP URL with : domain.com but it doesn't work (error 500) my shop is hosted in a apache2 + nginx the .htaccess is generated per default. after you change the domain and save it, does the .htaccess file change? check the date/time on the .htaccess file error 500 typically means a fatal error occurred and the software is unable to recover from it, checking the server error log may tell you what the error is, but chances are that it will not, otherwise you would have received a white blank page (with debug mode off), or the error message (with debug mode on). Link to comment Share on other sites More sharing options...
patrikocosta Posted April 28, 2015 Author Share Posted April 28, 2015 (edited) Ok I find the solution. This a part of the solution : The first problem was about NGINX. On Nginx.conf i used : location / { proxy_pass http://123.227.107.127:8080; } But used a proxy_pass it's not good. So i changed my nginx.conf to something like that : server { listen 80; server_name www.myshop.com myshop.com; root /var/www/shop; location / { index shop/index.html shop/index.htm shop/index.php; } location ~ \.php$ { try_files $uri =404; include /home/nginx/conf/fastcgi_params; fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_intercept_errors on; } } my prestashop folder is: /var/www/shop/shop/ I got also a problem with : php5-fpm.sock that was not installed correctly but now it's ok. Now i think, I need to play with nginx.conf because I can not access to my admin directly with www.myshop.com/admin Thank you for your help, see the logs of nginx and apache2 help a lot. Edited April 28, 2015 by patrikocosta (see edit history) 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