Jump to content

All my links redirect to ip address server


Recommended Posts

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 by patrikocosta (see edit history)
Link to comment
Share on other sites

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

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 by patrikocosta (see edit history)
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...