Nginx 也是當(dāng)前流行的一款 輕量級服務(wù)器 在日常使用中呢 也會出現(xiàn)一些問題 今天 學(xué)習(xí)君 在安裝配置Nginx的時候就出現(xiàn)了 403 Forbindden 的被禁止訪問的錯誤 網(wǎng)上搜索之后呢 完美解決 這里給大家分享下
成都創(chuàng)新互聯(lián)專注于沅江網(wǎng)站建設(shè)服務(wù)及定制,我們擁有豐富的企業(yè)做網(wǎng)站經(jīng)驗。 熱誠為您提供沅江營銷型網(wǎng)站建設(shè),沅江網(wǎng)站制作、沅江網(wǎng)頁設(shè)計、沅江網(wǎng)站官網(wǎng)定制、成都微信小程序服務(wù),打造沅江網(wǎng)絡(luò)公司原創(chuàng)品牌,更為您提供沅江網(wǎng)站排名全網(wǎng)營銷落地服務(wù)。話不多說 先粘 上 原版nginx 配置文件代碼
worker_processes 1; events { worker_connections 1024; } http { include mime.types; default_type application/octet-stream; sendfile on; autoindex on; keepalive_timeout 65; fastcgi_connect_timeout 300; fastcgi_send_timeout 300; fastcgi_read_timeout 300; fastcgi_buffer_size 128k; fastcgi_buffers 4 128k; fastcgi_busy_buffers_size 256k; fastcgi_temp_file_write_size 256k; #gzip on; gzip on; gzip_min_length 1k; gzip_buffers 4 32k; gzip_http_version 1.1; gzip_comp_level 2; gzip_types text/plain application/x-javascript text/css application/xml; gzip_vary on; gzip_disable "MSIE [1-6]."; server_names_hash_bucket_size 128; client_max_body_size 100m; client_header_buffer_size 256k; large_client_header_buffers 4 256k; server { listen 80; server_name localhost; autoindex on; #是否允許訪問目錄 root "C:/WWW"; location / { index index.html index.htm l.php; #index.php autoindex on; } error_page 500 502 503 504 /50x.html; location = /50x.html { root html; } location ~ \.php(.*)$ { fastcgi_pass 127.0.0.1:9000; #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_params; } } include vh_*.conf; }
當(dāng)前名稱:詳解Nginx出現(xiàn)403Forbidden的解決辦法-創(chuàng)新互聯(lián)
網(wǎng)站URL:http://www.muchs.cn/article2/dsosic.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供App設(shè)計、外貿(mào)建站、電子商務(wù)、手機網(wǎng)站建設(shè)、網(wǎng)站導(dǎo)航、靜態(tài)網(wǎng)站
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)