Apache Virtual host config

change directory to available sites

cd /etc/apache2/sites-available/

copy template config file

cp wp.chayut.me.conf gallery.chayut.me.conf

edit
nano gallery.chayut.me.conf

ServerName gallery.chayut.me
ServerAdmin email@email.com
DocumentRoot /var/www/gallery.chayut.me/public_html

sudo a2ensite gallery.chayut.me.conf

sudo service apache2 restart

Leave a Reply

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