User Tools

Site Tools


aws:apache

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
aws:apache [2021/08/17 01:14] – created ltsover9000aws:apache [2024/03/03 07:19] (current) – 192.168.1.159
Line 5: Line 5:
 #Step 1: Make a Directory for Each Site #Step 1: Make a Directory for Each Site
 ``` ```
-mkdir -p /var/www/domain.com/public_html+sudo mkdir -p /var/www/domain.com/public_html
  
 ``` ```
Line 11: Line 11:
 #Step 2: Set Folder Permissions #Step 2: Set Folder Permissions
 ``` ```
-chmod -R 755 /var/www+sudo chmod -R 755 /var/www
  
 ``` ```
 +
 +if you are having problems with permissions just open it up and revoke access after (by running the first command above)
 +
 +```
 +sudo chmod ugo+wrx -R /var/www
 +
 +```
 +
 #Step 3: Set up an Index Page #Step 3: Set up an Index Page
 ``` ```
-vim /var/www/domain.com/public_html/index.html+sudo nano /var/www/domain.com/public_html/index.html
 #testing for domain.com #testing for domain.com
 ``` ```
Line 27: Line 35:
 #Step 5: Edit the Config File for Each Site #Step 5: Edit the Config File for Each Site
 ``` ```
-vim /etc/apache2/sites-available/domain.com.conf+sudo nano /etc/apache2/sites-available/domain.com.conf
 ``` ```
 ``` ```
aws/apache.1629162886.txt.gz · Last modified: by ltsover9000