Answer the question
In order to leave comments, you need to log in
Proxy_pass /dir How?
Good evening!
Tell. I have a local site in Apache by type: localhost/privet
In the browser I see the site by the link, as it should be. How to proxy this thing in nginx with a direct url without slashes, for example privet.localhost
Answer the question
In order to leave comments, you need to log in
location / {
proxy_pass http://localhost/privet/
}
127.0.0.1 rt.local - hosts
127.0.0.1:80 ServerName rt.local - apache
77.74.8.35:90 server_name rt.site.ru - nginx
proxy_pass http:// rt.local/rt
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question