Support » Installing WordPress » Second virtual host on Digital Ocean not working

  • Hi,

    I try to set a second virtual host up on the same droplet. I have a LAMP stack.

    The second virtual host points to the first site which I don’t want it to.

    My “/etc/apache2/sites-available/”:

    <VirtualHost *:80>
    DocumentRoot /var/www/html/
    RewriteEngine on
    RewriteCond %{SERVERNAME} [OR]
    RewriteCond %{SERVERNAME}
    RewriteRule ^ https://%{SERVERNAME}%{REQUEST_URI} [END,NE,R=permanent]

    My DNS records: A to IP, A to IP with www, 3 ns to Digital Ocean, AAAA to IP, AAAA to IP with www.

    I have pointed my DNS from namecheap (my domain) to Digital Oceans nameservers.

    Any help on how to get my second site up will be greatly appreciated, thanks!


    • This topic was modified 2 weeks, 1 day ago by benja1.
    • This topic was modified 2 weeks, 1 day ago by Yui. Reason: please use CODE button for code formatting
Viewing 1 replies (of 1 total)
  • Hello Ben! 🙂

    Thanks for opening a thread on Forum! It’s Matteo here.

    To me, this problem seems strictly related to Digital Oceans, not to WordPress. This forum is related to WordPress. I guess you should get in touch with someone from DigitalOcean to get some extra help.

    If you need further support about this, I’m here. 🙂

    Matteo S.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.