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/artctrldel.shop.conf”:

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

    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!

    Ben

    • 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 WordPress.org 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. 🙂

    Thanks,
    Matteo S.

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