Define two domain on the same physical server for two applications running on different ports and accessible from outside already.

Define two domain on the same physical server
for two applications running on different ports and accessible from outside already.

I want this domain almukhtarpos.com refer to http://localhost:80 [this app deployed on Apache].

I want this domain almukhtarkds.com refer to http://localhost:3002 [this app deployed on NGINX]

and both applications deployed on the same server and accessible from outside already.

1 Reply

@mohamed_fayek --

I don't understand what you're asking… Can you do it? Yes. Although, your visitors will have to specifically request port 3002 for almukhtarkds.com unless you set up some kind of proxy. The same server can serve two different domains on port 80 so I really don't see the need for this. However, the proxy is not hard to do…even with a single server… This is why God invented VirtualHosts.

As for the rest of it, see here:

If I setup a Linode with Wordpress, can I run multiple websites on it? Or, do I need 1 Linode per domain?

-- sw

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct