十年网站开发经验 + 多家企业客户 + 靠谱的建站团队
量身定制 + 运营维护+专业推广+无忧售后,网站问题一站解决
nginx 配置主域名 xxx.com, 跳转子域名 www.xxx.com
创新互联是一家专注于网站制作、成都网站建设与策划设计,昌吉网站建设哪家好?创新互联做网站,专注于网站建设十年,网设计领域的专业建站公司;建站业务涵盖:昌吉等地区。昌吉做网站价格咨询:13518219792
server {
listen 80;
server_name www.xxx.com;
location / {
root html/www/public_html;
index index.php index.html index.htm;
}
error_page 404 /404.html;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html/www/public_html;
}
location ~ \.php$ {
root html/www/public_html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
# include fastcgi_params;**
include fastcgi.conf;
}
}
#xxx.com --> www.xxx.com
server {
server_name xxx.com;
rewrite ^(.*)$ http://www.xxx.com$1 permanent;
}