my /etc/nginx/nginx.conf code is :
server {
.....
location / {
root /var/www/public_folder;
index index.php index.html index.htm;
}
.
.
.
}
------------------------------------------------------------------------------------------------------------------------------------
and my created Domain config file is:
nano /etc/nginx/sites-available/definedname.com
server {
listen 80 default;
listen 443 http2 default_server;
listen [::]:443 http2 default_server;
server_name definedname.com www.definedname.com;
root /var/www/public_folder/definedname.com/$host;
.....
}
------------------------------------------------------------------------------------------------------------------------------------
when I want to go to my first page, I see global configuration index.html text, who defined within the global configuration route in /etc/nginx/nginx.conf , this text show in my domain first page
What is my mistake exactly?
server {
.....
location / {
root /var/www/public_folder;
index index.php index.html index.htm;
}
.
.
.
}
------------------------------------------------------------------------------------------------------------------------------------
and my created Domain config file is:
nano /etc/nginx/sites-available/definedname.com
server {
listen 80 default;
listen 443 http2 default_server;
listen [::]:443 http2 default_server;
server_name definedname.com www.definedname.com;
root /var/www/public_folder/definedname.com/$host;
.....
}
------------------------------------------------------------------------------------------------------------------------------------
when I want to go to my first page, I see global configuration index.html text, who defined within the global configuration route in /etc/nginx/nginx.conf , this text show in my domain first page
What is my mistake exactly?