sudo adduser diaz
sudo adduser solis
sudo mkdir -p /var/www/diaz.com/public_html
sudo mkdir -p /var/www/solis.com/public_html
sudo chown -R diaz:diaz /var/www/diaz.com/public_html
sudo chown -R solis:solis /var/www/solis.com/public_html
sudo chmod -R 755 /var/www
echo "<h1>Bienvenido a Diaz.com</h1>" | sudo tee /var/www/diaz.com/public_html/index.html
sudo vi /etc/httpd/conf.d/diaz.conf
<VirtualHost *:80>
ServerName diaz.com
ServerAlias www.diaz.com
DocumentRoot /var/www/diaz.com/public_html
ErrorLog /var/log/httpd/diaz_error.log
CustomLog /var/log/httpd/diaz_access.log combined
</VirtualHost>
sudo vi /etc/httpd/conf.d/solis.conf
<VirtualHost *:80>
ServerName solis.com
ServerAlias www.solis.com
DocumentRoot /var/www/solis.com/public_html
ErrorLog /var/log/httpd/solis_error.log
CustomLog /var/log/httpd/solis_access.log combined
</VirtualHost>
sudo systemctl restart httpd
127.0.0.1 diaz.com
No hay comentarios.:
Publicar un comentario