Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Ingreso del nombre del sistio
- read -p "Nombre del sitio (i.e example.com): " site
- # Generacion del vhost
- sed 's/#ServerName/ServerName '$site'/' template > /etc/apache2/sites-available/$site.conf
- # Activacion de sitio
- a2ensite $site.conf
- # Recargar de ficheros de configuracion de apache
- systemctl reload apache2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement