Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

i'm trying to make a decision, but i'm unsure if i can do the following with NGINX :

NGINX will be installed on a linux server that will have a windows VM on it

can NGINX point a fixed set of domains to the local Apache and reverse proxy everything else to/from the windows VM. As i know only the fixed set of domains that will be hosted on the Apache and the windows VM can have any number of unknown domains hosted on it.

Can this even work ? Can i use some sort of DB(mysql,postgre,mongo,redis,couchbase,memcached?) from where nginx can get the list of domains and to where to route them ?

Is there a better way to do this ?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

It could be done with a wildcard server name: one server block for the fixed set of domains with a ReverseProxy directive to the local Apache server and another server block with a catch-all domain for the VM.

This can also be done with HAProxy using ACLs and user_backend for your fixed set of domains and default_backend else.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.