Skip to content

Instantly share code, notes, and snippets.

# Create a subdomain on AWS EC2 (Apache2)
sudo mkdir -vp /var/www/vhosts/myapp.io/httpdocs
sudo chown -R ec2-user:apache /var/www/vhosts/myapp.io/httpdocs
mkdir -vp /var/www/vhosts/myapp.io/logs
sudo chown -R ec2-user:apache /var/www/vhosts/myapp.io/logs
sudo touch /etc/httpd/sites-enabled/myapp.io.conf
```