# Source [setting up VH](https://www.digitalocean.com/community/tutorials/how-to-install-the-apache-web-server-on-debian-11#step-5-setting-up-virtual-hosts-recommended) # Setup * create directory for our domain ``` sudo mkdir -p /var/www/vm2037.swingbe.mooo.com ``` * assign ownership of the directory to the user you’re currently signed in as with the `$USER` environment variable ``` sudo chown -R $USER:$USER /var/www/vm2037.swingbe.mooo.com ``` * ensure that your permissions are correct and allow the owner to read, write, and execute the files while granting only read and execute permissions to groups and others, you can input the following command ``` sudo chmod -R 755 /var/www/vm2037.swingbe.mooo.com ``` * create a sample index.html page with this instruction ``` vi /var/www/vm2037.swingbe.mooo.com/index.html ``` * and enter this content ```