现在位置 >首页 > 所有属于WEB服务器分类文章
0+
1、cd进入/etc/nginx/sites-available,建立一个新文件,一般以你的域名为文件名,例如:www.xx.com 2、复制代码:    server { listen   80; ## listen for ipv4; this line is default and implied #listen   [::]:80 default ipv6only=on; ## listen for ipv6 root /var/www/www.xx.com; #你网站所在目录的绝对路径 index index.php index.html index.htm; #目录索引 # Make site accessible from http://localhost/ server_name www.xx.com; #网站的域名 location / { index index.html index.htm index.php; ...
阅读全文
×
腾讯微博