nativeInstallerruby

Switch from Apache to Nginx

NOTE: The Approach A sections referred to below do not apply to Bitnami native installers. Users of Bitnami native installers should refer only to the Approach B sections.

If you want to switch the Web server, follow these steps depending on your installation type:

Approach A: Bitnami installations using system packages

  • Stop Apache and disable the Apache service:

      $ sudo installdir/ctlscript.sh stop apache
      $ sudo mv /etc/monit/conf.d/apache.conf /etc/monit/conf.d/apache.conf.disabled
    
  • Enable the NGINX service:

      $ sudo mv /etc/monit/conf.d/nginx.conf.disabled /etc/monit/conf.d/nginx.conf
    
  • Reload Gonit configuration:

      $ sudo gonit reload
    

Approach B: Self-contained Bitnami installations

  • Stop and disable the Apache service:

      $ sudo installdir/ctlscript.sh stop apache
      $ mv installdir/apache2/scripts/ctl.sh installdir/apache2/scripts/ctl.sh.disabled
    
  • Enable and start NGINX:

      $ mv installdir/nginx/scripts/ctl.sh.disabled installdir/nginx/scripts/ctl.sh
      $ installdir/ctlscript.sh start nginx
    
Last modification June 16, 2021