Skip to content

Instantly share code, notes, and snippets.

@jovertical
Last active December 27, 2019 16:45
Show Gist options
  • Save jovertical/a7acdb23ecd3ba31154b1c0a7caa7dc3 to your computer and use it in GitHub Desktop.
Save jovertical/a7acdb23ecd3ba31154b1c0a7caa7dc3 to your computer and use it in GitHub Desktop.
Simple custom Nginx build with http_ssl_module included

Step 1: Download a tarball by going to: http://nginx.org/en/download.html

Step 2: Extract the tarball: tar <name-of-tarball-file>

Step 3: Configure from extracted source:

./configure --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --with-pcre --pid-path=/var/run/nginx.pid --with-http_ssl_module

Step 4: Make & install

make
make install

Finally, run: nginx -V to verify the installation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment