MacPorts
2018-11-25 10:38:36 UTC
#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.
-------------------------+---------------------------
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
Ticket URL: <https://trac.macports.org/ticket/57671>
MacPorts <https://www.macports.org/>
Ports system for macOS