{"id":55,"date":"2023-02-22T09:02:54","date_gmt":"2023-02-22T09:02:54","guid":{"rendered":"https:\/\/smartsource.com.sg\/blog\/?p=55"},"modified":"2023-02-22T09:02:54","modified_gmt":"2023-02-22T09:02:54","slug":"installing-and-configuring-mod_rpaf-in-apache2","status":"publish","type":"post","link":"https:\/\/smartsource.com.sg\/blog\/index.php\/2023\/02\/22\/installing-and-configuring-mod_rpaf-in-apache2\/","title":{"rendered":"Installing and Configuring mod_rpaf in apache2"},"content":{"rendered":"\n<p>mod_rpaf is the Reverse Proxy Add Forward module for apache. To install, follow the below steps<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#1. install required packages\nsudo apt install unzip build-essential apache2-dev\n\n#2. download and install mod_rpaf\nwget https:\/\/github.com\/gnif\/mod_rpaf\/archive\/stable.zip\nunzip stable.zip\ncd mod_rpaf-stable\nmake\nsudo make install\n\n\n#3. Add the module to apache config. Create the file\nsudo vim \/etc\/apache2\/mods-available\/rpaf.load\n\n#paste this line\nLoadModule rpaf_module \/usr\/lib\/apache2\/modules\/mod_rpaf.so\n\n#4. Create the config file\nsudo vim \/etc\/apache2\/mods-available\/rpaf.conf\n#paste the below lines\n&lt;IfModule mod_rpaf.c>\n        RPAF_Enable             On\n        RPAF_Header             X-Real-Ip\n        RPAF_ProxyIPs           your_server_ip \n        RPAF_SetHostName        On\n        RPAF_SetHTTPS           On\n        RPAF_SetPort            On\n    &lt;\/IfModule>\n\n#5. Enable the module\nsudo a2enmod rpaf\n\n#6. Restart apache config\nsudo apachectl -t\nsudo systemctl reload apache2<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>mod_rpaf is the Reverse Proxy Add Forward module for apache. To install, follow the below steps<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[39,40,38],"class_list":["post-55","post","type-post","status-publish","format-standard","hentry","category-howtos","tag-apache2","tag-mod_rpaf","tag-reverse-proxy"],"_links":{"self":[{"href":"https:\/\/smartsource.com.sg\/blog\/index.php\/wp-json\/wp\/v2\/posts\/55","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/smartsource.com.sg\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/smartsource.com.sg\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/smartsource.com.sg\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/smartsource.com.sg\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=55"}],"version-history":[{"count":1,"href":"https:\/\/smartsource.com.sg\/blog\/index.php\/wp-json\/wp\/v2\/posts\/55\/revisions"}],"predecessor-version":[{"id":56,"href":"https:\/\/smartsource.com.sg\/blog\/index.php\/wp-json\/wp\/v2\/posts\/55\/revisions\/56"}],"wp:attachment":[{"href":"https:\/\/smartsource.com.sg\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=55"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/smartsource.com.sg\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=55"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/smartsource.com.sg\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=55"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}