-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
certbot-nginx could not parse file nginx.conf: Expected string_end, found 'http' #9942
Comments
Same issue here with this error: Could not parse file: /etc/nginx/nginx.conf due to Expected string_end, found 'http' (at char 422), (line:17, col:1) My nginx.conf:
The problem in my case is with these block:
If I remove it, everything works OK |
It seems to me that saving the offending part to a different file and using |
Hi everybody 馃憢
This is the same issue as reported in #9416 which is still an issue with certbot 2.10.0 today, it seems.
My operating system is (include version):
CRUX version 3.7, with python version 3.10.14
I installed Certbot with (snap, OS package manager, pip, certbot-auto, etc):
The OS package manager.
I ran this command and it produced this output:
Certbot's behavior differed from what I expected because:
I expect to see a list of websites hosted.
Here is a Certbot log showing the issue (if available):
Logs are stored in
/var/log/letsencrypt
by default. Feel free to redact domains, e-mail and IP addresses as you see fit.Here is the relevant nginx server block or Apache virtualhost for the domain I am configuring:
There is a custom log_format defined:
removing it allows certbot-nginx to work as expected.
The text was updated successfully, but these errors were encountered: