Set Up Multiple WordPress Sites on a Digitalocean in Single Droplet

Set Up Multiple WordPress Sites on a Digitalocean

Is video my aap ko batay jayega ki kaise digitalocean my Multiple site add kar te hai single droplet my

 

sudo apt-get update

sudo apt-get install apache2

sudo mkdir -p /var/www/example.com/public_html

sudo chown -R $USER:$USER /var/www/example.com/public_html

sudo chmod -R 755 /var/www

sudo cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/example.com.conf

sudo nano /etc/apache2/sites-available/example.com.conf

<VirtualHost *:80>
    ServerAdmin [email protected]
    ServerName 

example.com

   ServerAlias

www.example.com


    DocumentRoot /var/www/example.com/public_html
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

sudo a2ensite example.com.conf

sudo service apache2 restart
Bookmarked Post

Related Posts