Iamdoubz custom nginx config for Ubuntu 22.04. I was tired of forgetting what I used to compile nginx so I made my own repo.
- Support for H3/QUIC
- Brotli compression
- GeoIP2 (MaxMind)
- Headers-More
- debug
There are quite a few dependencies to install. The main ones being:
- build-essential
- git
- curl
- wget
- libmaxminddb
- And probably others...
Please use the provided script nginx.sh
. Make sure to make it executable first sudo chmod +x nginx.sh
. Then run it with ./nginx.sh
.
Type which nginx
and make a copy i.e. sudo cp /usr/sbin/nginx /usr/sbin/nginx_apt
. NOTE: if you have not installed nginx, you do not have to do this step.
cd /path/to/buildroot/nginx-1.27.3
sudo make install
- Check nginx
sudo nginx -t
- Reload nginx
sudo nginx -s reload
- Verify new version
sudo nginx -v
should outputnginx version: nginx/1.27.3 (w/GeoIP2,Brotli,H3,Headers-More,debug)
I have pre-compiled both branches for Windows. If you would like to download them, follow the link to my personal Gitea site, and navigate to the "Releases" page.