Skip to content

Instantly share code, notes, and snippets.

@mamboer
Created November 28, 2023 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mamboer/c706bf86d2e50ba7a71200503c792c01 to your computer and use it in GitHub Desktop.
Save mamboer/c706bf86d2e50ba7a71200503c792c01 to your computer and use it in GitHub Desktop.
Install nginx on macOS at port 80(2023.12)

Installing nginx in macOS Ventura using homebrew

Change the configuration value of listen from 8080 to 80

 server {
        listen       80;
        server_name  localhost;

        #charset koi8-r;

        #access_log  logs/host.access.log  main;

        location / {
            root   html;
            index  index.html index.htm;
        }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment