• 虚拟机配置


    由/usr/local/nginx/conf/nginx.conf  复制而来-----注意如何配置支持pathinfo

    server { listen 80; #listen [::]:80 default_server ipv6only=on; server_name test_zb.photos.caomall.net; index index.html index.htm index.php; root /home/wwwroot/default/photos/Public; #error_page 404 /404.html; include enable-php-pathinfo.conf;//~~~~~~~~~`这里path-info 需要加上,否则不支持pathinfo~~~~,不支持require函数引用文件方式
    //~~~~~~~~~否则 。tp的访问模式不一定可以;
    
    location /nginx_status { stub_status on; access_log off; } location ~ .*.(gif|jpg|jpeg|png|bmp|swf)$ { expires 30d; } location ~ .*.(js|css)?$ { expires 12h; } location ~ /. { deny all; } access_log /home/wwwlogs/access.log; }

      

  • 相关阅读:
    FileDescriptor详解
    java序列化
    ObjectInputStream和ObejctOutputStream
    ByteArrayOutputStream
    ByteArrayInputStream
    PipedInputStream/PipedOutputStream
    字节输入流
    反义
    贪婪和非贪婪
    MYSQL数据库优化
  • 原文地址:https://www.cnblogs.com/pansidong/p/8295852.html
Copyright © 2020-2023  润新知