Add Working nginx examples
To use these files set uhttpd to listen on 127.0.0.1:1000 install nginx-ssl from opkg replace the init.d script with the one from here add in the conf file restart nginx/reboot nginx will proxy to luci and uhttpd will handle cgi in cgi-bin for nginx
This commit is contained in:
20
unused/init.d/nginx
Normal file
20
unused/init.d/nginx
Normal file
@@ -0,0 +1,20 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
# Copyright (C) 2015 OpenWrt.org
|
||||
|
||||
START=80
|
||||
|
||||
USE_PROCD=1
|
||||
|
||||
start_service() {
|
||||
[ -d /var/log/nginx ] || mkdir -p /var/log/nginx
|
||||
[ -d /var/lib/nginx ] || mkdir -p /var/lib/nginx
|
||||
|
||||
procd_open_instance
|
||||
procd_set_param command /usr/sbin/nginx -c /etc/nginx/nginx.conf -g 'daemon off;'
|
||||
procd_set_param file /etc/nginx/nginx.conf
|
||||
procd_close_instance
|
||||
}
|
||||
|
||||
stop_service() {
|
||||
killall nginx
|
||||
}
|
||||
Reference in New Issue
Block a user