[GH-ISSUE #62] 可以在網站設定nginx conf的位置嗎 #5810

Closed
opened 2026-03-01 17:07:09 +03:00 by kerem · 3 comments
Owner

Originally created by @jeromeleong on GitHub (Jan 7, 2023).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/62

我自行編譯及安裝nginx後, 發現其位置在/usr/local/nginx,而不是etc/nginx , 所以希望能自訂nginx conf的位置😔

Originally created by @jeromeleong on GitHub (Jan 7, 2023). Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/62 我自行編譯及安裝nginx後, 發現其位置在/usr/local/nginx,而不是etc/nginx , 所以希望能自訂nginx conf的位置😔
kerem 2026-03-01 17:07:09 +03:00
Author
Owner

@0xJacky commented on GitHub (Jan 8, 2023):

github.com/0xJacky/nginx-ui@41ced2ea05/server/pkg/nginx/nginx.go (L41-L56)

是自動檢測的

<!-- gh-comment-id:1374673696 --> @0xJacky commented on GitHub (Jan 8, 2023): https://github.com/0xJacky/nginx-ui/blob/41ced2ea05f188de573b8b39299db5b92e2f9449/server/pkg/nginx/nginx.go#L41-L56 是自動檢測的
Author
Owner

@jeromeleong commented on GitHub (Jan 8, 2023):

nginx version: nginx/1.23.4
built by gcc 12.2.0 (Ubuntu 12.2.0-3ubuntu1)
built with OpenSSL 3.0.7+quic 1 Nov 2022
TLS SNI support enabled
configure arguments: --with-openssl=../openssl-openssl-3.0.7-quic --with-compat --with-file-aio --with-threads --with-http_addition_module --with-http_dav_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_random_index_module --with-http_realip_module --with-http_secure_link_module --with-http_slice_module --with-http_sub_module --with-mail --with-mail_ssl_module --with-stream_realip_module --with-stream_ssl_module --with-stream_ssl_preread_module --with-pcre --with-stream --user=timo --with-http_mp4_module --with-http_auth_request_module --with-http_stub_status_module --with-http_ssl_module --with-http_v2_module --with-debug --with-http_v3_module --with-cc-opt=-I../quiche/deps/boringssl/include --with-ld-opt='-L../quiche/deps/boringssl/build/ssl -L../quiche/deps/boringssl/build/crypto' --add-module=../ngx_brotli --add-module=../nginx-http-flv-module --add-module=../ngx_waf

編譯時忘記了設定-conf-path🥲

<!-- gh-comment-id:1374899485 --> @jeromeleong commented on GitHub (Jan 8, 2023): ``` nginx version: nginx/1.23.4 built by gcc 12.2.0 (Ubuntu 12.2.0-3ubuntu1) built with OpenSSL 3.0.7+quic 1 Nov 2022 TLS SNI support enabled configure arguments: --with-openssl=../openssl-openssl-3.0.7-quic --with-compat --with-file-aio --with-threads --with-http_addition_module --with-http_dav_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_random_index_module --with-http_realip_module --with-http_secure_link_module --with-http_slice_module --with-http_sub_module --with-mail --with-mail_ssl_module --with-stream_realip_module --with-stream_ssl_module --with-stream_ssl_preread_module --with-pcre --with-stream --user=timo --with-http_mp4_module --with-http_auth_request_module --with-http_stub_status_module --with-http_ssl_module --with-http_v2_module --with-debug --with-http_v3_module --with-cc-opt=-I../quiche/deps/boringssl/include --with-ld-opt='-L../quiche/deps/boringssl/build/ssl -L../quiche/deps/boringssl/build/crypto' --add-module=../ngx_brotli --add-module=../nginx-http-flv-module --add-module=../ngx_waf ``` 編譯時忘記了設定-conf-path🥲
Author
Owner

@0xJacky commented on GitHub (Jan 9, 2023):

下个版本加

<!-- gh-comment-id:1375062586 --> @0xJacky commented on GitHub (Jan 9, 2023): 下个版本加
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-ui#5810
No description provided.