{"id":7651,"date":"2020-02-18T13:29:48","date_gmt":"2020-02-18T10:29:48","guid":{"rendered":"http:\/\/unihost.com\/help\/?p=7651"},"modified":"2023-01-19T13:43:53","modified_gmt":"2023-01-19T10:43:53","slug":"how-to-compile-nginx-from-source-on-centos-8","status":"publish","type":"post","link":"https:\/\/unihost.com\/help\/how-to-compile-nginx-from-source-on-centos-8\/","title":{"rendered":"How to Compile Nginx From Source on CentOS 8"},"content":{"rendered":"<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/unihost.com\/help\/minio.php?NGINX-logo.png\" alt=\"How to Compile Nginx From Source on CentOS 8 - Image 1\" width=\"1921\" height=\"645\" \/ title=\"How to Compile Nginx From Source on CentOS 8 - Image 1\"><\/span><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">In this tutorial, we will build Nginx with all available modules in the open-source version of Nginx.<!--more--><\/span><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">NGINX can be used as an HTTP\/HTTPS server, reverse proxy server, mail proxy server, load balancer, TLS terminator, or caching server.<\/span><\/p>\n<h2><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Initial Steps<\/span><\/h2>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Update system.<\/span><\/p>\n<pre><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"># dnf update<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"># cat \/etc\/redhat-release <\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">CentOS Linux release 8.1.1911 (Core)<\/span><\/pre>\n<h3 id=\"Build_NGINX_from_source\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Build NGINX from source<\/span><\/h3>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Install &#8220;Development Tools&#8221; .<\/span><\/p>\n<pre><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"># dnf groupinstall 'Development Tools'<\/span><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Install Extra Packages for Enterprise Linux (EPEL).<\/span><\/p>\n<pre><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"># dnf install epel-release<\/span><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Download the latest NGINX source code and untar it.<\/span><\/p>\n<pre><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"># wget https:\/\/nginx.org\/download\/nginx-1.17.8.tar.gz &amp;&amp; tar zxvf nginx-1.17.8.tar.gz<\/span><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Download the mandatory NGINX dependencies source code and untar them.<\/span><\/p>\n<pre><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"># PCRE version 8.44<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"># wget https:\/\/ftp.pcre.org\/pub\/pcre\/pcre-8.44.tar.gz &amp;&amp; tar zxvf pcre-8.44.tar.gz<\/span>\n\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"># zlib version 1.2.11<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"># wget https:\/\/www.zlib.net\/zlib-1.2.11.tar.gz &amp;&amp; tar xzvf zlib-1.2.11.tar.gz<\/span>\n\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"># OpenSSL version 1.1.1d<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"># wget https:\/\/www.openssl.org\/source\/openssl-1.1.1d.tar.gz &amp;&amp; tar zxvf openssl-1.1.1d.tar.gz<\/span><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Install optional Nginx dependencies.<\/span><\/p>\n<pre><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"># dnf install perl perl-devel perl-ExtUtils-Embed libxslt libxslt-devel libxml2 libxml2-devel gd gd-devel GeoIP GeoIP-devel<\/span><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Enter the Nginx source directory.<\/span><\/p>\n<pre><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"># cd nginx-1.17.8\/<\/span><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Configure, compile and install NGINX.<\/span><\/p>\n<pre><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">.\/configure --prefix=\/etc\/nginx \\<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0--sbin-path=\/usr\/sbin\/nginx \\<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0--modules-path=\/usr\/lib64\/nginx\/modules \\<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0--conf-path=\/etc\/nginx\/nginx.conf \\<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0--error-log-path=\/var\/log\/nginx\/error.log \\<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0--pid-path=\/var\/run\/nginx.pid \\<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0--lock-path=\/var\/run\/nginx.lock \\<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0--user=nginx \\<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0--group=nginx \\<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0--build=CentOS \\<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0--builddir=nginx-1.17.8 \\<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0--with-select_module \\<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0--with-poll_module \\<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0--with-threads \\<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0--with-file-aio \\<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0--with-http_ssl_module \\<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0--with-http_v2_module \\<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0--with-http_realip_module \\<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0--with-http_addition_module \\<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0--with-http_xslt_module=dynamic \\<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0--with-http_image_filter_module=dynamic \\<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0--with-http_geoip_module=dynamic \\<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0--with-http_sub_module \\<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0--with-http_dav_module \\<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0--with-http_flv_module \\<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0--with-http_mp4_module \\<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0--with-http_gunzip_module \\<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0--with-http_gzip_static_module \\<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0--with-http_auth_request_module \\<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0--with-http_random_index_module \\<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0--with-http_secure_link_module \\<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0--with-http_degradation_module \\<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0--with-http_slice_module \\<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0--with-http_stub_status_module \\<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0--with-http_perl_module=dynamic \\<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0--with-perl_modules_path=\/usr\/lib64\/perl5 \\<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0--with-perl=\/usr\/bin\/perl \\<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0--http-log-path=\/var\/log\/nginx\/access.log \\<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0--http-client-body-temp-path=\/var\/cache\/nginx\/client_temp \\<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0--http-proxy-temp-path=\/var\/cache\/nginx\/proxy_temp \\<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0--http-fastcgi-temp-path=\/var\/cache\/nginx\/fastcgi_temp \\<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0--http-uwsgi-temp-path=\/var\/cache\/nginx\/uwsgi_temp \\<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0--http-scgi-temp-path=\/var\/cache\/nginx\/scgi_temp \\<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0--with-mail=dynamic \\<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0--with-mail_ssl_module \\<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0--with-stream=dynamic \\<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0--with-stream_ssl_module \\<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0--with-stream_realip_module \\<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0--with-stream_geoip_module=dynamic \\<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0--with-stream_ssl_preread_module \\<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0--with-compat \\<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0--with-pcre=..\/pcre-8.44 \\<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0--with-pcre-jit \\<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0--with-zlib=..\/zlib-1.2.11 \\<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0--with-openssl=..\/openssl-1.1.1d \\<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0--with-openssl-opt=no-nextprotoneg \\<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0--with-debug<\/span>\n\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"># make<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"># make install<\/span><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Symlink \/usr\/lib64\/nginx\/modules to \/etc\/nginx\/modules directory, so that you can load dynamic modules in Nginx configuration like this load_module modules\/ngx_foo_module.so;<\/span><\/p>\n<pre><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"># ln -s \/usr\/lib64\/nginx\/modules \/etc\/nginx\/modules<\/span><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Check NGINX version and installed modules.<\/span><\/p>\n<pre><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"># nginx -V<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">nginx version: nginx\/1.17.8 (CentOS)<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">built by gcc 8.3.1 20190507 (Red Hat 8.3.1-4) (GCC) <\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">built with OpenSSL 1.1.1d 10 Sep 2019<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">TLS SNI support enabled<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">configure arguments: --prefix=\/etc\/nginx --sbin-path=\/usr\/sbin\/nginx --modules-path=\/usr\/lib64\/nginx\/modules --conf-path=\/etc\/nginx\/nginx.conf --error-log-path=\/var\/log\/nginx\/error.log --pid-path=\/var\/run\/nginx.pid --lock-path=\/var\/run\/nginx.lock --user=nginx --group=nginx --build=CentOS --builddir=nginx-1.17.8 --with-select_module --with-poll_module --with-threads --with-file-aio --with-http_ssl_module --with-http_v2_module --with-http_realip_module --with-http_addition_module --with-http_xslt_module=dynamic --with-http_image_filter_module=dynamic --with-http_geoip_module=dynamic --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_auth_request_module --with-http_random_index_module --with-http_secure_link_module --with-http_degradation_module --with-http_slice_module --with-http_stub_status_module --with-http_perl_module=dynamic --with-perl_modules_path=\/usr\/lib64\/perl5 --with-perl=\/usr\/bin\/perl --http-log-path=\/var\/log\/nginx\/access.log --http-client-body-temp-path=\/var\/cache\/nginx\/client_temp --http-proxy-temp-path=\/var\/cache\/nginx\/proxy_temp --http-fastcgi-temp-path=\/var\/cache\/nginx\/fastcgi_temp --http-uwsgi-temp-path=\/var\/cache\/nginx\/uwsgi_temp --http-scgi-temp-path=\/var\/cache\/nginx\/scgi_temp --with-mail=dynamic --with-mail_ssl_module --with-stream=dynamic --with-stream_ssl_module --with-stream_realip_module --with-stream_geoip_module=dynamic --with-stream_ssl_preread_module --with-compat --with-pcre=..\/pcre-8.44 --with-pcre-jit --with-zlib=..\/zlib-1.2.11 --with-openssl=..\/openssl-1.1.1d --with-openssl-opt=no-nextprotoneg --with-debug<\/span><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Create Nginx system group and user.<\/span><\/p>\n<pre><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"># useradd --system --home \/var\/cache\/nginx --shell \/sbin\/nologin --comment \"nginx user\" --user-group nginx<\/span><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u0421reate directory.<\/span><\/p>\n<pre><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"># mkdir -p \/var\/cache\/nginx<\/span><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Check syntax and potential errors.<\/span><\/p>\n<pre><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"># nginx -t<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">nginx: the configuration file \/etc\/nginx\/nginx.conf syntax is ok<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">nginx: configuration file \/etc\/nginx\/nginx.conf test is successful<\/span><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Create Nginx systemd unit file.<\/span><\/p>\n<pre><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"># nano \/etc\/systemd\/system\/nginx.service<\/span><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Copy the next to it.<\/span><\/p>\n<pre><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"><span class=\"pl-en\">[Unit]<\/span>\n<span class=\"pl-k\">Description<\/span>=nginx - high performance web server\n<span class=\"pl-k\">Documentation<\/span>=https:\/\/nginx.org\/en\/docs\/\n<span class=\"pl-k\">After<\/span>=network-online.target remote-fs.target nss-lookup.target\n<span class=\"pl-k\">Wants<\/span>=network-online.target\n\n<span class=\"pl-en\">[Service]<\/span>\n<span class=\"pl-k\">Type<\/span>=forking\n<span class=\"pl-k\">PIDFile<\/span>=\/var\/run\/nginx.pid\n<span class=\"pl-k\">ExecStartPre<\/span>=\/usr\/sbin\/nginx -t -c \/etc\/nginx\/nginx.conf\n<span class=\"pl-k\">ExecStart<\/span>=\/usr\/sbin\/nginx -c \/etc\/nginx\/nginx.conf\n<span class=\"pl-k\">ExecReload<\/span>=\/bin\/kill -s HUP $MAINPID\n<span class=\"pl-k\">ExecStop<\/span>=\/bin\/kill -s TERM $MAINPID\n\n<span class=\"pl-en\">[Install]<\/span>\n<span class=\"pl-k\">WantedBy<\/span>=multi-user.target<\/span><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Start and enable the NGINX service.<\/span><\/p>\n<pre><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"># systemctl start nginx.service &amp;&amp; sudo systemctl enable nginx.service<\/span><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Check if NGINX is running.<\/span><\/p>\n<pre><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"># systemctl status nginx.service<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"><span style=\"color: #008000;\">\u25cf<\/span> nginx.service - nginx - high performance web server<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Loaded: <span style=\"color: #008000;\">loaded<\/span> (\/etc\/systemd\/system\/nginx.service; enabled; vendor preset: disabled)<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Active: active (running) since Tue 2020-02-18 10:14:54 CET; 1min 5s ago<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Docs: https:\/\/nginx.org\/en\/docs\/<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Main PID: 30581 (nginx)<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Tasks: 2 (limit: 24434)<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Memory: 1.7M<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">CGroup: \/system.slice\/nginx.service<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u251c\u250030581 nginx: master process \/usr\/sbin\/nginx -c \/etc\/nginx\/nginx.conf<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u2514\u250030582 nginx: worker process<\/span>\n\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Feb 18 10:14:54 uni systemd[1]: Starting nginx - high performance web server...<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Feb 18 10:14:54 uni nginx[30578]: nginx: the configuration file \/etc\/nginx\/nginx.conf syntax is ok<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Feb 18 10:14:54 uni nginx[30578]: nginx: configuration file \/etc\/nginx\/nginx.conf test is successful<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Feb 18 10:14:54 uni systemd[1]: Started nginx - high performance web server.<\/span><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">You can open your browser and enter your domain\/IP address to see the default Nginx page.\u00a0<\/span><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/unihost.com\/help\/minio.php?55-1.png\" alt=\"How to Compile Nginx From Source on CentOS 8 - Image 2\" width=\"903\" height=\"374\" \/ title=\"How to Compile Nginx From Source on CentOS 8 - Image 2\"><\/span><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Now, you have the latest version of Nginx installed by building it from source code.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we will build Nginx with all available modules in the open-source version of Nginx.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[158],"tags":[58,95],"class_list":["post-7651","post","type-post","status-publish","format-standard","hentry","category-dedicated-servers","tag-centos","tag-nginx"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Compile Nginx From Source on CentOS 8 - Unihost.FAQ<\/title>\n<meta name=\"description\" content=\"In this tutorial, we will build Nginx with all available modules in the open-source version of Nginx. % - Unihost.FAQ\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/unihost.com\/help\/how-to-compile-nginx-from-source-on-centos-8\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Compile Nginx From Source on CentOS 8 - Unihost.FAQ\" \/>\n<meta property=\"og:description\" content=\"In this tutorial, we will build Nginx with all available modules in the open-source version of Nginx. % - Unihost.FAQ\" \/>\n<meta property=\"og:url\" content=\"https:\/\/unihost.com\/help\/how-to-compile-nginx-from-source-on-centos-8\/\" \/>\n<meta property=\"og:site_name\" content=\"Unihost.FAQ\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/unihost\/\" \/>\n<meta property=\"article:published_time\" content=\"2020-02-18T10:29:48+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-01-19T10:43:53+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/unihost.com\/help\/wp-content\/uploads\/NGINX-logo.png\" \/>\n<meta name=\"author\" content=\"Unihost Support\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@unihost\" \/>\n<meta name=\"twitter:site\" content=\"@unihost\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Unihost Support\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/unihost.com\/help\/how-to-compile-nginx-from-source-on-centos-8\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/unihost.com\/help\/how-to-compile-nginx-from-source-on-centos-8\/\"},\"author\":{\"name\":\"Unihost Support\",\"@id\":\"https:\/\/unihost.com\/help\/#\/schema\/person\/bb5ae95f38577c920e6a7507888b715a\"},\"headline\":\"How to Compile Nginx From Source on CentOS 8\",\"datePublished\":\"2020-02-18T10:29:48+00:00\",\"dateModified\":\"2023-01-19T10:43:53+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/unihost.com\/help\/how-to-compile-nginx-from-source-on-centos-8\/\"},\"wordCount\":199,\"publisher\":{\"@id\":\"https:\/\/unihost.com\/help\/#organization\"},\"image\":{\"@id\":\"https:\/\/unihost.com\/help\/how-to-compile-nginx-from-source-on-centos-8\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/unihost.com\/help\/wp-content\/uploads\/NGINX-logo.png\",\"keywords\":[\"CentOS\",\"Nginx\"],\"articleSection\":[\"02. Dedicated servers\"],\"inLanguage\":\"en\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/unihost.com\/help\/how-to-compile-nginx-from-source-on-centos-8\/\",\"url\":\"https:\/\/unihost.com\/help\/how-to-compile-nginx-from-source-on-centos-8\/\",\"name\":\"How to Compile Nginx From Source on CentOS 8 - Unihost.FAQ\",\"isPartOf\":{\"@id\":\"https:\/\/unihost.com\/help\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/unihost.com\/help\/how-to-compile-nginx-from-source-on-centos-8\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/unihost.com\/help\/how-to-compile-nginx-from-source-on-centos-8\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/unihost.com\/help\/wp-content\/uploads\/NGINX-logo.png\",\"datePublished\":\"2020-02-18T10:29:48+00:00\",\"dateModified\":\"2023-01-19T10:43:53+00:00\",\"description\":\"In this tutorial, we will build Nginx with all available modules in the open-source version of Nginx. % - Unihost.FAQ\",\"breadcrumb\":{\"@id\":\"https:\/\/unihost.com\/help\/how-to-compile-nginx-from-source-on-centos-8\/#breadcrumb\"},\"inLanguage\":\"en\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/unihost.com\/help\/how-to-compile-nginx-from-source-on-centos-8\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en\",\"@id\":\"https:\/\/unihost.com\/help\/how-to-compile-nginx-from-source-on-centos-8\/#primaryimage\",\"url\":\"https:\/\/unihost.com\/help\/minio.php?.\/NGINX-logo.png\",\"contentUrl\":\"https:\/\/unihost.com\/help\/minio.php?.\/NGINX-logo.png\",\"width\":1921,\"height\":645},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/unihost.com\/help\/how-to-compile-nginx-from-source-on-centos-8\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Unihost\",\"item\":\"https:\/\/unihost.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Help\",\"item\":\"https:\/\/unihost.com\/help\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to Compile Nginx From Source on CentOS 8\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/unihost.com\/help\/#website\",\"url\":\"https:\/\/unihost.com\/help\/\",\"name\":\"Unihost.FAQ\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/unihost.com\/help\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/unihost.com\/help\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/unihost.com\/help\/#organization\",\"name\":\"Unihost\",\"alternateName\":\"Unihost\",\"url\":\"https:\/\/unihost.com\/help\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en\",\"@id\":\"https:\/\/unihost.com\/help\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/unihost.com\/help\/minio.php?2026\/01\/minio.png\",\"contentUrl\":\"https:\/\/unihost.com\/help\/minio.php?2026\/01\/minio.png\",\"width\":300,\"height\":300,\"caption\":\"Unihost\"},\"image\":{\"@id\":\"https:\/\/unihost.com\/help\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/unihost\/\",\"https:\/\/x.com\/unihost\",\"https:\/\/www.instagram.com\/unihost\/?hl=en\",\"https:\/\/www.linkedin.com\/company\/unihost-com\",\"https:\/\/www.youtube.com\/channel\/UCITKsxMDnslQY8brN3advgw\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/unihost.com\/help\/#\/schema\/person\/bb5ae95f38577c920e6a7507888b715a\",\"name\":\"Unihost Support\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en\",\"@id\":\"https:\/\/unihost.com\/help\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g\",\"caption\":\"Unihost Support\"},\"sameAs\":[\"https:\/\/unihost.com\/\"],\"url\":\"https:\/\/unihost.com\/help\/author\/support\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Compile Nginx From Source on CentOS 8 - Unihost.FAQ","description":"In this tutorial, we will build Nginx with all available modules in the open-source version of Nginx. % - Unihost.FAQ","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/unihost.com\/help\/how-to-compile-nginx-from-source-on-centos-8\/","og_locale":"en_US","og_type":"article","og_title":"How to Compile Nginx From Source on CentOS 8 - Unihost.FAQ","og_description":"In this tutorial, we will build Nginx with all available modules in the open-source version of Nginx. % - Unihost.FAQ","og_url":"https:\/\/unihost.com\/help\/how-to-compile-nginx-from-source-on-centos-8\/","og_site_name":"Unihost.FAQ","article_publisher":"https:\/\/www.facebook.com\/unihost\/","article_published_time":"2020-02-18T10:29:48+00:00","article_modified_time":"2023-01-19T10:43:53+00:00","og_image":[{"url":"http:\/\/unihost.com\/help\/wp-content\/uploads\/NGINX-logo.png","type":"","width":"","height":""}],"author":"Unihost Support","twitter_card":"summary_large_image","twitter_creator":"@unihost","twitter_site":"@unihost","twitter_misc":{"Written by":"Unihost Support","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/unihost.com\/help\/how-to-compile-nginx-from-source-on-centos-8\/#article","isPartOf":{"@id":"https:\/\/unihost.com\/help\/how-to-compile-nginx-from-source-on-centos-8\/"},"author":{"name":"Unihost Support","@id":"https:\/\/unihost.com\/help\/#\/schema\/person\/bb5ae95f38577c920e6a7507888b715a"},"headline":"How to Compile Nginx From Source on CentOS 8","datePublished":"2020-02-18T10:29:48+00:00","dateModified":"2023-01-19T10:43:53+00:00","mainEntityOfPage":{"@id":"https:\/\/unihost.com\/help\/how-to-compile-nginx-from-source-on-centos-8\/"},"wordCount":199,"publisher":{"@id":"https:\/\/unihost.com\/help\/#organization"},"image":{"@id":"https:\/\/unihost.com\/help\/how-to-compile-nginx-from-source-on-centos-8\/#primaryimage"},"thumbnailUrl":"http:\/\/unihost.com\/help\/wp-content\/uploads\/NGINX-logo.png","keywords":["CentOS","Nginx"],"articleSection":["02. Dedicated servers"],"inLanguage":"en"},{"@type":"WebPage","@id":"https:\/\/unihost.com\/help\/how-to-compile-nginx-from-source-on-centos-8\/","url":"https:\/\/unihost.com\/help\/how-to-compile-nginx-from-source-on-centos-8\/","name":"How to Compile Nginx From Source on CentOS 8 - Unihost.FAQ","isPartOf":{"@id":"https:\/\/unihost.com\/help\/#website"},"primaryImageOfPage":{"@id":"https:\/\/unihost.com\/help\/how-to-compile-nginx-from-source-on-centos-8\/#primaryimage"},"image":{"@id":"https:\/\/unihost.com\/help\/how-to-compile-nginx-from-source-on-centos-8\/#primaryimage"},"thumbnailUrl":"http:\/\/unihost.com\/help\/wp-content\/uploads\/NGINX-logo.png","datePublished":"2020-02-18T10:29:48+00:00","dateModified":"2023-01-19T10:43:53+00:00","description":"In this tutorial, we will build Nginx with all available modules in the open-source version of Nginx. % - Unihost.FAQ","breadcrumb":{"@id":"https:\/\/unihost.com\/help\/how-to-compile-nginx-from-source-on-centos-8\/#breadcrumb"},"inLanguage":"en","potentialAction":[{"@type":"ReadAction","target":["https:\/\/unihost.com\/help\/how-to-compile-nginx-from-source-on-centos-8\/"]}]},{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/unihost.com\/help\/how-to-compile-nginx-from-source-on-centos-8\/#primaryimage","url":"https:\/\/unihost.com\/help\/minio.php?.\/NGINX-logo.png","contentUrl":"https:\/\/unihost.com\/help\/minio.php?.\/NGINX-logo.png","width":1921,"height":645},{"@type":"BreadcrumbList","@id":"https:\/\/unihost.com\/help\/how-to-compile-nginx-from-source-on-centos-8\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Unihost","item":"https:\/\/unihost.com\/"},{"@type":"ListItem","position":2,"name":"Help","item":"https:\/\/unihost.com\/help\/"},{"@type":"ListItem","position":3,"name":"How to Compile Nginx From Source on CentOS 8"}]},{"@type":"WebSite","@id":"https:\/\/unihost.com\/help\/#website","url":"https:\/\/unihost.com\/help\/","name":"Unihost.FAQ","description":"","publisher":{"@id":"https:\/\/unihost.com\/help\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/unihost.com\/help\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en"},{"@type":"Organization","@id":"https:\/\/unihost.com\/help\/#organization","name":"Unihost","alternateName":"Unihost","url":"https:\/\/unihost.com\/help\/","logo":{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/unihost.com\/help\/#\/schema\/logo\/image\/","url":"https:\/\/unihost.com\/help\/minio.php?2026\/01\/minio.png","contentUrl":"https:\/\/unihost.com\/help\/minio.php?2026\/01\/minio.png","width":300,"height":300,"caption":"Unihost"},"image":{"@id":"https:\/\/unihost.com\/help\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/unihost\/","https:\/\/x.com\/unihost","https:\/\/www.instagram.com\/unihost\/?hl=en","https:\/\/www.linkedin.com\/company\/unihost-com","https:\/\/www.youtube.com\/channel\/UCITKsxMDnslQY8brN3advgw"]},{"@type":"Person","@id":"https:\/\/unihost.com\/help\/#\/schema\/person\/bb5ae95f38577c920e6a7507888b715a","name":"Unihost Support","image":{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/unihost.com\/help\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g","caption":"Unihost Support"},"sameAs":["https:\/\/unihost.com\/"],"url":"https:\/\/unihost.com\/help\/author\/support\/"}]}},"_links":{"self":[{"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/posts\/7651","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/comments?post=7651"}],"version-history":[{"count":5,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/posts\/7651\/revisions"}],"predecessor-version":[{"id":7666,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/posts\/7651\/revisions\/7666"}],"wp:attachment":[{"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/media?parent=7651"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/categories?post=7651"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/tags?post=7651"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}