Skip to main content
Version: 1.5.9

Apache, Nginx, OpenResty, OpenLiteSpeed, and Varnish

Configuring Nginx, Apache, OpenResty, OpenLiteSpeed, and Varnish per user in OpenPanel.

When creating a user, you can set the webserver type to be used:

  • Apache
  • Apache + Varnish
  • Nginx
  • Nginx + Varnish
  • OpenResty
  • OpenResty + Varnish
  • OpenLitespeed
  • OpenLitespeed + Varnish

Web servers comparison:

Feature / WebserverApacheNginxOpenRestyOpenLiteSpeed
Varnish SupportYesYesYesYes
.htaccess SupportFullNone (requires editing VHost files)None (requires editing VHost files)Full (with some limitations)
Multiple PHP VersionsYesYesYesNo, just 1 version
Performance (static content)ModerateHighHighHigh
Performance (dynamic PHP)ModerateHighHighVery High
Ease of User Overrides.htaccess or VHost EditorOnly via VHost EditorOnly via VHost Editor.htaccess or VHost Editor
Memory FootprintModerate (~50–100 MB per process)Low (~10–30 MB per worker)Low (~15–40 MB per worker)Moderate (~30–60 MB per process)
Docker Size~200 MB~120 MB~150 MB~1000 MB

Notes:

  • Memory / disk footprint values are approximate and depend on configuration and traffic.
  • Varnish can offload static content, reducing webserver load significantly.
  • With 'docker' module, users can switch webserver type anytime via Change Webserver Type page.
  • OpenLiteSpeed is generally best for high-performance PHP apps that need .htaccess support.

Administrators can select the default webserver to be used from OpenAdmin > Settings > User Defaults page.


Apache

Apache can be assigned either to all new users by default or to individual users during account creation.

Set for a Single User

To set Apache for a single user during creation:

  1. Open the New User form.
  2. Under the Advanced section, select Apache as the webserver.

apache for user

Tip: To enable Varnish for this user, simply turn Varnish Cache ON on the same page.

Set as Default

To make Apache the default for all newly created users:


Nginx

Nginx can be assigned either to all new users by default or to individual users during account creation.

Set for a Single User

  1. Open the New User form.
  2. Under Advanced, select Nginx as the webserver.

nginx for user

Tip: Enable Varnish Cache ON if you want to use Nginx + Varnish.

Set as Default


OpenResty

OpenResty can be assigned either to all new users by default or to individual users during account creation.

Set for a Single User

  1. Open the New User form.
  2. Under Advanced, select OpenResty.

openresty for user

Tip: Turn Varnish Cache ON for OpenResty + Varnish.

Set as Default


OpenLiteSpeed

OpenLiteSpeed can be assigned either to all new users by default or to individual users during account creation.

Set for a Single User

  1. Open the New User form.
  2. Under Advanced, select OpenLiteSpeed.

openlitespeed for user

Tip: Enable Varnish Cache ON to combine OpenLiteSpeed with Varnish.

Set as Default