我有两个域(domain1.com
和domain2.us
)用于WPML。两者都应具有相同的根(/var/www/html
),但我的配置不起作用(简化):
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name domain1.com www.domain1.com;
root /var/www/html;
...
}
server {
listen 80;
listen [::]:80;
server_name domain2.us www.domain2.us;
root /var/www/html;
...
}
虽然domain1.com
确实显示了文件夹的文件,但domain2.us
却没有。替代方案如何(两个域都有SSL证书)?