So I'm fairly new at this and I have a nginx server up and running to a simple web-page. The configuration that I have on sites-available
is:
server {
listen 80 default_server;
root /var/www/mywebsite/;
index /html/index.html;
server_name mywebsite.com www.mywebsite.com;
location / {
try_files $uri $uri/ =404;
}
}
And my index.html is located at this structure:
+------+ +----------+
+ html +-->+index.html|
+------+ +----------+
|
| +--------------+
+-->+scnd_page.html|
+--------------+
When I access mywebsite.com
, I see index.html
. How could I make mywebsite.com/scnd_page/
to point to send_page.html
?
I've tried some stuff creating
location /scnd_page {
}
But I'm not sure if I'm on the right track. Is this even to be done on this file?