host文件
192.168.1.212 fecshop.dev.com
nginx配置文件
server {
listen 80;
server_name fecshop.dev.com;
#access_log /home/data/wwwlogs/zdt01.dev.com_nginx.log combined;
index index.php index.html index.htm;
root /data1/fecshop/appserver/web;
include /usr/local/nginx/conf/rewrite/none.conf;
#error_page 404 /404.html;
#error_page 502 /502.html;
location ~ [^/]\.php(/|$) {
#fastcgi_pass remote_php_ip:9000;
fastcgi_pass unix:/dev/shm/php-cgi.sock;
fastcgi_index index.php;
include fastcgi.conf;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|flv|mp4|ico)$ {
expires 30d;
access_log off;
}
location ~ .*\.(js|css)?$ {
expires 7d;
access_log off;
}
location ~ /\.ht {
deny all;
}
}
报错提示
An internal server error occurred.