Stack Overflow Asked on February 20, 2021
I have this in the Windows hosts
file:
127.0.0.1 demo.app.com
And when I test it at http://demo.app.com:5000/
, req.subdomains
returns ["demo"]
.
However, when I deploy it to an Ubuntu server, the req.subdomains
returns []
.
What gives?
I figured it out.
It's due to the nginx reverse proxy.
server {
listen 80;
server_name *.app.com;
location / {
proxy_pass 'http://127.0.0.1:5000';
}
}
Correct answer by Ivan on February 20, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP