Mercurial Hosting > luan
comparison host/doc/install.txt @ 2130:aaf2795f4ed8
more doc on nginx install
| author | Violet7 |
|---|---|
| date | Fri, 16 Jan 2026 15:59:00 -0800 |
| parents | 6a2383baecb6 |
| children | c3b4c19f2d8a |
comparison
equal
deleted
inserted
replaced
| 2129:6a2383baecb6 | 2130:aaf2795f4ed8 |
|---|---|
| 32 | 32 |
| 33 8) Configure nginx | 33 8) Configure nginx |
| 34 nginx config can exist in many places, on old macOS it is usually /usr/local/etc/nginx/nginx.conf | 34 nginx config can exist in many places, on old macOS it is usually /usr/local/etc/nginx/nginx.conf |
| 35 can also exist at /usr/local/nginx/conf/nginx.conf or /etc/nginx/nginx.conf | 35 can also exist at /usr/local/nginx/conf/nginx.conf or /etc/nginx/nginx.conf |
| 36 | 36 |
| 37 add this line inside the `http` block | 37 add this line at the bottom of the `http` block, after `include servers/*` or `include conf.d/*` or similar |
| 38 include /Users/administrator/luan/host/local/nginx.conf; | 38 include /Users/administrator/luan/host/local/nginx.conf; |
| 39 | 39 |
| 40 if nginx provides a default server, it conflicts with the luanhost one. remove or disable it. | 40 if nginx provides a default server, it conflicts with the luanhost one. remove or disable it. |
| 41 on old macOS this usually does not exist and this step is not needed | 41 on old macOS this usually does not exist and this step is not needed |
| 42 sudo rm -r /etc/nginx/sites-enabled/default | 42 sudo rm -r /etc/nginx/sites-enabled/default |
| 43 | |
| 44 if nginx has a server listening on 8080, it will conflict with luanhost | |
| 45 either remove it or tell it to listen on some other port | |
| 46 this command replaces 8080 with 8090 and creates a backup with .bak | |
| 47 sed -i.bak -E 's/listen[[:space:]]+8080/listen 8090/g' /usr/local/etc/nginx/nginx.conf | |
| 43 | 48 |
| 44 9) open in browser http://me.luan.software:8080 | 49 9) open in browser http://me.luan.software:8080 |
| 45 | 50 |
| 46 Install on production/test machine: | 51 Install on production/test machine: |
| 47 1 - 7 same | 52 1 - 7 same |
