I have a custom build of tengine, which is a fork of nginx. I built it with the options
--prefix=/home/gaurav/projects/tengine_custom/BUILD --add-module=/home/gaurav/projects/tengine_custom/nginx-rtmp-module --with-jemalloc --without-http_fastcgi_module --without-http_uwsgi_module --without-http_scgi_module
nginx -V ouputs the following:
Tengine version: Tengine/2.3.2
nginx version: nginx/1.17.3
built by gcc 9.3.0 (Arch Linux 9.3.0-1)
built with OpenSSL 1.1.1f 31 Mar 2020
TLS SNI support enabled
Running the binary results in the following:
nginx: [emerg] invalid IPv6 address in resolver "[fe80::1%wlo1]" in /home/gaurav/projects/tengine_custom/BUILD/conf/nginx.conf:137
I tried googling but turned up nothing. Can somebody help me with this?
Config file: https://pastebin.com/yUtrcwUF
Add --with-ipv6 to your build options.
Related
I am following this guide https://www.vultr.com/docs/add-brotli-support-to-nginx-on-ubuntu-18-04
I have followed every step but I am stuck at Step 4 – Configure Nginx
When I add to nginx.conf
load_module modules/ngx_http_brotli_filter_module.so;
load_module modules/ngx_http_brotli_static_module.so;
I get this error after running sudo nginx -t:
nginx: [emerg] dlopen() "/usr/share/nginx/modules/ngx_http_brotli_filter_module.so" failed (/usr/share/nginx/modules/ngx_http_brotli_filter_module.so: cannot open shared object file: No such file or directory) in /etc/nginx/nginx.conf:6
nginx: configuration file /etc/nginx/nginx.conf test failed
What might cause that?
Thank you!
Hosting provider: DigitalOcean
Server running: Ubuntu 20.04 LEMP
Nginx version: 1.17.10
I had the same issue 2 years back and after a lot of reading and research got it working.
Hope this helps.
I have provided step by step instruction in the answer.
ngx_http_brotli_filter_module.so" is not binary compatible in /etc/nginx/nginx.conf:1
I am getting the following error when running sudo certbot-auto --nginx. I followed the instructions in this website https://certbot.eff.org/lets-encrypt/ubuntuother-nginx using nginx and Ubuntu 14
/opt/eff.org/certbot/venv/local/lib/python2.7/site-
packages/cryptography/hazmat/primitives/constant_time.py:26: CryptographyDeprecationWarning: Support for your Python version is deprecated. The next version of cryptography will remove support. Please upgrade to a release (2.7.7+) that supports hmac.compare_digest as soon as possible.
utils.PersistentlyDeprecated2018,
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Error while running nginx -c /etc/nginx/nginx.conf -t.
nginx: [emerg] BIO_new_file("/etc/letsencrypt/live/www.benty-fields.com/fullchain.pem")
failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/letsencrypt/live/www.benty-fields.com/fullchain.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)
nginx: configuration file /etc/nginx/nginx.conf test failed
The nginx plugin is not working; there may be problems with your existing configuration.
The error was: MisconfigurationError('Error while running nginx -c /etc/nginx/nginx.conf -t.\n\nnginx: [emerg] BIO_new_file("/etc/letsencrypt/live/www.benty-fields.com/fullchain.pem") failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen(\'/etc/letsencrypt/live/www.benty-fields.com/fullchain.pem\',\'r\') error:2006D080:BIO routines:BIO_new_file:no such file)\nnginx: configuration file /etc/nginx/nginx.conf test failed\n',)
I also do not understand the python warning since
python --version
Python 3.6.3
but for any reason it uses python 2
Also it might be useful to know that there are no certicates available right now
sudo /usr/local/bin/certbot-auto --nginx
/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/cryptography/hazmat/primitives/constant_time.py:26: CryptographyDeprecationWarning: Support for your Python version is deprecated. The next version of cryptography will remove support. Please upgrade to a release (2.7.7+) that supports hmac.compare_digest as soon as possible.
utils.PersistentlyDeprecated2018,
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Error while running nginx -c /etc/nginx/nginx.conf -t.
nginx: [emerg] BIO_new_file("/etc/letsencrypt/live/www.benty-fields.com/fullchain.pem") failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/letsencrypt/live/www.benty-fields.com/fullchain.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)
nginx: configuration file /etc/nginx/nginx.conf test failed
The nginx plugin is not working; there may be problems with your existing configuration.
The error was: MisconfigurationError('Error while running nginx -c /etc/nginx/nginx.conf -t.\n\nnginx: [emerg] BIO_new_file("/etc/letsencrypt/live/www.benty-fields.com/fullchain.pem") failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen(\'/etc/letsencrypt/live/www.benty-fields.com/fullchain.pem\',\'r\') error:2006D080:BIO routines:BIO_new_file:no such file)\nnginx: configuration file /etc/nginx/nginx.conf test failed\n',)
I fixed it...
one has to remove the certbot links in a few files which can be found with
grep -R /etc/letsencrypt/live/example.com/fullchain.pem /etc/nginx/
Some days ago i had installed nginx with rtmp module.
When i did nginx -V i got:
nginx version: nginx/1.10.3
built with OpenSSL 1.1.0f 25 May 2017
TLS SNI support enabled
configure arguments: <alot of text> --add-module=/home/administrator/nginx/nginx-rtmp-module-master
And after i add rtmp block in nginx.conf i got no errors.
Today i tried to continue my work. Restart serveice and got en error:
unknown derective "rtmp" in /etc/nginx/nginx.conf:6
I check modules nginx -V and not found rtmp module i mean this string:
--add-module=/home/administrator/nginx/nginx-rtmp-module-master
Whats heppens? How module can dissapiered?
I was trying Qualys SSL Labs test and It told me that the server is vulnerable to OpenSSL Padding Oracle vulnerability (CVE-2016-2107). I googled around on how to fix this, and although the OpenSSL version installed on my system (Ubuntu 14.04) should be patched for that according to this link I was still getting this error.
I tried upgrading OpenSSL but it was already the newest version, so I installed manually a newer version following the instructions here which went fine, but that didn't fix anything. Looking at the info from Nginx, It seems it still runs with the previous version:
nginx -V
nginx version: nginx/1.10.2
built with OpenSSL 1.0.1f 6 Jan 2014 (running with OpenSSL 1.0.2g-fips 1 Mar 2016)
while OpenSSL has clearly been updated:
openssl version
OpenSSL 1.0.2j 26 Sep 2016
Any idea how to get all this sorted out?
Note that yes, I did restart Nginx, I even tried sudo service nginx upgrade and even rebooted the server.
The ngx_echo module isn't included when I install nginx by:
sudo port install nginx
I looked at the portfile and the variants are:
addition dav debug flv geoip google_perftools gzip_static ipv6 mail perl5 realip redis secure_download ssl status substitution upload zip
Is ngx_echo included in any of those options?
I compiled it using macports as mentioned in the link below
https://serverfault.com/questions/328416/how-to-set-random-value-in-the-specified-range-in-variable/347191#347191