LAMP Server on the same Droplet

Hello - question from a NOOB… Should I host a web server in the same Droplet as MIAB? (LOVE MIAB by the way!) I would like to configure a web server to one of the domains I have routed to my MIAB. (not my primary one that the box is named)

  1. Should I use a separate droplet?

  2. if so, should I use digitaloceans private networking feature?

  3. Since this isnt the domain that the glue record at gandi have pointed to miab, how do i configure dns so that www.domain.com goes to the web address, but www.domain.com/mail goes to miab?

thanks
Randy

Hi,

If I get your question correctly, your solution would be the following:

  1. Create an alias or user for your second domain (i.e. web@domain.com)
  2. Upload your website to /home/user-data/www/domain.com

Also you have to create at least an A DNS record resolving your Mail-in-a-Box IP address (for your second domain).

Edit:

Please be aware that Mail-in-a-Box doesn’t come with an MySQL server & PHP isn’t available by default. Also we use Nginx instead of Apache.

-Norman

1 Like