johan6smith Posted August 20, 2019 Share Posted August 20, 2019 Buena noche, chicos hice la instalación de mi prestashop versión 1.7.6.0 en un VPS de digitalocean y configure mi server con el siguiente código: server { listen 80; listen [::]:80; # SSL configuration # # listen 443 ssl default_server; # listen [::]:443 ssl default_server; # # Note: You should disable gzip for SSL traffic. # See: https://bugs.debian.org/773332 # # Read up on ssl_ciphers to ensure a secure configuration. # See: https://bugs.debian.org/765782 # # Self signed certs generated by the ssl-cert package # Don't use them in a production server! # # include snippets/snakeoil.conf; root /var/www/prestashop; # Add index.php to the list if you are using PHP index index.php index.html index.htm index.nginx-debian.html; server_name johan6smith.com www.johan6smith.com; location / { # First attempt to serve request as file, then # as directory, then fall back to displaying a 404. try_files $uri $uri/ /index.php?$args; } # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 # location ~ \.php$ { include snippets/fastcgi-php.conf; # With php7.0-cgi alone: #fastcgi_pass 127.0.0.1:9000; # With php7.0-fpm: fastcgi_pass unix:/run/php/php7.0-fpm.sock; } # deny access to .htaccess files, if Apache's document root # concurs with nginx's one # location ~ /\.ht { deny all; } location /assets { autoindex on; } } Y todo funcionó OK, pero cuando ingreso al admin e intento acceder a cualquier item del administrador el me redirecciona automáticamente al index. Eh leído otros post pero todos dicen que cambie la configuración del Tráfico y SEO pero en mi caso no puedo hacerlo porque todos los accesos del admin me devuelven al index. Solicito su ayuda por favor, si quieren hacer la prueba el dominio es: http://johan6smith.com/ y el admin es: http://johan6smith.com/admin159 - USER: [email protected] PASS: admin123 y se puede evidenciar que cualquier cosa me devuelve al index. El servidor es nginx, php7.0 y mysql. Agradezco su ayuda chicos. Gracias Link to comment Share on other sites More sharing options...
misterdigital Posted August 28 Share Posted August 28 Hola, a mi me está pasando lo mismo pero en un entorno local con DDEV. Alguna solución para esto? Link to comment Share on other sites More sharing options...
ventura Posted August 28 Share Posted August 28 https://devdocs.prestashop-project.org/8/basics/installation/advanced/nginx/ 1 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