How to operate the secondary pan directory rental, and point the secondary directory of your website to someone else's server

 yuli May 25, 2019 18:46:31 Station building technology comment four hundred and fifty-four Reading mode

It is implemented by reverse proxy. Here we use nginx as an example, The nginx configuration is as follows

server
{
listen 80;
server_name ipython.wang;
index index.php index.html index.htm default.php default.htm default.html;
root /www/wwwroot;

#Here is the secondary directory to rent. We will point it to the target address http://www.aiwanzhushou.com/wap/
location /fml/ {
#The following slash is a key. If there is no slash, the paymentServ will be passed to the backend node, resulting in 404
proxy_pass http://www.aiwanzhushou.com/wap/ ;
}

.........

}

After completing the above configuration and restarting nginx, you can point the secondary directory to the client's target server

Sample screenshot:

如何操作二级泛目录出租,将自己网站的二级目录指向到别人服务器

Support point server fee
The monthly bandwidth cost is a bit unbearable如何操作二级泛目录出租,将自己网站的二级目录指向到别人服务器

 yuli
  • This article is written by Published on May 25, 2019 18:46:31
  • This article is collected and sorted by the website of Mutual Benefit, and the email address for problem feedback is: wosnnet@foxmail.com , please keep the link of this article for reprinting: https://wosn.net/2618.html

Comment