The words Under construction in black text on a yellow background with diagonal black stipes surrounding it
I'm in the process of moving my site. It's still a work in progress. Please excuse the mess and broken links.

Create A New nginx Server On A Mac

TODO: Pull subtitle into page object

TODO: Fix the formatting of this post that got busted during the move to nextjs

Setting up an nginx server ==========================

code_start_default_section code_end_default_section

Debugging Stuff

I'm moving stuff around right now. All this below is helping me figure out where to put stuff

        -- title

Create A New nginx Server On A Mac

-- p

TODO: Fix the formatting of this post that got busted during the move to nextjs

-- p

Setting up an nginx server
==========================

-- code/

Create a config file under:

    /usr/local/etc/nginx/servers


Make it look something like this:

    server {
        listen       80;
        server_name  legendary.react_scratchpad;

        #access_log  logs/host.access.log  main;

        location / {
            root   /Users/alans/dev/react_scratchpad;
            index  index.html;
        }

        error_page  404              /404.html;
        error_page   500 502 503 504  /50x.html;
    }
    


Then start and stop nginx with:

    sudo launchctl unload /Library/LaunchDaemons/homebrew.mxcl.nginx.plist
    sudo launchctl load /Library/LaunchDaemons/homebrew.mxcl.nginx.plist

-- /code


-- categories
-- Miscellaneous

-- metadata
-- date: 2021-02-14 18:55:18
-- id: 20enwxnj
-- status: published
-- type: post
-- SCRUBBED_NEO: false
-- site: aws