zoukankan      html  css  js  c++  java
  • 使用apache 转换成nginx 出现的报错 access denied.

    使用的集成环境 是phpstudy 

    进行web服务器切换的时候 报错 出现

     在nginx 中的文件

    D:phpstudy_proExtensionsNginx1.15.11confvhosts

    这个文件中有文件所需要的配置文件

    重新配置站点生成这个文件就好了

    server {
    listen 80;
    server_name laraveler.com;
    root "C:/phpstudy_pro/WWW/laravel55/public";
    location / {
    index index.php index.html error/index.html;
    error_page 400 /error/400.html;
    error_page 403 /error/403.html;
    error_page 404 /error/404.html;
    error_page 500 /error/500.html;
    error_page 501 /error/501.html;
    error_page 502 /error/502.html;
    error_page 503 /error/503.html;
    error_page 504 /error/504.html;
    error_page 505 /error/505.html;
    error_page 506 /error/506.html;
    error_page 507 /error/507.html;
    error_page 509 /error/509.html;
    error_page 510 /error/510.html;
    include C:/phpstudy_pro/WWW/laravel55/public/nginx.htaccess;
    autoindex off;
    }
    location ~ .php(.*)$ {
    fastcgi_pass 127.0.0.1:9002;
    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;
    }
    }

    就是这个配置文件

    加到文件里面就好了 这是配置站点自动生成的(只是个例子)

  • 相关阅读:
    vim delete
    npm ERR! network connect ETIMEDOUT
    在 ubuntu 14.04 Unity 中清除和关闭 Totem 播放记录
    ubuntu 14.04 上 jvpn 使用说明
    LWP::Protocol::https not installed
    perl 安装模块
    触摸屏工作方式
    如何检测死锁并快速定位死锁位置
    如何用 yum 的一个包替换另一个包
    shell 中 here documemt << 与 <<- 的区别
  • 原文地址:https://www.cnblogs.com/abcdefghi123/p/14735588.html
Copyright © 2011-2022 走看看