Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Help : Nginx redirecting to wrong webpage

$
0
0
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

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>