AnswerBun.com

Nginx Sorry, the page you are looking for is currently unavailable. Please try again later

Server Fault Asked by Josh Kirby on January 3, 2022

I have a nginx server (1.10) and I am trying to access a certain location block for letsecnrypt but having no luck. I have modsecurity and pagespeed both included in my compiled nginx.

OS is Ubuntu 16.04 LTS

My error message I get is `An error occurred.
Sorry, the page you are looking for is currently unavailable.
Please try again later.

If you are the system administrator of this resource then you should check the error log for details.

Faithfully yours, nginx.

Here is my nginx location block:

location ~* /.well-known {
  root /work-disk/www;
  try_files $uri $uri/ @other_node; #@other_node is another location block to handle passing requests to my second server that I can no remove
  # access_log off;
  pagespeed off;
  ModSecurityEnabled off;
}

I have so far checked /var/log/nginx/error.log and /var/log/messages both of which show nothing pointing to anything. The former shows logs about the process and the latter shows a blank file.

EDIT**

Just gave allow all; a try and same error.

2 Answers

Zero clue what was wrong but asked a senior coworker for permission to rebuild the VM and got told to use ./certbot-auto certonly -n --webroot -w /work-disk/www -d <mydomain.com> --agree-tos --email <our ssl email>

I am not 100% on why this worked but I think it has to do with the certonly part.

Answered by Josh Kirby on January 3, 2022

You should use simple prefix matching here:

location /.well-known {
...
}

You need also make sure that /work-disk/www/.well-known directory exists, because that is where nginx is looking for the resources for requests to /.well-known URI.

Answered by Tero Kilkanen on January 3, 2022

Add your own answers!

Related Questions

How to choose best EC2 instance for the system

3  Asked on January 1, 2021 by user14108508

   

Equivalent of Firebase with PostGreSQL?

0  Asked on December 31, 2020 by dimitri-l

   

Sticky TCP sessions with IOT sensors

0  Asked on December 31, 2020 by quade

   

Failed to using powershell to get cookies

1  Asked on December 30, 2020 by pansal

     

Heroku.yml is not getting bash script

0  Asked on December 29, 2020 by shahrear-bin-amin

   

D-Link DGS-1210-28 factory reset

0  Asked on December 27, 2020 by andrey-salnikov

       

Ask a Question

Get help from others!

© 2023 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP