Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

So I’m trying to get a second website working on my droplet. I sorted out the DNS settings then followed this tutorial for setting up a virtual host (https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-18-04) and others but nothing seems to have changed. my initial website works fine but my new domain just shows a generic “server not found” error.
In my /etc/apache2/sites-available folder I have made two new config files
website1.net.conf and website2.com.conf, but I left the original config files 000-default.conf and 000-default-le-ssl.conf in there too just in case.
website1.net.conf
<VirtualHost *:80>
ServerName website1.net
ServerAlias www.website1.net
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
RewriteEngine on
RewriteCond %{SERVER_NAME} =website1.net [OR]
RewriteCond %{SERVER_NAME} =www.website1.net
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
website2.com.conf (new website)
<VirtualHost *:80>
ServerName website2.com
ServerAlias www.website2.com
ServerAdmin webmaster@localhost
DocumentRoot /var/www/website2
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
I also noticed that my apache error logs have a tun of errors on the new domain that look like…
[Fri Sep 20 13:47:03.989320 2024] [php:error] [pid 2458530] [client xx.xxx.xxx.xxx.xxxx] script '/var/www/website2/item.php' not found or unable to stat
[Fri Sep 20 13:47:04.001638 2024] [php:error] [pid 2458530] [client xx.xxx.xxx.xxx.xxxx] script '/var/www/website2/cache-compat.php' not found or unable to stat
[Fri Sep 20 13:47:04.016350 2024] [php:error] [pid 2458530] [client xx.xxx.xxx.xxx.xxxx] script '/var/www/website2/abouts.php' not found or unable to stat
[Fri Sep 20 13:47:04.031104 2024] [php:error] [pid 2458530] [client xx.xxx.xxx.xxx.xxxx] script '/var/www/website2/gel4y.php' not found or unable to stat
[Fri Sep 20 13:47:04.102058 2024] [php:error] [pid 2458530] [client xx.xxx.xxx.xxx.xxxx] script '/var/www/website2/wp-cron.php' not found or unable to stat
[Fri Sep 20 13:47:04.126998 2024] [php:error] [pid 2458530] [client xx.xxx.xxx.xxx.xxxx] script '/var/www/website2/alfanew.php' not found or unable to stat
[Fri Sep 20 13:47:04.141013 2024] [php:error] [pid 2458530] [client xx.xxx.xxx.xxx.xxxx] script '/var/www/website2/log.php' not found or unable to stat
[Fri Sep 20 13:47:04.151789 2024] [php:error] [pid 2458530] [client xx.xxx.xxx.xxx.xxxx] script '/var/www/website2/tinyfilemanager.php' not found or unable to stat
[Fri Sep 20 13:47:04.162970 2024] [php:error] [pid 2458530] [client xx.xxx.xxx.xxx.xxxx] script '/var/www/website2/rbzccnnp.php' not found or unable to stat
and I dont understand what it means or why the server thinks those files on my new site exist when I’ve never seen those files before.
gerard
Jon Harris
orbitstorm88
rem3n
yolanda smith
301276acdc124dd982fe86364ba8c4
30ddab6038c044188d489290785dcb
699c9bc0a2c34f248e792cb8d2c6ab
Kent Morlan
sylvaticus
agitechcr
8b8f3c8ea96345bf8ddb0a59a008e2