Sunday, December 26, 2021

Virtual Host in Ubuntu

 go to /etc/apache2/sites-available/

nano sitename.conf

copy- 

<VirutalHost *:80>

    ServerName example.com

    DocumentRoot /var/www/html/xxxx


</VirtualHost>


sudo a2ensite sitename


reload apache2

No comments:

Post a Comment