Trying to host multiple websites from single Lightsail instance


Hi There,

I am trying to point two different domains (bought from Godaddy) to a single Lightsail instance. I have created two static IPs and connected with these two domains and also configured the nameservers on GoDaddy.

Now after this excercise, both domains are opening a same website. I have already tried to create vhosts and define document root but nothing worked for me.

Any help regarding this will be greatly appriciated.

Thanks Rahul

asked 9 days ago212 views
1 Answer


Is it possible for you to share the web server configuration file?
Also, could you please share the directory structure up to the document root?

Just to be safe, if you are using Apache, you can distribute document roots for each domain with the following settings.

<VirtualHost *:80>
    # This first-listed virtual host is also the default for *:80
    DocumentRoot "/www/domain"

<VirtualHost *:80>
    DocumentRoot "/www/otherdomain"
profile picture
answered 9 days ago
profile pictureAWS
reviewed 8 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions