<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi both Francis and Jake. Sorry for the late response</p>
<p><br>
</p>
<p>This is the content of such file<br>
</p>
<p><font face="monospace"># cat
/etc/nginx/snippets/location-letsencrypt.conf<br>
location ^~ /.well-known/acme-challenge/ {<br>
alias /var/www/le_root/.well-known/acme-challenge/;<br>
}</font><br>
</p>
<p>and the directory exists<br>
</p>
<p><font face="monospace"># ls -alh
/var/www/le_root/.well-known/acme-challenge/<br>
total 28K<br>
drwxr-xr-x 2 root root 4,0K ene 2 00:14 .<br>
drwxr-xr-x 3 root root 4,0K sep 1 2021 ..<br>
-rw-r--r-- 1 root root 87 sep 2 2021 9nxS2wAszlGI<br>
-rw-r--r-- 1 root root 87 sep 9 2021 AEzjuq9P8yXQ<br>
-rw-r--r-- 1 root root 87 sep 9 2021 TPlVMnrhufmE<br>
-rw-r--r-- 1 root root 87 oct 14 2021 YbHZSf8CqW40<br>
-rw-r--r-- 1 root root 87 sep 9 2021 ZHFolsWkDv90</font><br>
</p>
<p>and what curl returns<br>
</p>
<p><font face="monospace"># curl -i <a class="moz-txt-link-freetext" href="http://material.av.unau.edu.ar/">http://material.av.unau.edu.ar/</a><br>
HTTP/1.1 200 OK<br>
Date: Tue, 02 Jan 2024 20:44:45 GMT<br>
Server: Apache/2.4.58<br>
Expires: Thu, 19 Nov 1981 08:52:00 GMT<br>
Cache-Control: no-store, no-cache, must-revalidate<br>
Pragma: no-cache<br>
Set-Cookie: PHPSESSID=cfj2h18l4u9j99o6pa4k77eaff; path=/<br>
Vary: Accept-Encoding<br>
Transfer-Encoding: chunked<br>
Content-Type: text/html; charset=UTF-8<br>
<br>
<!DOCTYPE html><br>
<html lang="es"><br>
<head><br>
<br>
<title> Oficina virtual - UNAU </title><br>
<meta charset="utf-8"></font><br>
<br>
</p>
<p>Such content is from another host: oficinavirtual.unau.edu.ar.
Which is working as expected in its own domain.<br>
</p>
<p>I use acme.sh script to deploy SSL certificates.<br>
</p>
<p><br>
</p>
<p><br>
</p>
<div class="moz-cite-prefix">El 26/12/23 a las 21:15, Jeff Dyke
escribió:<br>
</div>
<blockquote type="cite"
cite="mid:CAHmnZdZAOm3qhcV3_8g_kqZL=kX3_ttWjjF6xoPOeUWCsRtUPg@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div>In addition to Francis' always helpful ask. You have a
domain problem with <a href="http://material.av.domain/"
rel="noreferrer" target="_blank" moz-do-not-send="true">material.av.domain</a>
and it may be from /etc/hosts all the way to public DNS. Or,
incorrectly supplied <b>location-letsencrypt.conf.</b></div>
<div><br>
</div>
<div>If you provide that file contents, you'll likely see your
own error as you send it (i've done it dozens of times, its
not an insult) <br>
</div>
<div><br>
</div>
<div><br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Tue, Dec 26, 2023 at
6:59 PM Francis Daly <<a href="mailto:francis@daoine.org"
moz-do-not-send="true" class="moz-txt-link-freetext">francis@daoine.org</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote"
style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On
Tue, Dec 26, 2023 at 07:57:41PM -0300, Daniel A. Rodriguez
wrote:<br>
<br>
Hi there,<br>
<br>
> This behavior is driving me crazy. Currently have more
than 30 sites behind<br>
> this reverse proxy, but the latest is refusing to work.<br>
<br>
Can you provide more details?<br>
<br>
> Config is simple and pretty similar between them all.<br>
<br>
"include" means "anything in that file is effectively in this<br>
config". Nobody but you knows what is in that file.<br>
<br>
> server {<br>
> listen 80;<br>
> server_name material.av.domain;<br>
> <br>
> include
/etc/nginx/snippets/location-letsencrypt.conf;<br>
> <br>
> # return 301 <a class="moz-txt-link-freetext" href="https://$server_name$request_uri">https://$server_name$request_uri</a>;<br>
> <br>
> }<br>
<br>
Your test request is:<br>
<br>
$ curl -i <a href="http://material.av.domain/"
rel="noreferrer" target="_blank" moz-do-not-send="true"
class="moz-txt-link-freetext">http://material.av.domain/</a><br>
<br>
What response do you get? What response do you want to get
instead?<br>
<br>
The "return" is commented out, so unless there is something
surprising<br>
in the location-letsencrypt.conf file, I would expect a http
200 response<br>
with the content of "the default" index.html file.<br>
<br>
> If I point the browser to material.av.domain got
redirected to another<br>
> sub-domain, among the 30 mentioned before. However,
everything else works<br>
> just fine.<br>
<br>
Can you show the response to the "curl" request, to see
whether "redirect"<br>
is a http 301 from the web server, or is something like a http
200 from<br>
the web server with maybe some javascript content that
redirects to<br>
"the wrong" place?<br>
<br>
Cheers,<br>
<br>
f<br>
-- <br>
Francis Daly <a href="mailto:francis@daoine.org"
target="_blank" moz-do-not-send="true"
class="moz-txt-link-freetext">francis@daoine.org</a><br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org" target="_blank"
moz-do-not-send="true" class="moz-txt-link-freetext">nginx@nginx.org</a><br>
<a href="https://mailman.nginx.org/mailman/listinfo/nginx"
rel="noreferrer" target="_blank" moz-do-not-send="true"
class="moz-txt-link-freetext">https://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</blockquote>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
nginx mailing list
<a class="moz-txt-link-abbreviated" href="mailto:nginx@nginx.org">nginx@nginx.org</a>
<a class="moz-txt-link-freetext" href="https://mailman.nginx.org/mailman/listinfo/nginx">https://mailman.nginx.org/mailman/listinfo/nginx</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
<div dir="ltr">________________________________________________<br />
<table>
<tbody>
<tr>
<td><img src=<a class="moz-txt-link-rfc2396E" href="https://correo.unau.edu.ar/skins/elastic/images/logo.svg">"https://correo.unau.edu.ar/skins/elastic/images/logo.svg"</a> width="73" height="96" /></td>
<td><strong>Daniel A. Rodriguez</strong><br /><em>Informática, Conectividad y Sistemas</em><br />Universidad Nacional del Alto Uruguay<br />San Vicente - Misiones - Argentina<br /><a href=<a class="moz-txt-link-rfc2396E" href="https://informatica.unau.edu.ar">"https://informatica.unau.edu.ar"</a> rel="noopener">informatica.unau.edu.ar</a></td>
</tr>
</tbody>
</table>
</div></pre>
</body>
</html>