[openwrt] [http] openwrtに付属のhttpサーバーuhttpdをオフにします



Turn Off Http Server Uhttpd That Comes With Openwrt



openwrt Webサーバーとしてのuhttpdと同時に、TLS(SSL)、CGI、LUAのサポートなど、他のWebサーバーと比較して多くの便利な機能があります。

https://wiki.openwrt.org/doc/howto/http.uhttpd



構成構成: https://wiki.openwrt.org/doc/uci/uhttpd


構成ファイルは次の場所にあります。



/trunk/base/package/network/services/uhttpd/files/uhttpd.config

ポート80が81に変更されました
画像


構成ファイル:

root@xxxxx:/etc/config# cat uhttpd config uhttpd 'main' list listen_http '0.0.0.0:81' list listen_http '[::]:81' list listen_https '0.0.0.0:443' list listen_https '[::]:443' option home '/www' option rfc1918_filter '1' option max_requests '3' option max_connections '100' option cert '/etc/uhttpd.crt' option key '/etc/uhttpd.key' option cgi_prefix '/cgi-bin' option script_timeout '60' option network_timeout '30' option http_keepalive '20' option tcp_keepalive '1' option ubus_prefix '/ubus' config cert 'px5g' option days '730' option bits '1024' option country 'DE' option state 'Berlin' option location 'Berlin' option commonname 'OpenWrt' root@xxxxx:/etc/config#

uhttpdを閉じる方法

削除/etc/init.d/uhttpd



root@OpenWrt:/etc/config# cd /etc/init.d/ root@OpenWrt:/etc/init.d# ls boot cron dnsmasq dropbear factory fstab led log miniupnpd odhcpd sysctl sysntpd telnet uhttpd usbmode cmdialer custom done easycwmpd firewall hwnat lighttpd mcproxy network qos sysfixtime system tinyproxy umount vsftpd root@OpenWrt:/etc/init.d#

ファームウェアにコンパイルされ、Makefileを変更できます。init.dにファイルを生成しないでください。
openwrt7621 trunk base package network services uhttpd Makefile

画像