1. 程式人生 > 其它 >【演算法筆記】樹上問題

【演算法筆記】樹上問題


#usernobody; worker_processes1;
#error_loglogs/error.log; #error_loglogs/error.lognotice; #error_loglogs/error.loginfo;
#pidlogs/nginx.pid;

events{ worker_connections1024; }

http{ includemime.types; default_typeapplication/octet-stream;
#log_formatmain'$remote_addr-$remote_user[$time_local]"$request"' #'$status$body_bytes_sent"$http_referer"' #'"$http_user_agent""$http_x_forwarded_for"';
#access_loglogs/access.logmain;
sendfileon; #tcp_nopushon;
#keepalive_timeout0; keepalive_timeout65;
#gzipon;
server{ listen82; server_namelocalhost;
#charsetkoi8-r;
#access_loglogs/host.access.logmain;
location/{ rootD:/Users/Langlang_Tu/Desktop/testAll/sh_energy_v2_js; indexlogin.html;
#rootE:/test/vuestudent/dist; #indexindex.html; add_headerCache-Control"no-cache";#不快取no-store try_files$uri$uri//index.html;#適配history模式 } location/test{ #精確路徑 aliasD:/Users/Langlang_Tu/Desktop/testAll/sh_energy_v2_js/test; indexindex.htmlindex.html; } location/vuestudent{ add_headerCache-Control"no-cache";#不快取no-store aliasD:/Users/Langlang_Tu/Desktop/testAll/sh_energy_v2_js/vuestudent; indexindex.html; try_files$uri$uri//index.html;#適配history模式 }
#location/electricity{ #aliasD:/Users/Langlang_Tu/Desktop/testAll/sh_energy_v2_js/electricity; #indexindex.htmlindex.html; #add_headerCache-Control"no-cache";#不快取no-store #try_files$uri$uri//index.html;#適配history模式 #}
#error_page404/404.html;
#redirectservererrorpagestothestaticpage/50x.html # error_page500502503504/50x.html; location=/50x.html{ roothtml; }
#對應上面的@router,主要原因是路由的路徑資源並不是一個真實的路徑,所以無法找到具體的檔案 #因此需要rewrite到index.html中,然後交給路由在處理請求資源 location@router{ #地址重定向 rewrite^.+(?<!js|css|png|map|woff|woff2|png|svg)*$/electricity/index.htmllast; }
gzipon; gzip_buffers324K; gzip_comp_level6; gzip_min_length200; gzip_typesapplication/javascripttext/csstext/xml; gzip_disable"MSIE[1-6]\.";#配置禁用gzip條件,支援正則。此處表示ie6及以下不啟用gzip(因為ie低版本不支援) gzip_varyon;
#proxythePHPscriptstoApachelisteningon127.0.0.1:80 # #location~\.php${ #proxy_passhttp://127.0.0.1; #}
#passthePHPscriptstoFastCGIserverlisteningon127.0.0.1:9000 # #location~\.php${ #roothtml; #fastcgi_pass127.0.0.1:9000; #fastcgi_indexindex.php; #fastcgi_paramSCRIPT_FILENAME/scripts$fastcgi_script_name; #includefastcgi_params; #}
#denyaccessto.htaccessfiles,ifApache'sdocumentroot #concurswithnginx'sone # #location~/\.ht{ #denyall; #} }
server{#第二埠vue測試 listen8848; server_namelocalhost;
location/{ add_headerCache-Control"no-cache";#不快取no-store rootE:/test/vuestudent/dist; indexindex.html; try_files$uri$uri//index.html;#適配history模式 }
error_page500502503504/50x.html; location=/50x.html{ roothtml; }
gzipon; gzip_buffers324K; gzip_comp_level6; gzip_min_length200; gzip_typesapplication/javascripttext/csstext/xml; gzip_disable"MSIE[1-6]\.";#配置禁用gzip條件,支援正則。此處表示ie6及以下不啟用gzip(因為ie低版本不支援) gzip_varyon; }
server{#第三埠程式碼壓縮測試 listen8228; server_namelocalhost;
location/{ rootD:/Users/langlang_tu/Desktop/testAll/oldSHEnergy/production/sh_energy; indexlogin.html; }
error_page500502503504/50x.html; location=/50x.html{ roothtml; } }
server{#第四埠測試 listen4399; server_namelocalhost;
location/{ rootD:/Users/Langlang_Tu/Desktop/myapps/dist; indexindex.html; try_files$uri$uri//index.html;#適配history模式 }
error_page500502503504/50x.html; location=/50x.html{ roothtml; } } server{#第五埠vue測試 listen9848; server_namelocalhost;
location/{ add_headerCache-Control"no-cache";#不快取no-store rootD:/Users/Langlang_Tu/Desktop/testAll/sh_energy_v2_js/electricity; indexindex.html; try_files$uri$uri//index.html;#適配history模式 }
error_page500502503504/50x.html; location=/50x.html{ roothtml; }
gzipon; gzip_buffers324K; gzip_comp_level6; gzip_min_length200; gzip_typesapplication/javascripttext/csstext/xml; gzip_disable"MSIE[1-6]\.";#配置禁用gzip條件,支援正則。此處表示ie6及以下不啟用gzip(因為ie低版本不支援) gzip_varyon; }


#anothervirtualhostusingmixofIP-,name-,andport-basedconfiguration # #server{ #listen8000; #listensomename:8080; #server_namesomenamealiasanother.alias;
#location/{ #roothtml; #indexindex.htmlindex.htm; #} #}

#HTTPSserver # #server{ #listen443ssl; #server_namelocalhost;
#ssl_certificatecert.pem; #ssl_certificate_keycert.key;
#ssl_session_cacheshared:SSL:1m; #ssl_session_timeout5m;
#ssl_ciphersHIGH:!aNULL:!MD5; #ssl_prefer_server_cipherson;
#location/{ #roothtml; #indexindex.htmlindex.htm; #} #}
}