The method is as follows:
First have to prepare a VPS, I used is foreign, I have the environment in the morning, so can't wait to test the next ...??? You don't know how to configure your environment?? It doesn't matter. Look at Brother's tutorial, connect the terminal with SSH, the implementation of the CentOS under the LNMP environment a key to install the content of this article, OK. It's going to be all right. Order those to look at the CentOS under some basic command to use, it is almost ... All right, all of this is about the same.
Then, we're not 80 sealed. Let's give the website a 81 port, I'm talking about IIS, that's Nginx and Apache. I really don't know how to give it. In short, to make the site accessible, regardless of the way ... and then to edit the nginx.conf. Before the last one, add the following ... Don't know how to add a site look at the above article
Copy Code code as follows:
server {
Listen 80;
server_name jb51.cn www.jb51.cn;
Proxy_set_header X-real-ip $remote _addr;
Proxy_set_header remote-host $remote _addr;
Proxy_set_header x-forwarded-for $proxy _add_x_forwarded_for;
Access_log/home/www/logs/jb51.cn_access.log;
Location/robots.txt {
root/home/www/www.jb51.cn;
}
Location/{
Proxy_pass Http://IP or other domain name: 82;
}
}
That's good, easy ...