From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id ELu3DpLUpmNHvwAAbAwnHQ (envelope-from ) for ; Sat, 24 Dec 2022 11:29:38 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id WPGsDpLUpmMGQQAAauVa8A (envelope-from ) for ; Sat, 24 Dec 2022 11:29:38 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id D3EB13AB4F for ; Sat, 24 Dec 2022 11:29:37 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p91mD-0004y6-CT; Sat, 24 Dec 2022 05:29:13 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p8mxM-0007LA-Cl for guix-devel@gnu.org; Fri, 23 Dec 2022 13:39:44 -0500 Received: from ms11p00im-qufo17281701.me.com ([17.58.38.54]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p8mxJ-0000QJ-Vf for guix-devel@gnu.org; Fri, 23 Dec 2022 13:39:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=1a1hai; t=1671820773; bh=PkVObbx7+z9ZmoJnrMqOIJn8RiiOYytgpQ2cTUUZhDA=; h=To:From:Subject:Date:Message-id:Content-Type:MIME-Version; b=ejKmqcVTGdIy2frIH6RejS6e1K7QYY7oIeVamQbCQ/7nUKiQ9agbuvrAKzhcYzGww xQJE2EjskujKxz+pYkkpP1tuT+KkiJzyoygPbB/qTC6QUHf2/fy3d8aWUvL5nUeDWM iPc66VGpts3kisSH6vRWsqUPGVRTJC+/5WzbcmI2cFldY3imM5Pb5vDDGp1mo7buvR OGgaf7ofOKA7uLM7ZLdwdskB6kyfK6XwYuPNOS4YwO6uzfaPF+9wXlU7DjJl5/3aqv 4cjbYv9Am30awOTWRTrJNDNYUFXg5kqqOR4sNy0aMTUBw4AAFI5BgCi+T1mp7Go9UZ qIOZPyHzERRZQ== Received: from ms11p00im-qufo17281701.me.com (ms11p00im-qufo17281701.me.com [17.58.38.54]) by ms11p00im-qufo17281701.me.com (Postfix) with ESMTPS id 47BE0742A3F for ; Fri, 23 Dec 2022 18:39:33 +0000 (UTC) Received: from localhost (ms11p00im-dlb-asmtpoutvip.me.com [10.52.196.131]) by ms11p00im-qufo17281701.me.com (Postfix) with ESMTPA id 2D56D74273E for ; Fri, 23 Dec 2022 18:39:33 +0000 (UTC) To: guix-devel@gnu.org From: Adam Kandur Subject: Example Nginx config from Guix manual does not work Date: Fri, 23 Dec 2022 18:39:32 -0000 X-Mailer: iCloud MailClientcurrent MailServer2224B112.10000-Famine2224-0-69484e1b6d0b Message-id: <513cf35a-22d5-474b-8b1e-640a369a5aa4@me.com> Content-Type: multipart/alternative; boundary=Apple-Webmail-42--cb130905-d233-4a8e-8b90-24cdfab7ea88 MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: HQN8Pei8t-vbzxEd3uSno4ciKfJa1zJp X-Proofpoint-GUID: HQN8Pei8t-vbzxEd3uSno4ciKfJa1zJp X-Proofpoint-Virus-Version: =?UTF-8?Q?vendor=3Dfsecure_engine=3D1.1.170-22c6f66c430a71ce266a39bfe25bc?= =?UTF-8?Q?2903e8d5c8f:6.0.425,18.0.572,17.11.62.513.0000000_definitions?= =?UTF-8?Q?=3D2022-01-14=5F01:2022-01-14=5F01,2020-02-14=5F11,2021-12-02?= =?UTF-8?Q?=5F01_signatures=3D0?= X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 clxscore=1015 malwarescore=0 bulkscore=0 spamscore=0 mlxscore=0 suspectscore=0 mlxlogscore=602 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2212230155 Received-SPF: pass client-ip=17.58.38.54; envelope-from=manualbot@icloud.com; helo=ms11p00im-qufo17281701.me.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, MIME_QP_LONG_LINE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sat, 24 Dec 2022 05:29:11 -0500 X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1671877778; a=rsa-sha256; cv=none; b=ZO6fUmCIpfFiDsBmYDtnO7NKex4vQdVUYLaS851oT34oh1SB6UFQARN5f9Qg2NNnNKgsUq 7YqSHQGirFJ4RbP8jZiiAjlR44AYUkEJxxKNwgphvgjhaexWkqfq9isaVWV56mWJZp8TSQ JoNA0kYv9C3lCE8NafsauKRkYjyuw8voNIsuKj1PaB+7vPRn8E8L+rUQu0vHOXVCB7Oh4E eJLnC2ikhuxtHaFG1M6IgHYk8TYOPu0D8opDAdVDxHll/hUIp1C28+TV86USSWebFA7mBl 9/IFsMdumQhYtUmqJwG1Klj5DLL1r5EAAcS5c+U/0g2xhh+u3uC0YdGTOZSVxQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=icloud.com header.s=1a1hai header.b=ejKmqcVT; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=quarantine) header.from=icloud.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1671877778; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=PkVObbx7+z9ZmoJnrMqOIJn8RiiOYytgpQ2cTUUZhDA=; b=hHr4VZ6EawkIVEvc1qBQYTo5YVuNi9u07LvLSmGltNTe0hvkNa3OO58FSAEzNq/tq7ylVv 7AfOuBzd7+6U+eNU9322JdrmSWxnQ5AlEdKGgRhVJrndNRUYvfmU1XiAsDFQYad/JXZI0m fWLXEi5FEoZhBQNjNwpu1Mw1n/bMzSq0yuQnZ+4Uslkg+RHgCF87Y332XZQ6P/nSu+APFq Y35xhjXnUseIFSu503ZbAbsJjVGMn0Og3x+RBRSQZscW5M5BgdQuB5tddmOyS87QaapEMb OfoFJni1XBggsIoT/6IP+++qA4J/8BH8FzdWlGZBelnBSGxrBJLkEW+N7w60Ig== X-Spam-Score: -8.37 X-Migadu-Queue-Id: D3EB13AB4F Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=icloud.com header.s=1a1hai header.b=ejKmqcVT; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=quarantine) header.from=icloud.com X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -8.37 X-TUID: +jlw1rClTH8h --Apple-Webmail-42--cb130905-d233-4a8e-8b90-24cdfab7ea88 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8; format=flowed Hi guix!(service nginx-service-type=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (nginx-configuration=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 (server-blocks=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (list (nginx-server-co= nfiguration=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 (server-name '("www.example.com"))=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (root "/srv/http/www.example.com"))))))=C2=A0= produce this nginx configuser nginx nginx;pid /var/run/nginx/pid;error_log= /var/log/nginx/error.log info;events { }http {=C2=A0=C2=A0=C2=A0 client_b= ody_temp_path /var/run/nginx/client_body_temp;=C2=A0=C2=A0=C2=A0 proxy_tem= p_path /var/run/nginx/proxy_temp;=C2=A0=C2=A0=C2=A0 fastcgi_temp_path /var= /run/nginx/fastcgi_temp;=C2=A0=C2=A0=C2=A0 uwsgi_temp_path /var/run/nginx/= uwsgi_temp;=C2=A0=C2=A0=C2=A0 scgi_temp_path /var/run/nginx/scgi_temp;=C2=A0= =C2=A0=C2=A0 access_log /var/log/nginx/access.log;=C2=A0=C2=A0=C2=A0 inclu= de /gnu/store/dngffa0df8zsxlbi630656688zhly6p5-nginx-1.23.2/share/nginx/co= nf/mime.types;=C2=A0=C2=A0=C2=A0 server {=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 li= sten 80;=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 listen 443 ssl;=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 server_name www.example.com ;=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 root= /srv/http/www.example.com;=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 index index.html= ;=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 server_tokens off;=C2=A0=C2=A0=C2=A0 }}Wh= ich will not work because it asks to listen on 443 with ssl, which is not = possible because no certificates are provided. Removing the line "listen 4= 43 ssl;" solves this problem. --Apple-Webmail-42--cb130905-d233-4a8e-8b90-24cdfab7ea88 Content-Type: multipart/related; type="text/html"; boundary=Apple-Webmail-86--cb130905-d233-4a8e-8b90-24cdfab7ea88 --Apple-Webmail-86--cb130905-d233-4a8e-8b90-24cdfab7ea88 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8;
Hi guix!
(service nginx-service-type
&nbs= p;            =             &n= bsp;  (nginx-configuration
    &nbs= p;            =             (server= -blocks
        &nbs= p;            =          (list (nginx-server-confi= guration
        &nb= sp;            = ;            &= nbsp;   (server-name '("www.example.com"))
  &n= bsp;           &nbs= p;            =           (root "/srv/http/www.example.c= om"))))))
 produce this nginx config
=
user nginx nginx;
pid /var/run/nginx/pid;
=
error_log /var/log/nginx/error.log info;
events {= }
http {
    client_body_temp_= path /var/run/nginx/client_body_temp;
    pro= xy_temp_path /var/run/nginx/proxy_temp;
    f= astcgi_temp_path /var/run/nginx/fastcgi_temp;
  &n= bsp; uwsgi_temp_path /var/run/nginx/uwsgi_temp;
  =   scgi_temp_path /var/run/nginx/scgi_temp;
  =   access_log /var/log/nginx/access.log;
  &nb= sp; include /gnu/store/dngffa0df8zsxlbi630656688zhly6p5-nginx-1.23.2/share= /nginx/conf/mime.types;

    se= rver {
      listen 80;
      listen 443 ssl;
 &nbs= p;    server_name www.example.com ;
  &nbs= p;   root /srv/http/www.example.com;
   &n= bsp;  index index.html ;
     = server_tokens off;


 &nbs= p;  }

}

Whi= ch will not work because it asks to listen on 443 with ssl, which is not p= ossible because no certificates are provided. Removing the line "listen 44= 3 ssl;" solves this problem.
--Apple-Webmail-86--cb130905-d233-4a8e-8b90-24cdfab7ea88-- --Apple-Webmail-42--cb130905-d233-4a8e-8b90-24cdfab7ea88--