Wildcard domains as vhost

I tried to google this but could not hit the right keywords (been a long
week)…

We have DNS set up so that all requests ending in .project.example.com
(i.e.
bob.project.example.com) go to the same machine. How can I set up
sites-enabled so that all requests for *.project.example.com get treated
the
same?

Thanks,
John

look in the wiki at the server_name directive. (wildcards)

That was what I was looking for.
Thanks.
John

On 24 Mai 2011 15h00 WEST, [email protected] wrote:

[1 <multipart/alternative (7bit)>] [1.1 <text/plain; ISO-8859-1
(7bit)>] I tried to google this but could not hit the right keywords
(been a long week)…

We have DNS set up so that all requests ending in
.project.example.com (i.e. bob.project.example.com) go to the same
machine. How can I set up sites-enabled so that all requests for
*.project.example.com get treated the same?

Cf. http://nginx.org/en/docs/http/server_names.html#wildcard_names

server {
server_name *.project.example.com;
(…)
}

— appa

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs