Welcome! Log In Create A New Profile

Advanced

Help : Nginx redirecting to wrong webpage

Posted by Camaalot 
Help : Nginx redirecting to wrong webpage
April 17, 2017 11:34PM
HI,

can you help me with this problem where nginx is showing an old webpage.
Even though there's no index.html in /var/www/kaufranitz it loads that old page ?

Here's the sites-enabled/default conf :

server {
listen 80;
listen 443 ssl spdy;

root /var/www/kaufranitz;
index index.php;

server_name kaufranitz.net www.kaufranitz.net;

ssl_certificate /etc/letsencrypt/live/kaufranitz.net/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/kaufranitz.net/privkey.pem;

location / {
try_files $uri $uri/ =404;
}

location ~\.php$ {
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param HTTPS off;
try_files $uri =404;
include fastcgi_params;
}
}

Hope I'm clear enough and thanks for your help,

Camaalot
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 162
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready