Score:0

nginx, two websites on two ports to two URLs instead?

it flag

I have experience with IIS but not with nginx (on Windows). I have two websites on a server as follows;

http://servername:port1000

http://servername:port2000

and would like the following:

http://site1.ourdomain.com

http://site2.ourdomain.com

I'm wondering how to solve it. DNS can't be used and I guess Azure application proxy cant be used either? Some setting within the web application configuration I guess.

Any assistance appreciated, links etc.

Tim avatar
gp flag
Tim
You need a reverse proxy such as Nginx or Apache accepting requests on the domain, fulfilling the request from whichever server on whichever port.
Lex Li avatar
vn flag
If you take a look at the various examples, such as https://www.nginx.com/resources/wiki/start/topics/examples/full/ You can see `proxy_pass` can be used to easily implement rewrite rules for your cases.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.