My nginx is bound to several domain names, but I want these domain names to be used as aliases, and all incoming requests will be forwarded to my main domain name
Currently, I can only configure multiple servers. How should I configure nginx to transfer to a domain name?
一个
server
绑定多个域名 :server_name www.fb.com ta.fb.com c.fb.com
跳转
一年多没配置过了,不知道是否正确,哈哈,思路大概就是如此
server_name www.a.com www.b.com www.c.com ;
特意,注册一个号。告诉大家。 一楼少了一个分号 ; 哈哈哈哈哈 在redirect 之后