I
I
iandriyanov2012-07-25 18:39:07
Nginx
iandriyanov, 2012-07-25 18:39:07

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

3 answer(s)
V
VBart, 2012-07-25
@VBart

location / {
     proxy_pass http://localhost/privet/
}

In general, what is the problem? Have you read the documentation? nginx.org/r/proxy_pass/ru

I
iandriyanov, 2012-07-25
@iandriyanov

rt.local on 127.0.0.1

I
iandriyanov, 2012-07-25
@iandriyanov

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 question

Ask a Question

731 491 924 answers to any question