成人视屏在线观看-国产99精品-国产精品1区2区-欧美一级在线观看-国产一区二区日韩-色九九九

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

nginx打開php就下載的問題

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

問題描述

一打開php文件就是下載 然后百度上說進入/etc/nginx/sites-available 然后把fastcgi_pass 127.0.0.1:9000;還有location ~ .php$ {前面的#去掉就好了 然后我又試了一下 雖然不提示下載了 但是顯示502了 這是為什么?我已經啟動了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 下載

相關文章:
主站蜘蛛池模板: 亚洲精美视频 | 一级 黄 色 片免费 一级aaaaaa毛片免费 | 亚州黄色网址 | 久久久久久国产精品免费免费 | 一区二区三区免费视频 www | 久久免费成人 | 99在线在线视频免费视频观看 | 日韩免费视频播播 | 亚洲欧美另类在线视频 | 偷拍小视频99在线 | 一级白嫩美女毛片免费 | 222aaa天堂 | 久久综合婷婷 | 一级做a爰片久久毛片 | 美女视频免费永久观看的 | 欧美3p精品三区 | 男人使劲躁女人视频小v | 91成人小视频 | 欧美人一级淫片a免费播放 欧美人与z0z0xxxx | 真实的国产乱xxxx | 欧美精品午夜 | 国产午夜伦伦伦午夜伦 | 午夜美女网站 | 亚洲女人被黑人猛躁进女人 | 国产在线视频网址 | 色播亚洲视频在线观看 | 日韩欧美在线播放视频 | 久久国产精品久久国产片 | 亚洲精品国产成人7777 | 欧美一级在线观看播放 | 国产高清在线视频 | 97在线视频免费公开观看 | 亚洲一级黄色毛片 | 国产成人在线视频播放 | 成人免费视频软件网站 | 在线视频一区二区 | 成人国产网站v片免费观看 成人国产午夜在线视频 | 欧美成人观看视频在线 | 在线一级片 | 99视频在线| 欧美成人午夜片一一在线观看 |