vi www.1sucai.cn
server
{
listen [::]:80;
server_name www.1sucai.cn jb51.net;
root /var/www/jb51.net;
index index.html index.htm index.php;
include /etc/nginx/common.conf;
location /nginx_status
{
stub_status on;
access_log off;
allow all;
}
}
location ~* \.(ico|css|js|gif|jpe?g|png)(\?[0-9]+)?$ {
expires max;
break;
}
location ~ .*\.php$ {
# fastcgi_pass 127.0.0.1:9000;
fastcgi_pass unix:/dev/shm/php-cgi.sock;
fastcgi_index index.php;
include /etc/nginx/fastcgi_params;
}
if ( $fastcgi_script_name ~ \..*\/.*php ) {
return 403;
}
location /nginx_status
{
stub_status on;
access_log off;
allow all;
}
ln -s /etc/nginx/sites-available/www.1sucai.cn /etc/nginx/sites-enabled/www.1sucai.cn
/etc/init.d/nginx configtest Testing nginx configuration: nginx.
server {
listen 80 default;
server_name _;
location / {
root html;
index 403.html;
}
location ~ //.ht {
deny all;
}
location /phpadmin/ {
alias /opt/www/phpadmin/;
index index.php;
}
location ~ /.php$ {
include httpd.conf;
}
}
server {
listen 80 default;
server_name _;
location / {
root html;
#index 403.html;
return 404;
}
location ~ //.ht {
deny all;
}
location /phpadmin/ {
alias /opt/www/phpadmin/;
index index.php;
}
location ~ /.php$ {
include httpd.conf;
}
}
机械节能产品生产企业官网模板...
大气智能家居家具装修装饰类企业通用网站模板...
礼品公司网站模板
宽屏简约大气婚纱摄影影楼模板...
蓝白WAP手机综合医院类整站源码(独立后台)...苏ICP备2024110244号-2 苏公网安备32050702011978号 增值电信业务经营许可证编号:苏B2-20251499 | Copyright 2018 - 2025 源码网商城 (www.ymwmall.com) 版权所有