Le 04/12/23 à 09h21, Denis Bitouzé a écrit :

> Le 03/12/23 à 14h54, Denis Bitouzé a écrit :
>
>> Have you a specific setting in your Web server config file?
>
> Let's forget about it: we've managed to configure our Nginx Web server
> to make the URLs of the pages of our LaTeX Sphinx FAQ extension-free (if
> a `.html` were added, there would be an immediate redirection to the
> extension-free URL). Here is the Nginx setting we added:
>
> location / {
>                if ($request_uri ~ ^/(.*)\.html(\?|$)) {
>                   return 302 /$1;
>                }
>                try_files $uri.html $uri  $uri/ =404;
>       }

In fact, we had to revert both the above setting and, in `conf.py`:

  ┌────
  │ html_file_suffix = ""
  │ html_link_suffix = ""
  └────

because, after some time, though our extension-free files are non empty,
the pages served by the server are empty (we are not sure if it is
related but the .html files are empty).
-- 
Denis

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sphinx-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sphinx-users/87h6kyguj7.fsf%40example.com.

Reply via email to