您好,登錄后才能下訂單哦!
本篇內容主要講解“怎么解決wdlinux nginx pathinfo問題”,感興趣的朋友不妨來看看。本文介紹的方法操作簡單快捷,實用性強。下面就讓小編來帶大家學習“怎么解決wdlinux nginx pathinfo問題”吧!
server { listen 80; root /www/web/sucai_chaojidk_com/public_html; server_name sucai.chaojidk.com; index index.html index.php index.htm; error_page 400 /errpage/400.html; error_page 403 /errpage/403.html; error_page 404 /errpage/404.html; error_page 503 /errpage/503.html; location ~ \.php(.*)$ { fastcgi_pass unix:/tmp/php-55-cgi.sock; fastcgi_index index.php; fastcgi_split_path_info ^(.+\.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_params; include fcgi.conf; } location ~ /\.ht { deny all; } location / { #主要是這一段一定要確保存在 if (!-e $request_filename) { rewrite ^(.*)$ /index.php?s=$1 last; break; } #結束 #autoindex on; } } server { listen 443; root /www/web/sucai_chaojidk_com/public_html; ssl on; ssl_certificate cert/sucai.chaojidk.com.crt; ssl_certificate_key cert/sucai.chaojidk.com.key; ssl_prefer_server_ciphers on; ssl_session_timeout 10m; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_ciphers EECDH+CHACHA20:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5; server_name sucai.chaojidk.com; index index.html index.php index.htm; error_page 400 /errpage/400.html; error_page 403 /errpage/403.html; error_page 404 /errpage/404.html; error_page 503 /errpage/503.html; location ~ \.php(.*)$ { fastcgi_pass unix:/tmp/php-55-cgi.sock; fastcgi_index index.php; fastcgi_split_path_info ^(.+\.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_params; include fcgi.conf; } location ~ /\.ht { deny all; } location / { #主要是這一段一定要確保存在 if (!-e $request_filename) { rewrite ^(.*)$ /index.php?s=$1 last; break; } #結束 #autoindex on; } }
到此,相信大家對“怎么解決wdlinux nginx pathinfo問題”有了更深的了解,不妨來實際操作一番吧!這里是億速云網站,更多相關內容可以進入相關頻道進行查詢,關注我們,繼續學習!
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。