Sub-domains only server for web application?

António P. P. Almeida appa at
Sun Nov 20 09:22:15 UTC 2011

On 20 Nov 2011 09h05 WET, nginx-forum at wrote:

> Our website currently runs wordpress to manage the front end site
> When users register they get a subdomain where
> they can login to our application. The application is built on zend
> framework. I'd like to have the zf project on an entirely different
> server than where we run the wordpress domain.

If I understand correctly. Try:

server { # frontend
    listen [::]:80 default_server;

server { # backend
    listen [::]:80;
    server_name *;


> How would the default server config be setup since the front end
> site is on another server with different IP? Virtual hosts would be
> setup as usual, i'm just not sure how to configure the main server
> so it redirects to Any help is appreciated

--- appa

More information about the nginx mailing list