0

I'm having an ubuntu server with apache2 and nginx. The apache2 listening to port 80 and nginx on 8000. (php project is runnig on 80 and flask uwsgi app runnig on 8000)

I have two domains www.example.com and www.example2.com. I pointed the www.example.com to port 80 in apache.

Now i need to point the the other domain to port 8000. now im using it like www.example2.com:8000.

Is this possible ?

marked as duplicate by Iain, Gerald Schneider, Sven May 17 at 7:05

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • Yes this is possible. The technology you are looking for is called a reverse proxy. there are hundreds of Q&A about them on this site. – Iain May 17 at 6:47