---
title: "OpenResty, NGINX with LuaJIT, on a VPS · CloudSat"
description: "Run OpenResty on a CloudSat VPS: the NGINX core with LuaJIT and Lua libraries for scripting API gateways, edge auth, dynamic routing and caching."
url: https://cloudsat.io/apps/deploy-openresty
updated: 2026-11-18T15:52:35Z
source: CloudSat (https://cloudsat.io/). Prices in USD.
---

[Web servers](https://cloudsat.io/apps/category/web-and-proxy-servers)

# OpenResty on a VPS

OpenResty bundles the NGINX core with LuaJIT and a curated set of Lua libraries, so you can script request handling, APIs and gateways inside the web server.

[Deploy OpenResty](https://dash.cloudsat.io/console/deploy?image=app%3Aopenresty&plan=cloud-1g) [All apps](https://cloudsat.io/apps)

## About OpenResty

OpenResty is a BSD-licensed web platform that compiles the standard NGINX core together with LuaJIT, ngx\_lua and lua-resty libraries for Redis, MySQL, DNS, WebSockets and more. Lua code runs inside NGINX's event loop at phases such as access, content and logging.

That makes it a base for API gateways, edge auth, dynamic routing and caching layers that would otherwise need a separate app. On a CloudSat VPS you have root access to tune workers and shared dictionaries for your traffic.

After deploy OpenResty serves its default page on port 80. Configs live under `/usr/local/openresty/nginx/conf/`, and the `resty` command runs Lua scripts from the shell.

## What you get with OpenResty

- NGINX core with LuaJIT and ngx_lua
- Non-blocking Lua drivers for Redis, MySQL and memcached
- Shared memory dictionaries for counters and caches
- Lua in the stream module for TCP and UDP
- `opm` package manager and `resty` CLI

## OpenResty use cases

- Build an API gateway with custom auth and rate limits
- Route requests dynamically from Redis or a database
- Add edge logic such as A/B tests or token checks

## After you deploy OpenResty

1. When the server reads **Running**, open `http://<server IP>/` to confirm the default page answers.
2. Edit `/usr/local/openresty/nginx/conf/nginx.conf`, add a `content_by_lua_block` to try Lua, then test the config with `openresty -t`.
3. Reload with `systemctl reload openresty` so workers pick up changes without dropping connections.
4. Point your domain at the server and add HTTPS with an ACME client before going live.

## OpenResty ports

Open these in your firewall if you use one: `80/tcp HTTP`, `443/tcp HTTPS`.

## OpenResty FAQ

### Can I use regular NGINX configs with OpenResty?

Yes. It is NGINX underneath, so existing server blocks work; Lua directives are an extra layer you add where needed.

### How do I install extra Lua libraries?

Use `opm get <package>` for libraries published on the OpenResty Package Manager, or LuaRocks for general Lua modules.

**Disclaimer.** The OpenResty project has no affiliation with CloudSat and does not endorse it. Names and logos belong to their owners and appear only to identify the software.

## Apps like OpenResty

[All apps in Web servers](https://cloudsat.io/apps/category/web-and-proxy-servers)

- [NGINX](https://cloudsat.io/apps/deploy-nginx): Web servers NGINX is the open-source web server and reverse proxy that serves static files, terminates TLS and balances traffic across app servers with low memory use.
- [Angie](https://cloudsat.io/apps/deploy-angie): Web servers Angie is a drop-in nginx replacement built by former nginx developers, adding automatic HTTPS, a JSON metrics API, a web console and dynamic upstreams.
- [KrakenD](https://cloudsat.io/apps/deploy-krakend): Networking KrakenD is an open-source API gateway that aggregates backends, validates tokens and rate-limits traffic from one JSON configuration, with no database.
- [HAProxy](https://cloudsat.io/apps/deploy-haproxy): DevOps HAProxy is the open-source load balancer and reverse proxy for TCP and HTTP, with TLS termination, health checks and fine-grained traffic rules.
- [Algernon](https://cloudsat.io/apps/deploy-algernon): Web servers Algernon is a single-binary web server written in Go, with HTTP/2, QUIC, Lua handlers, Markdown and templates built in, plus a bundled database.
- [Apache HTTP Server](https://cloudsat.io/apps/deploy-apache-http-server): Web servers Apache HTTP Server is the long-standing open-source web server: virtual hosts, .htaccess, mod_rewrite, TLS and reverse proxying from one modular daemon.
