Nginx

Nginx



Nginx is web server which can also be used as a reverse peoxy, load balancer, mail proxy and HTTP cache. The software was created by Igor Sysoev and first publicly released in 2004.


重新启动或加载服务器service nginx restart或者service nginx reload


增加服务器的域名指向


(1)将一个或多个域名同样解析到服务器的IP地址;

(2)在服务器的文件夹/usr/local/nginx/conf/vhost内,新建一个abcde.com.conf文件,即“域名+.conf“,改配置文件内做一些修改:

server
{
listen 80;
server_name abcde.com;
#index index.html index.htm index.php;
root  /home/******/****/Web/; #主目录绝对路径地址
nginx的设置还是非常简单方便的。




在nginx上配置中文域名
浏览器主动对中文域名自动转码,使用的一种叫做punycode码;DNS服务器的中文域名解析,也会把中文域名转成punycode码做解析。
中文域名变为Punycode编码即可,在线转码地址:http://tools.jb51.net/punycode/




BypInformation