nginx ignores prefix path
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nginx (Ubuntu) |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
Current nginx build is ignoring prefix path and tries to write to some compiled-in path.
shadowlmd@
shadowlmd@
nginx: [alert] could not open error log file: open() "/var/log/
nginx: the configuration file /home/shadowlmd
2020/10/09 12:38:03 [emerg] 2702#2702: mkdir() "/var/lib/
nginx: configuration file /home/shadowlmd
shadowlmd@
events {
worker_
}
error_log error.log info;
pid nginx.pid;
http {
access_log access.log combined;
server {
listen 127.0.0.1:8123;
location / {
return 200 "hello\n";
}
}
}
This is happening because of compile time these options:
--error-
If nginx is built without them, everything works perfectly.
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: nginx 1.18.0-0ubuntu1
ProcVersionSign
Uname: Linux 5.4.0-48-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.9
Architecture: amd64
CasperMD5CheckR
Date: Fri Oct 9 12:31:44 2020
InstallationDate: Installed on 2020-02-04 (248 days ago)
InstallationMedia: Ubuntu-Server 19.10 "Eoan Ermine" - Release amd64 (20191017)
PackageArchitec
ProcEnviron:
TERM=screen.
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: nginx
UpgradeStatus: Upgraded to focal on 2020-06-29 (102 days ago)
@Thomas - I lack the context knowledge, can you speak to these issues?