amuck-landowner

One VPS with multiple webservers powering different sites?

hxQ&S8ZaVn9e

New Member
Hi I hope you can help. I am working on a website and want to run multiple webservers (Apache, Nginx and Lighttp) on the same VPS for testing.

For example: apache.mysite.com will of course run on Apache, nginx.mysite.com will be on nginx, and lighttpd.mysite.com be lighttpd.

This is just for testing to see what I can get to work the best. Would I just install all three on the server and then define what port they use in their separate configuration files or what?
 

KuJoe

Well-Known Member
Verified Provider
Yup, I have the same setup on a VPS of mine (Apache port 80, Lighttpd port 8080, and Nginx port 8008).
 

DomainBop

Dormant VPSB Pathogen
If you don't want to have to type in port numbers all of the time when you access the sites you could use nginx as a front end (running on ports 80, 443) and forward (proxy_pass...) to the apache and lighttpd servers

one of my servers:

Nginx front end ports 80, 443

Tomcat 8166, 8443

Python/Gunicorn 8069

Apache 8080, 444
 

drmike

100% Tier-1 Gogent
If you don't want to have to type in port numbers all of the time when you access the sites you could use nginx as a front end (running on ports 80, 443) and forward (proxy_pass...) to the apache and lighttpd servers

one of my servers:

Nginx front end ports 80, 443

Tomcat 8166, 8443

Python/Gunicorn 8069

Apache 8080, 444
That's a reverse proxy for folks new to this concept. 

Can do the same in many other web servers.  Not Nginx specifc (although I do love Nginx and recommend it).
 
Top
amuck-landowner