D
D
daashuun2021-05-28 03:23:48
Nginx
daashuun, 2021-05-28 03:23:48

How to set up a website subdomain?

The crux of the question is, is it even possible to set up a site in such a way that if the site is set to location /qwerty/, all links on the site will redirect to the same location? If there are any materials on the topic or you can answer, I will be very grateful
.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Altry, 2021-05-28
@Altry

If I understand correctly, you need to redirect the request from your main ip to the host and port where your site is located.
To do this, in the nginx settings, somewhere in /etc/nginx/sites-available , you need to set the proxy_pass ip:port setting
Here more

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question