Jump to content
  • 0

Pętla przekierowań


Khaito

Question

Dzień dobry,

 

zainstalowałem PS 1.7.6.2 na Ubuntu 18.04, nginx php7.2 i mysql przy pomocy tego opisu: https://linuxize.com/post/how-to-install-prestashop-on-ubuntu/

Skorzystałem z ssl od Letsencrypt.

 

Po zakończeniu instalacji, nie mogę poruszać się po Back Office, loguję się adminem do panelu, ale próba kliknięcia jakiejkoliwke opcji w menu sprowadza mnie do domena/index.php w adresie i informacji o zbyt wielkiej liczbie przekierowań.

 

Mój conf w nginx:

# Redirect HTTP -> HTTPS
server {
    listen 80;
    listen [::]:80;
    server_name www.domain.com domain.com;


    include snippets/letsencrypt.conf;
    return 302 https://$server_name$request_uri;

}

# Redirect WWW -> NON WWW
server {

	listen 443 ssl http2;
	server_name www.domain.com;

	ssl_certificate /etc/letsencrypt/live/www.domain.com/fullchain.pem;
	ssl_certificate_key /etc/letsencrypt/live/www.domain.com/privkey.pem;
	ssl_trusted_certificate /etc/letsencrypt/live/www.domain.com/chain.pem;
	include snippets/ssl.conf;	
    return 302 https://$server_name$request_uri;


	
}

server {

	listen 443 ssl http2;
	server_name domain.com;
	root /var/www/html/domain;	

	index index.php;

	set $admin_dir /adminPanogO;


	#SSL PARAMS
	ssl_certificate /etc/letsencrypt/live/domain.com/fullchain.pem;
	ssl_certificate_key /etc/letsencrypt/live/domain.com/privkey.pem;
	ssl_trusted_certificate /etc/letsencrypt/live/domain.com/chain.pem;
	include snippets/ssl.conf;
	include snippets/letsencrypt.conf;

	#LOGS
     	access_log /var/log/nginx/domain.com.access.log;
   	error_log /var/log/nginx/domain.com.error.log;



	location = /favicon.ico {
		log_not_found off;
		access_log off;
	}
	
	location = /robots.txt {
		allow all;
		log_not_found off;
		access_log off;
	}


	  location / {
        try_files $uri $uri/ /index.php$args;
    	}

	location ~ \.php$ {
		include snippets/fastcgi-php.conf;
		fastcgi_pass unix:/run/php/php7.2-fpm.sock;
	}
	
	location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
		expires max;
		log_not_found off;
	}
}

 

 

Macie pomysł w czym może być problem?

 

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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...