Comments (14)
I also test with the latest build of Nginx UI and nginx 1.25.3 but cannot reproduce this issue
from nginx-ui.
![image](https://private-user-images.githubusercontent.com/13096985/289434172-6fbefdb8-73a0-4de6-91a3-13d440d96269.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MDg4MzE5MTEsIm5iZiI6MTcwODgzMTYxMSwicGF0aCI6Ii8xMzA5Njk4NS8yODk0MzQxNzItNmZiZWZkYjgtNzNhMC00ZGU2LTkxYTMtMTNkNDQwZDk2MjY5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDAyMjUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwMjI1VDAzMjY1MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTY2YTk4N2M1NTgwZWZjYTMzNTMxNWYwYjBmNWE1Njc3OTg0MTBhMzgyZjYwODc5MjVmM2RjYzBiZDVkZTY2MDAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.sXmKljwA0K8dwO6O7m-9NvVOAAC4xYv23fAui2seNok)
This config can pass nginx -t
from nginx-ui.
Well, I found out the reason, this issue only occurs when this site is the only one enabled site. So, I have to change the processing order which is mention in #230 (comment).
from nginx-ui.
Which version of Nginx are you using?
I test on v1.24.0, it works fine.
from nginx-ui.
Which version of Nginx are you using?
I test on v1.24.0, it works fine.
i use version nginx/1.25.3
from nginx-ui.
ok, i will test for this verison
from nginx-ui.
Before configuring TLS, is your website enabled or disabled?
from nginx-ui.
It is enabled. By the way, I used apt install nginx from offical mainline repo.
from nginx-ui.
It is enabled. By the way, I used apt install nginx from offical mainline repo.
yeah, I use Nginx build from source. I will check again with apt
from nginx-ui.
Maybe I should prepare the certificate at first by using http server, then create the https server from the configuration of http server.
from nginx-ui.
Maybe I should prepare the certificate at first by using http server, then create the https server from the configuration of http server.
I also think it's a good idea to sign SSL and make sure it's successful before creating an https server to avoid unnecessary errors.
from nginx-ui.
humh, I tried testing with apt install nginx from official mainline repo. And still got the error. it's hard to understand
nginx: [emerg] no "ssl_certificate" is defined for the "listen ... ssl" directive in /etc/nginx/sites-enabled/example.org:17
Output of nginx -V
:
nginx version: nginx/1.25.3
built by gcc 12.2.0 (Debian 12.2.0-14)
built with OpenSSL 3.0.9 30 May 2023 (running with OpenSSL 3.0.11 19 Sep 2023)
TLS SNI support enabled
configure arguments: --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --modules-path=/usr/lib/nginx/modules --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --http-client-body-temp-path=/var/cache/nginx/client_temp --http-proxy-temp-path=/var/cache/nginx/proxy_temp --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp --http-scgi-temp-path=/var/cache/nginx/scgi_temp --user=nginx --group=nginx --with-compat --with-file-aio --with-threads --with-http_addition_module --with-http_auth_request_module --with-http_dav_module --with-http_flv_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_mp4_module --with-http_random_index_module --with-http_realip_module --with-http_secure_link_module --with-http_slice_module --with-http_ssl_module --with-http_stub_status_module --with-http_sub_module --with-http_v2_module --with-http_v3_module --with-mail --with-mail_ssl_module --with-stream --with-stream_realip_module --with-stream_ssl_module --with-stream_ssl_preread_module --with-cc-opt='-g -O2 -ffile-prefix-map=/data/builder/debuild/nginx-1.25.3/debian/debuild-base/nginx-1.25.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fPIC' --with-ld-opt='-Wl,-z,relro -Wl,-z,now -Wl,--as-needed -pie'
virtual host:
server {
listen 80;
# listen [::]:80;
server_name example.org;
root /home/example.org;
index index.html;
location /.well-known/acme-challenge {
proxy_set_header Host $host;
proxy_set_header X-Real_IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr:$remote_port;
proxy_pass http://127.0.0.1:9180;
}
}
server {
listen 443 ssl;
# listen [::]:443;
http2 on;
server_name example.org;
root /home/example.org;
index index.html;
location /.well-known/acme-challenge {
proxy_set_header Host $host;
proxy_set_header X-Real_IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr:$remote_port;
proxy_pass http://127.0.0.1:9180;
}
}
HTTP Context
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
sendfile on;
#tcp_nopush on;
keepalive_timeout 65;
#gzip on;
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}
from nginx-ui.
I have the same issue and i have only one site enabled
from nginx-ui.
I have the same issue and i have only one site enabled
jacky fixed it here: 17d6216
from nginx-ui.
Related Issues (20)
- 最新版UI所有的下拉列表,都没法修改值 HOT 4
- 添加站点时能否支持应用自己的基础配置? HOT 1
- docker容器内出现了两个nginx-ui进程 HOT 2
- websocket 的 map 指令不应放在站点里配置 HOT 2
- 内网站点启用TSL不应该添加/.well-known/acme-challenge
- 能否在产品层面支持将HTTPS站点配置到一个server块?
- 访问站点access日志时,没有解析出正确的路径
- 第一个用户应该禁止删除 HOT 1
- Add some suggested configurations to the http directive block
- nginx.conf里缺少动态模块引用
- 反向代理配置中能否添加对RFC 7239的支持?
- Configuration Parse Error HOT 1
- Docker 容器内的多进程建议使用 s6-overlay 管理 HOT 7
- 同一个域名无法共存RSA+ECC双证书
- 站点列表能否增加访问网站的操作?
- ChatGPT 助手无法读取到 include 文件里的指令 HOT 2
- 2.0 beta.17 容器中的 access.log 没有指向 /dev/stdout,这与文档描述不符 HOT 12
- Nginx UI 的默认环境:本地,这个名称能否自己编辑? HOT 3
- include 是单行指令,但是被识别为多行指令了 HOT 1
- Add stats page to Nginx UI
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nginx-ui.