How to Deploy a Next.js App on Webuzo with a Reverse Proxy
To deploy Next.js on Webuzo, you build the app, run its production server with PM2, and put OpenLiteSpeed in front as a reverse proxy. Webuzo's SSH and PM2 access make it well suited to running a real Next.js server — including server-side rendering and API routes.
Step 1: Build the app
Build your Next.js app for production:
npm install && npm run build
You can build on the server over SSH, or build locally and upload the result if you prefer to keep the build off the server.
Step 2: Run the production server with PM2
Start Next.js in production under PM2 so it stays running:
pm2 start npm --name mynext -- start
By default Next serves on a local port (commonly 3000). See keeping Node running on Webuzo with PM2.
Step 3: Reverse proxy through OpenLiteSpeed
Point OpenLiteSpeed at your Next.js port so your domain serves the app — see running Node.js behind OpenLiteSpeed. This is what makes SSR and API routes work on your live domain.
Step 4: SSL and environment
Add free SSL, and set any needed environment variables for your app.
Static export alternative
If your site does not need SSR or runtime API routes, a static export is simpler — build to static files and serve them directly, no Node process required. Choose the server route only when you need Next's dynamic features.
Frequently asked questions
Can Webuzo run full Next.js SSR?
Yes — with SSH, PM2 and a reverse proxy, Webuzo runs the Next.js production server including SSR and API routes, unlike a static-only setup. This is a real advantage over restrictive shared hosting.
Should I build on the server or locally?
Either works on Webuzo. Building on the server is convenient; building locally and uploading keeps resource-heavy builds off the server. Pick based on your server's resources.
My Next.js app is unreachable on the domain.
Confirm the reverse proxy points at the exact port Next is serving on, and that the app is running under PM2. A port mismatch between Next and the proxy is the common culprit.
Was this article helpful?