Skip to content

Instantly share code, notes, and snippets.

View skcin7's full-sized avatar
🎈
Life moves pretty fast

Nick Morgan skcin7

🎈
Life moves pretty fast
View GitHub Profile
@skcin7
skcin7 / README.md
Created March 2, 2020 21:05 — forked from kmassada/README.md
Nginx configuration for Mac OS X with Homebrew, using sites-available directory.
mkdir -p /usr/local/etc/nginx/sites-available

File locations:

  • nginx.conf to /usr/local/etc/nginx/
  • default and default-ssl to /usr/local/etc/nginx/sites-available
    #STOP APACHE
    sudo apachectl stop
server{
listen 80;
server_name example.com www.example.com;
access_log /var/log/nginx/mysite.access.log;
root /myproject/public;
index index.php index.htm index.html;
gzip on;