打开一个本地配置的网站的网页要很久,我网站的代码都用microtime()测试过了并不是我代码或者数据库的原因、、
这是我的配置nginx.conf: #user nobody; worker_processes 1; worker_rlimit_nofile 100000; error_log logs/error.log crit; #error_log logs/error.log notice; #error_log logs/error.log info; pid logs/nginx.pid; events { worker_connections 1024; } http { include mime.types; default_type application/octet-stream; server_names_hash_bucket_size 256; log_format main '$remote_addr - $remote_user [$time_iso8601] "$request" ' '$status $body_bytes_sent '; access_log logs/$server_name.log main; server_tokens on; tcp_nopush on; tcp_nodelay on; sendfile on; keepalive_timeout 20; include upstream.conf; gzip on; gzip_disable “MSIE [1-6].(?!.*SV1)”; gzip_http_version 1.1; gzip_vary on; gzip_proxied any; gzip_min_length 1000; gzip_buffers 16 8k; gzip_comp_level 6; gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript; #HTTPS server #server { #listen 443; #server_name localhost; #ssl on; #ssl_certificate cert.pem; #ssl_certificate_key cert.key; #ssl_session_timeout 5m; #ssl_protocols SSLv2 SSLv3 TLSv1; #ssl_ciphers HIGH:!aNULL:!MD5; #ssl_prefer_server_ciphers on; #location / { #root html; #index index.html index.htm; #} #} #include saferesolve.conf; include vhosts.conf; } \-----------------------------------------------------------------\ vhosts.conf: server { listen 80; server_name localhost alias 127.0.0.1; location / { root G:/upupw/htdocs; index index.html index.htm default.html default.htm index.php default.php app.php u.php; include G:/upupw/htdocs/up-*.conf; } autoindex off; include advanced_settings.conf; location ~ ^.+\.php { root G:/upupw/htdocs; fastcgi_pass bakend; fastcgi_index index.php; fastcgi_split_path_info ^((?U).+\.php)(/?.+)$; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info; include fastcgi.conf; } location ~ ^.+\.(css|js|htm|html)$ { root G:/upupw/htdocs; add_header Cache-Control no-store; } } #server localhost end} server { listen 80; server_name www.aaa08cms.com alias aaa.08cms.com; location / { root G:/upupw/vhosts/www.aaa08cms.com; index index.html index.htm default.html default.htm index.php default.php app.php u.php; include G:/upupw/vhosts/www.aaa08cms.com/up-*.conf; } autoindex off; include advanced_settings.conf; location ~ ^.+\.php { root G:/upupw/vhosts/www.aaa08cms.com; fastcgi_pass bakend; fastcgi_index index.php; fastcgi_split_path_info ^((?U).+\.php)(/?.+)$; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info; include fastcgi.conf; } } #server www.aaa08cms.com end} |
|
沙发#
发布于:2015-07-09 15:40
解决了 = =端口的问题。。
|
|