In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Today, I will talk to you about how to set up a three-level domain name in nginx. Many people may not know much about it. In order to make you understand better, the editor has summarized the following contents for you. I hope you can get something according to this article.
Top-level domain name: .com .cn
Second-level domain name: baidu.com sina.com, where baidu and sina are second-level domain names
Third-level domain name: zhidao.baidu.com, where zhidao is the third-level domain name
Basic steps
Set up address resolution
Configure nginx snooping
Configure nginx Jump
Create address resolution
For Aliyun, which is used by the author, after logging in to the backend of Aliyun, add the A record and enter the third-level domain name into the host record. For more information, please see the figure below.
Configure nginx
Modify the default file in / etc/nginx/sites-aviablable, the complete code is as follows:
Server {listen 80 default_server; listen [:]: 80 default_server; root / var/www/html/wordpress; index index.php index.html index.htm index.nginx-debian.html; server_name www.xXXX.xin; location / {try_files $uri $uri/ = 404;} location ~\ .php$ {include snippets/fastcgi-php.conf; fastcgi_pass unix:/run/php/php7.0-fpm.sock;} location ~ /\ .ht {deny all }} # Service 2server {listen 80; server_name foreign.XXX.xin; location / {proxy_pass http://120.79.XX.XX:9000/;}} after reading the above, do you have any further understanding of how to set up a third-level domain name in nginx? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.