• Contact
  • Contact Us
  • Disclamer
  • Home 1
  • Home 2
  • Home 3
  • Privacy Policy
Sunday, July 13, 2025
How VPS - How to use/setup VPS
  • Login
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon
No Result
View All Result
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon
No Result
View All Result
How VPS - How to use/setup VPS
No Result
View All Result
Home Operating System Linux

Installing Nginx on DirectAdmin

How VPS by How VPS
January 1, 2020
in Linux
0
0
SHARES
23
VIEWS
Share on FacebookShare on Twitter

Contents

  1. Step 1: Updating CustomBuild
  2. Step 2: Modifying CustomBuild
  3. Step 3: Modifying the PHP versions
  4. Step 4: Installing Nginx
  5. Step 5: Deploying the reverse proxy
  6. Want to contribute?


By default, DirectAdmin is deployed with the Apache web server. Converting this (including current websites) to Nginx can be done using its CustomBuild tool. After completing this guide, you will have a DirectAdmin server featuring an Nginx reverse proxy as its web server.

Using a reverse proxy comes down to running two web servers, one of which will be front-facing (Nginx), whilst the other is exclusively used for the back-end (Apache). This setup is very popular: because of Nginx’s sublime performance, it has to save on the feature set. Apache has a very large feature set (among the most important features is the .htaccess file), but isn’t able to beat Nginx’s performance in terms of speed. Using a reverse proxy, you will for example be able to use the .htaccess in combination with the Nginx web server.

Step 1: Updating CustomBuild

Please confirm you are using CustomBuild 2.0. If you’re not sure about this, please follow our guide on how to upgrade CustomBuild and/or check its current version.

Step 2: Modifying CustomBuild

Before we can recompile our DirectAdmin installation for it to work with Nginx and Apache, navigate to the CustomBuild directory:

cd /usr/local/directadmin/custombuild

Open the configuration file:

vi options.conf

Step 3: Modifying the PHP versions

DirectAdmin supports using multiple PHP versions alongside each other. If you want this, please follow our guide.

Currently, using an Nginx and Apache reverse proxy with DirectAdmin requires php-fpm to be used. If this is currently not the case, alter php1_mode and php2_mode in the CustomBuild options.conf file to the value php_fpm.

Step 4: Installing Nginx

After saving this file, install Nginx:

cd /usr/local/directadmin/custombuild
./build set webserver nginx_apache

This will not remove Apache.

Step 5: Deploying the reverse proxy

After compiling and building the web server, we will need CustomBuild to rewrite all configurations on the server:

./build update
./build nginx_apache
./build rewrite_confs

Nginx will now be installed. Depending on the size of your VULTR cloud server, this will take about 30 minutes. Please be patient and don’t interrupt the installation or it will most likely fail and break the server.

Thank you for reading our tutorial, we wish you best of luck with your reverse proxy. Optionally, you can check if the installation succeeded with an online web server checker.

Want to contribute?

You could earn up to $300 by adding new articles

Submit your article
Suggest an update
Request an article
Previous Post

Add SSL Termination to HAProxy on Ubuntu 14.04

Next Post

Install Piwigo on the One-Click LEMP Application

Next Post

Install Piwigo on the One-Click LEMP Application

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

No Result
View All Result

Recent Post

Install Imagemagick on CentOS
CentOS

Install Imagemagick on CentOS

by How VPS
June 28, 2023
0

This is how I installed Imagemagick on a vanilla CentOS server Start off by installing the prerequisites yum install php-pear...

Read more
how to Check phpinfo

How to Check phpinfo of Hosting or VPS?

June 28, 2023
Failed to download metadata for repo 'appstream' on Centos 8

How to fix error: Failed to download metadata for repo ‘appstream’ on Centos 8

February 25, 2022
How to Fix MySQL Error "Plugin 'InnoDB' registration as a STORAGE ENGINE failed"?

How to Fix MySQL Error “Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed”?

November 17, 2020
How to optimize Mysql or MariaDB

How to optimize Mysql or MariaDB

November 3, 2020

Recent News

  • Install Imagemagick on CentOS
  • How to Check phpinfo of Hosting or VPS?
  • How to fix error: Failed to download metadata for repo ‘appstream’ on Centos 8

Category

  • Arch
  • Authentication
  • Backups
  • BSD
  • Centmin Mod
  • CentOS
  • Control Panels
  • CoreOS
  • CWP
  • Debian
  • Directadmin
  • Encryption
  • Fedora
  • Firewalls
  • Hocvps Script
  • Hosting providers
  • Kloxo-MR
  • Linux
  • Mitigations
  • Operating System
  • Plesk
  • Reviews
  • Securing VPS/Servers
  • Security Patches
  • SSL Certificates
  • Uncategorized
  • Upgrading
  • VPS/Servers management guides
  • Vulnerability Detection
  • Web servers software
  • Webhosting Control Panel
  • About
  • Advertise
  • Careers
  • Contact

© 2025 JNews - Premium WordPress news & magazine theme by Jegtheme.

No Result
View All Result
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon

© 2025 JNews - Premium WordPress news & magazine theme by Jegtheme.

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In