R
R
refsurf2018-08-28 16:42:33
Nginx
refsurf, 2018-08-28 16:42:33

How to change nginx site page extension?

Good day. Is it possible to change the extension of the site page using nginx There is a static html page, with an url like site.com/index.html that is returned through nginx You need to get the site.com/index.video page as an output.
It can be done using nginx or you need to dig towards php

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dodo512, 2018-08-28
@refsurf

On request /index.video, you can return a static page /index.html like this: Or like this:

location = /index.video {
    try_files /index.html =404;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question