Answer the question
In order to leave comments, you need to log in
Nginx no resolver defined to resolve domain.com - what's wrong?
I want to make a proxy for the mobile version
server {
listen 80;
server_name m.domain.com;
location / {
proxy_pass http://domain.com/mobile/$request_uri;
}
}
Answer the question
In order to leave comments, you need to log in
Either write
Or (if you don't trust Google):
Well, the most correct thing is to register the ip address instead of domain.com and pass the Host header to the backend:proxy_set_header Host $host;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question