Hosting multiple webservers with a single linode

Hello!

I have multiple websites that all have very low traffic. Is there a way to have them all be hosted on a single linode?

For example I want:

example.com to go to LinodeServerA

I also want example2.com to go to LinodeServerA.

I want both example.com and example2.com to use port 80.

Is there some kind of trick that makes this possible?

Thanks

1 Reply

Yes, it is called name based virtual hosting and at this point of time, virtually every web server does it out of the box.

 <virtualhost 192.168.0.101:80="">ServerName www.domain.tld
php_value include_path "/usr/share/AliceNet/phpinclude:/usr/share/pear"
DocumentRoot "/srv/www.domain.tld/www"
ErrorLog logs/domain.tld.error_log
CustomLog logs/domain.tld.access_log combined</virtualhost> 

etc.

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