Created
April 11, 2018 17:47
-
-
Save serverok/32a1c23c411e60bb6077454efa5d474a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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