Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mkdir -p /var/www/example.com/public_html
- chown -R $USER:$USER /var/www/example.com/public_html
- chmod -R 755 /var/www
- sudo cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/example.com.conf
- /etc/apache2/sites-available/example.com.conf
- <VirtualHost *:80>
- ServerAdmin admin@example.com
- 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>
- a2ensite example.com.conf
- a2dissite 000-default.conf
- systemctl restart apache2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement