- Create directory structure. You can make like this
- Grant permission to user that become administrator of that web
- Create virtual host file
- Fill example.com.conf with text below
- Enable the new virtual host file
- Restart Apache
mkdir -p /var/www/example.com/public_html
chown -R $USER:$USER /var/www/example.com/public_html chmod -R 755 /var/www
nano /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
service apache2 restart
For further reading, visit:
0 comments:
:)) :)] ;)) ;;) :D ;) :p :(( :) :( :X =(( :-o :-/ :-* : 8-} ~x( :-t b-( :-L x( =))
Post a Comment