>Synopsis: Some variables in httpd.conf needs quoting while others not >Category: system >Environment: System : OpenBSD 5.9 Details : OpenBSD 5.9 (GENERIC.MP) #1888: Fri Feb 26 01:20:19 MST 2016 dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
Architecture: OpenBSD.amd64 Machine : amd64 >Description: Some variables in httpd.conf needs quoting, while quoting seems to be optional for others. Examples for vars that must be quoted: -------------------------------------- root "/path/to/docroot" tls certificate "/path/to/tls.crt" tls key "/path/to/tls.key" Examples for vars where quoting seems to be optional ---------------------------------------------------- Logfile-paths: log { access access.log, error error.log } Listen-Interface: listen on 127.0.0.1 Servername: server myhost.tld All mixed up ------------ HTTP-Auth-Line: Realm can be quoted, path to file with auth data must be quoted e.g. authenticate Hello with "private/blabla" >How-To-Repeat: Set up httpd.conf like this ----------------------- server "my.tld" { listen on "127.0.0.1" tls port 443 authenticate "Hello" with "private/pw" # Define server-specific log files relative to /logs log { access "access.log", error "error.log" } root "/htdocs/my.tld" tls certificate "/etc/ssl/certs/my.tld.crt" tls key "/etc/ssl/private/my.tld.key" } types { include "/usr/share/misc/mime.types" } ------------------------ - Run httpd -vvd -> Gives no errors - Remove quotes from Logfile paths - Run httpd -vvd -> Give no errors - Remove quotes from root path or tls certificate path - Run httpd -vvd -> Gives /etc/httpd.conf:<line-nr>: syntax error >Fix: Haven't read the source until now. So I don't know dmesg: OpenBSD 5.9 (GENERIC.MP) #1888: Fri Feb 26 01:20:19 MST 2016 dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP .... -> Cut - Seems to be unrelated to this Thanks and kind regards Harald