Skip to content

Instantly share code, notes, and snippets.

View fredbradley's full-sized avatar

Fred Bradley fredbradley

View GitHub Profile
@fredbradley
fredbradley / create_vhost.sh
Last active June 12, 2018 23:24 — forked from mattmezza/vhost.sh
I have edited @matmezza's code to put the documentroot inside an htdocs subfolder so that you can store other non public files (database connection details or such) outside of public view.
#!/bin/bash
# This script is used for create virtual hosts on CentOs.
# Created by alexnogard from http://alexnogard.com
# Improved by mattmezza from http://you.canmakethat.com
# Feel free to modify it
# PARAMETERS
#
# $usr - User
# $dir - directory of web files
# $servn - webserver address without www.