D
D
denshash2016-09-11 15:01:29
Nginx
denshash, 2016-09-11 15:01:29

How to set up location in Nginx so that something.php is called with a url like sitename.ru/something?

I read the nginx settings docs, but in the end I can’t figure out how to make a subject. Please advise how to configure correctly.
As planned, the project has a structure of the form

public_html
|
+-somedir1
| |
| +-somefiles....
+-somdir2
|
+-login.php
+-info.php
+-something.php
......

I would like that with a url like sitename.ru/login, login.php would be called ... sitename.ru/info info.php .... and so on

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
kovirolik, 2016-09-11
@kovirolik

This question has already been asked

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question