Hallo,
ich würde gerne den ngnix Server installieren und habe versucht es nach dieser Anleitung zu tun: https://pmg.proxmox.com/wiki/index.php/Quarantine_Web_Interface_Via_Nginx_Proxy
leider bekomme ich schon zu Beginn diese Fehlermeldung:
Woran kann das liegen?
Vielen Dank für Tipps
ich würde gerne den ngnix Server installieren und habe versucht es nach dieser Anleitung zu tun: https://pmg.proxmox.com/wiki/index.php/Quarantine_Web_Interface_Via_Nginx_Proxy
leider bekomme ich schon zu Beginn diese Fehlermeldung:
Code:
apt install nginx
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
nginx-common
Suggested packages:
fcgiwrap nginx-doc
The following NEW packages will be installed:
nginx nginx-common
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 640 kB of archives.
After this operation, 1,696 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ftp.at.debian.org/debian bookworm/main amd64 nginx-common all 1.22.1-9 [112 kB]
Get:2 http://ftp.at.debian.org/debian bookworm/main amd64 nginx amd64 1.22.1-9 [527 kB]
Fetched 640 kB in 0s (1,432 kB/s)
Preconfiguring packages ...
Selecting previously unselected package nginx-common.
(Reading database ... 77266 files and directories currently installed.)
Preparing to unpack .../nginx-common_1.22.1-9_all.deb ...
Unpacking nginx-common (1.22.1-9) ...
Selecting previously unselected package nginx.
Preparing to unpack .../nginx_1.22.1-9_amd64.deb ...
Unpacking nginx (1.22.1-9) ...
dpkg: warning: unable to delete old directory '/var/cache/nginx': Directory not empty
Setting up nginx-common (1.22.1-9) ...
Could not execute systemctl: at /usr/bin/deb-systemd-invoke line 145.
Setting up nginx (1.22.1-9) ...
Job for nginx.service failed because the control process exited with error code.
See "systemctl status nginx.service" and "journalctl -xeu nginx.service" for details.
invoke-rc.d: initscript nginx, action "start" failed.
× nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; preset: enabled)
Active: failed (Result: exit-code) since Fri 2023-10-20 10:55:18 CEST; 11ms ago
Docs: man:nginx(8)
Process: 7966 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE)
CPU: 5ms
Oct 20 10:55:18 pmg systemd[1]: Starting nginx.service - A high performance web server and a reverse proxy server...
Oct 20 10:55:18 pmg nginx[7966]: 2023/10/20 10:55:18 [warn] 7966#7966: the "ssl" directive is deprecated, use the "listen ... ssl" directive instead in /etc/nginx/conf.d/proxmox.conf:10
Oct 20 10:55:18 pmg nginx[7966]: 2023/10/20 10:55:18 [emerg] 7966#7966: a duplicate default server for 0.0.0.0:80 in /etc/nginx/sites-enabled/default:22
Oct 20 10:55:18 pmg nginx[7966]: nginx: configuration file /etc/nginx/nginx.conf test failed
Oct 20 10:55:18 pmg systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
Oct 20 10:55:18 pmg systemd[1]: nginx.service: Failed with result 'exit-code'.
Oct 20 10:55:18 pmg systemd[1]: Failed to start nginx.service - A high performance web server and a reverse proxy server.
dpkg: error processing package nginx (--configure):
installed nginx package post-installation script subprocess returned error exit status 1
Processing triggers for man-db (2.11.2-2) ...
Errors were encountered while processing:
nginx
E: Sub-process /usr/bin/dpkg returned an error code (1)
Woran kann das liegen?
Vielen Dank für Tipps