Add New Sites | Virtual Hosting DNS on UpCloud Server in San Jose Ca.

Running multiple sites on one server IP Address using Directories in Apache: ////////////////////////////////////////////////////////////// Step One — Create the Directory Structure https://hub.upcloud.com/account/overview https://www.digitalocean.com/community/tutorials/initial-server-setup-with-debian-10#step-4-%E2%80%94-setting-up-a-basic-firewall https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-18-04 https://www.name.com/account/domain/details/caspercc.com#dns Use non-root user Already added: sudo mkdir -p /var/www/mobiusark.com/public_html sudo mkdir -p /var/www/caspercc.com/public_html Ready to add: sudo mkdir -p /var/www/cyberdekk.com/public_html sudo mkdir -p /var/www/mobiuspark.com/public_html sudo mkdir -p /var/www/boogleoo.com/public_html sudo mkdir -p /var/www/casp3r.im/public_html sudo mkdir -p /var/www/amcon.im/public_html sudo mkdir -p /var/www/immortal.im/public_html No-ip:\/ sudo mkdir -p /var/www/casp3r.net/public_html Domain.com: \/ sudo mkdir -p /var/www/casp3r.com/public_html sudo mkdir -p /var/www/paracom.co/public_html Step Two — Grant Permissions Name.com: \/ sudo chown -R $USER:$USER /var/www/cyberdekk.com/public_html sudo chown -R $USER:$USER /var/www/mobiuspark.com/public_html sudo chown -R $USER:$USER /var/www/boogleoo.com/public_html sudo chown -R $USER:$USER /var/www/casp3r.im/public_html sudo chown -R $USER:$USER /var/www/amcon.im/public_html sudo chown -R $USER:$USER /var/www/immortal.im/public_html no-ip: \/ sudo chown -R $USER:$USER /var/www/casp3r.net/public_html Domain.com: \/ sudo chown -R $USER:$USER /var/www/casp3r.com/public_html sudo chown -R $USER:$USER /var/www/paracom.co/public_html The $USER variable will take the value of the user you are currently logged in as when you press ENTER. By doing this, our regular user now owns the public_html subdirectories where we will be storing our content. Step Three — Create Demo Pages for Each Virtual Host nano /var/www/example.com/public_html/index.html <html>
<head>
<title>Welcome to Example.com!</title>
</head>
<body>
<h1>Success! The example.com virtual host is working!</h1></body
</html> nano /var/www/cyberdekk.com/public_html/index.html nano /var/www/mobiuspark.com/public_html/index.html nano /var/www/boogleoo.com/public_html/index.html nano /var/www/casp3r.im/public_html/index.html nano /var/www/amcon.im/public_html/index.html nano /var/www/immortal.im/public_html/index.html no-ip: \/ nano /var/www/casp3r.net/public_html/index.html domain.com: \/ nano /var/www/casp3r.com/public_html/index.html nano /var/www/paracom.co/public_html/index.html Step Four — Create New Virtual Host Files Already created: sudo nano /etc/apache2/sites-available/mobiusark.com.conf sudo nano /etc/apache2/sites-available/caspercc.com.conf Ready for creation: sudo nano /etc/apache2/sites-available/cyberdekk.com.conf sudo nano /etc/apache2/sites-available/mobiuspark.com.conf sudo nano /etc/apache2/sites-available/boogleoo.com.conf sudo nano /etc/apache2/sites-available/casp3r.im.conf sudo nano /etc/apache2/sites-available/amcon.im.conf sudo nano /etc/apache2/sites-available/immortal.im.conf no-ip: \/ sudo nano /etc/apache2/sites-available/casp3r.net.conf domain.com: \/ sudo nano /etc/apache2/sites-available/casp3r.com.conf sudo nano /etc/apache2/sites-available/paracom.co.conf Example conf file: <VirtualHost *:80>
ServerName example.com
ServerAlias www.example.com
# ServerAdmin webmaster@localhost
ServerAdmin paracom@protonmail.com
DocumentRoot /var/www/example.com/public_html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost> This virtual host section matches any requests that are made on port 80, the default HTTP port. Step Five — Enable the New Virtual Host Files Name.com: \/ sudo a2ensite example.com.conf sudo a2ensite example.com.conf sudo a2ensite example.com.conf sudo a2ensite example.com.conf sudo a2ensite example.com.conf sudo a2ensite example.com.conf sudo a2ensite example.com.conf sudo a2ensite example.com.conf no-ip: \/ sudo a2ensite example.com.conf Hold off on domain.com we need to transfer these to name.com and end relationship permanently. sudo a2ensite example.com.conf sudo a2ensite example.com.conf Disable: sudo a2dissite example.com.conf

Add New Sites | Virtual Hosting DNS on UpCloud Server in San Jose Ca.