Skip to content

Instantly share code, notes, and snippets.

@serverok
Created April 11, 2018 17:47
Show Gist options
  • Save serverok/32a1c23c411e60bb6077454efa5d474a to your computer and use it in GitHub Desktop.
Save serverok/32a1c23c411e60bb6077454efa5d474a to your computer and use it in GitHub Desktop.
create folder for web site with
mkdir -p /var/www/hipaareminders.com/public_html
Set permisions with following commands
chown -R root:ftp-users /var/www/hipaareminders.com
chown -R 755 /var/www/hipaareminders.com
Create a file
nano /etc/httpd/sites-available/hipaareminders.com.conf
add following content
<VirtualHost *:80>
ServerName hipaareminders.com
ServerAlias www.hipaareminders.com
ServerAdmin webmaster@hipaareminders.com
DocumentRoot /var/www/hipaareminders.com/public_html
ErrorLog /var/log/httpd/hipaareminders.com-error.log
CustomLog /var/log/httpd/hipaareminders.com.log combined
<Directory "/var/www/hipaareminders.com/public_html">
Options All
AllowOverride All
Require all granted
Order allow,deny
allow from all
</Directory>
</VirtualHost>
create a symlink with
ln -s /etc/httpd/sites-available/hipaareminders.com.conf /etc/httpd/sites-enabled/
restart apache
service httpd restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment