Code in this video_Run Multiple Websites on a Single VPS (Using Virtual Hosts)

✳️ Replace the highlighted information with your own

📌 Site 1

<VirtualHost *:80>
ServerName site1.totatcaz.xyz
DocumentRoot /var/www/site1.totatcaz.xyz
<Directory /var/www/site1.totatcaz.xyz>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/site1_error.log
CustomLog ${APACHE_LOG_DIR}/site1_access.log combined
</VirtualHost>

📌 Site 2

<VirtualHost *:80>
ServerName site2.totatcaz.xyz
DocumentRoot /var/www/site2.totatcaz.xyz
<Directory /var/www/site2.totatcaz.xyz>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/site2_error.log
CustomLog ${APACHE_LOG_DIR}/site2_access.log combined
</VirtualHost>

Leave a Reply

Your email address will not be published. Required fields are marked *