can multiple domain points a single nginx host with server_name ?

Joydeep Bakshi joydeep.bakshi at netzrezepte.de
Mon Apr 28 11:43:57 UTC 2014


Hello list,

I am in a process to configure nginx infront of apache. For vhost having
single domain like  www.mydomain.com & mydomain.com ; there is no issue to
configure by server_name directive.

But what to do where multiple domain points to a single apache vhost using
apache server_alias directive ? Can nginx server_name simply points all
those domains to the required vhost of apache ?

 is

nginx  [ server_name  test1.com test2.com www.test3.com  ]

equivalent to

apache  [
servername test1.com
serveralias   test2.com www.test3.com ]

?

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20140428/d6bca379/attachment.html>


More information about the nginx mailing list