本帖最后由 宝塔用户_yiqgzl 于 2020-12-22 14:29 编辑
nginx里建里三个server如下:
网站正确映射您的域名:
server
{
listen 80;
server_name text01; # 名称
index index.html index.htm index.php;
root /www/travel/text01; # 网站路径
#error_page 404 /404.html;
include enable-php.conf;
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 12h;
}
location ~ /\.
{
deny all;
}
access_log /www/wwwlogs/access.log;
}
server
{
内容和上面一样,就是名称路径不一样,建三个
} |