Discussion:
[MacPorts] #57671: certbot-nginx should know default MacPorts nginx.conf location
MacPorts
2018-11-25 10:38:36 UTC
Permalink
#57671: certbot-nginx should know default MacPorts nginx.conf location
-------------------------+---------------------------
Reporter: ryandesign | Owner: Schamschula
Type: enhancement | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: | Port: certbot-nginx
-------------------------+---------------------------
{{{
$ sudo certbot certonly --nginx -d somedomain
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Error while running nginx -c /usr/local/etc/nginx/nginx.conf -t.

nginx: [emerg] open() "/usr/local/etc/nginx/nginx.conf" failed (2: No such
file or directory)
nginx: configuration file /usr/local/etc/nginx/nginx.conf test failed

Could not choose appropriate plugin: The nginx plugin is not working;
there may be problems with your existing configuration.
The error was: MisconfigurationError('Error while running nginx -c
/usr/local/etc/nginx/nginx.conf -t.\n\nnginx: [emerg] open()
"/usr/local/etc/nginx/nginx.conf" failed (2: No such file or
directory)\nnginx: configuration file /usr/local/etc/nginx/nginx.conf test
failed\n',)
The nginx plugin is not working; there may be problems with your existing
configuration.
The error was: MisconfigurationError('Error while running nginx -c
/usr/local/etc/nginx/nginx.conf -t.\n\nnginx: [emerg] open()
"/usr/local/etc/nginx/nginx.conf" failed (2: No such file or
directory)\nnginx: configuration file /usr/local/etc/nginx/nginx.conf test
failed\n',)
}}}

I can work around this by specifying `--nginx-server-root
/opt/local/etc/nginx` however it seems like the MacPorts copy of certbot-
nginx should use that as its default value.
--
Ticket URL: <https://trac.macports.org/ticket/57671>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-11-25 12:34:38 UTC
Permalink
#57671: certbot-nginx should know default MacPorts nginx.conf location
----------------------------+-------------------------
Reporter: ryandesign | Owner: Schamschula
Type: enhancement | Status: closed
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: fixed | Keywords:
Port: certbot-nginx |
----------------------------+-------------------------
Changes (by Schamschula):

* status: assigned => closed
* resolution: => fixed


Comment:

In [changeset:"11089c8d9b8fb37c700914418677a9c0db194147/macports-ports"
11089c8d9b8fb37c700914418677a9c0db194147/macports-ports] (master):
{{{
#!ConfigurableCommitTicketReference repository="macports-ports"
revision="11089c8d9b8fb37c700914418677a9c0db194147"
certbot-nginx: fix default nginx server root path

Closes: https://trac.macports.org/ticket/57671
}}}
--
Ticket URL: <https://trac.macports.org/ticket/57671#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
Loading...