Welcome! Log In Create A New Profile


only show nginx index page

Posted by new_nginxuser 
only show nginx index page
July 10, 2019 07:08AM

Sorry for my bad english

I try to configure my first nginx server and php on ubuntu.

I install nginx and i succeed to go to the default nginx index page.

i copy my site folder to /home/data/var/www/html

I change the default file in /etc/nginx/sites-available like this
server {
listen 80 default_server;
listen [::]:80 default_server;

root /home/data/var/www/html;

index index.php index.html index.htm;

server_name _;

location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ =404;

location ~\.php${
include snipperts/fastcgi-php.conf ;
fastcgi_pass unix:/run/php7.0-fpm.sock ;

But i can't to go my index page. The default nginx page is always show.

What can i do?


Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 71
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready