I’m a bit new to these stuffs so pardon my ignorance.
I am working on a web application and i have 4 environments; development, testing, staging and production. and i have only 1 server.
I would like to know what is the best way to manage these 3 environments on 1 server which i guess should be as follows:
Production can be accessible to everyone
testing and staging should be accessible to only certain users.
So how would you guys manage these environments?
I was thinking about allowing from a list of ips in my virtual hosts but the users might not have a static ip address.