Welcome! Log In Create A New Profile

Advanced

Re: Sub-domains only server for web application?

António P. P. Almeida
November 20, 2011 04:24AM
On 20 Nov 2011 09h05 WET, nginx-forum@nginx.us wrote:

> Our website currently runs wordpress to manage the front end site
> www.example.com
>
> When users register they get a subdomain username.example.com 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 www.example.com domain.

If I understand correctly. Try:

server { # frontend
listen [::]:80 default_server;
server_name www.example.com;
}

server { # backend
listen [::]:80;
server_name *.example.com;
}

Check: http://nginx.org/en/docs/http/server_names.html

> 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 www.example.com? Any help is appreciated

--- appa

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Sub-domains only server for web application?

anagio November 20, 2011 04:05AM

Re: Sub-domains only server for web application?

António P. P. Almeida November 20, 2011 04:24AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 304
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready