Skip to content

Instantly share code, notes, and snippets.

View pinstorm's full-sized avatar

Pinstorm Technologies pinstorm

View GitHub Profile
# 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
```