comparison host/doc/install.txt @ 2133:c3b4c19f2d8a

attempt to autodetect and use nginx confs dir
author Violet7
date Fri, 16 Jan 2026 17:29:05 -0800
parents aaf2795f4ed8
children e94d10d071e4
comparison
equal deleted inserted replaced
2132:44f47df52976 2133:c3b4c19f2d8a
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 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;
39
40 if nginx provides a default server, it conflicts with the luanhost one. remove or disable it. 37 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 38 on old macOS this usually does not exist and this step is not needed
42 sudo rm -r /etc/nginx/sites-enabled/default 39 sudo rm -r /etc/nginx/sites-enabled/default
43 40
44 if nginx has a server listening on 8080, it will conflict with luanhost 41 if nginx has a server listening on 8080, it will conflict with luanhost