现在在腾讯云有一个云服务器,已经有一个域名网站在上面运行。
我想再解析一个或者两个域名在这台服务器上面,怎么实现?而且还不影响现在域名运行。
小白一个,希望有步骤,万分感谢!
您好,NGINX简单配置,
假如你的域名是x.com,
假如你的想要的论坛为bbs.x.com,
假如你的Wordpress网站是blog.x.com,
server{ #配置第一个论坛 listen 80; server_name bbs1.x.com; root /home/bbs1/;#这是网站目录 index index.html index.htm index.php; #其他略,根据你想要再配置 } server{ #配置第二个论坛 listen 80; server_name bbs2.x.com; root /home/bbs2/;#这是网站目录 index index.html index.htm index.php; #其他略,根据你想要再配置 } server{ #配置Wordpress博客 listen 80; server_name blog.x.com; root /home/blog/;#这是网站目录 index index.html index.htm index.php; #其他略,根据你想要再配置 }