av一区二区在线观看_亚洲男人的天堂网站_日韩亚洲视频_在线成人免费_欧美日韩精品免费观看视频_久草视

您的位置:首頁技術文章
文章詳情頁

nginx打開php就下載的問題

瀏覽:93日期:2024-06-14 17:36:30

問題描述

一打開php文件就是下載 然后百度上說進入/etc/nginx/sites-available 然后把fastcgi_pass 127.0.0.1:9000;還有l(wèi)ocation ~ .php$ {前面的#去掉就好了 然后我又試了一下 雖然不提示下載了 但是顯示502了 這是為什么?我已經(jīng)啟動了php-fpm怎么還是502呢 nginx打開php就下載的問題

### You should look at the following URL’s in order to grasp a solid understanding# of Nginx configuration files in order to fully unleash the power of Nginx.# http://wiki.nginx.org/Pitfalls# http://wiki.nginx.org/QuickStart# http://wiki.nginx.org/Configuration## Generally, you will want to move this file somewhere, and start with a clean# file but keep this around for reference. Or just disable in sites-enabled.## Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples.### Default server configuration#server {listen 80 default_server;listen [::]:80 default_server;# SSL configuration## listen 443 ssl default_server;# listen [::]:443 ssl default_server;## Note: You should disable gzip for SSL traffic.# See: https://bugs.debian.org/773332## Read up on ssl_ciphers to ensure a secure configuration.# See: https://bugs.debian.org/765782## Self signed certs generated by the ssl-cert package# Don’t use them in a production server!## include snippets/snakeoil.conf;root /var/www/html;# Add index.php to the list if you are using PHPindex index.html index.htm index.nginx-debian.html;server_name _;location / {# First attempt to serve request as file, then# as directory, then fall back to displaying a 404.try_files $uri $uri/ =404;}# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000#location ~ .php$ { //把#去掉了# include snippets/fastcgi-php.conf;## # With php7.0-cgi alone:fastcgi_pass 127.0.0.1:9000; //把#去掉了# # With php7.0-fpm:# fastcgi_pass unix:/run/php/php7.0-fpm.sock;} //把#去掉了# deny access to .htaccess files, if Apache’s document root# concurs with nginx’s one##location ~ /.ht {# deny all;#}}# Virtual Host configuration for example.com## You can move that to a different file under sites-available/ and symlink that# to sites-enabled/ to enable it.##server {# listen 80;# listen [::]:80;## server_name example.com;## root /var/www/example.com;# index index.html;## location / {# try_files $uri $uri/ =404;# }#}

問題解答

回答1:

額,這種問題。還是自己動手搜索比較好。。。

關鍵詞:nginx 打開php 下載

相關文章:
主站蜘蛛池模板: 一区二区三区在线播放 | 在线播放亚洲 | 久久av片 | 中文字幕理论片 | 啪啪综合网| 欧美视频亚洲视频 | 超碰成人在线观看 | 长河落日 | 操少妇视频 | 日韩中文字幕在线观看 | 亚洲福利影院 | 性大毛片视频 | 亚洲精品免费在线观看 | 日韩毛片网| 久草视频免费在线观看 | 国产激情小视频 | 在线视频亚洲 | 天天色小说 | 国产精品毛片久久久久久久 | 激情综合五月天 | 国产福利在线播放 | 五月天综合网 | 黄色片视频在线观看 | 国产激情在线视频 | 99精品久久 | 波多野结衣在线观看一区二区 | 日本a在线观看 | 国产一区二区在线观看视频 | 欧美精品日韩 | 日韩精品一区在线观看 | 成人在线网 | 国产精品视频免费 | 国产欧美精品一区二区色综合 | 免费一区二区 | 在线看片a | 四虎地址| 三上悠亚激情av一区二区三区 | 亚洲一区二区三区免费 | 中文字幕在线观看免费视频 | 伊人网在线播放 | 亚洲视频免费看 |