Answer the question
In order to leave comments, you need to log in
How to enable proxy on a server without a domain?
I installed bare nginx, I go to 61.61.61.61 and I see a test site from the default etc/www/html
config But how to make it so that the site in the /var/www/test1
directory opens on 61.61.61.61/test1 and on 61.61.61.61/ test2 opened a site in the directory /var/www/test2
created a new avalible+enabled config file, but nothing works, please tell me how to be?
server {
listen 80;
server_name _;
location /test1 {
root /var/www/test1;
try_files $uri /index.html;
}
location /test2 {
root /var/www/test2;
try_files $uri /index.html;
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question