标签

Honeymoon - Thomas Ng

归档

近期文章

Our Visitor

008085
用户今天 : 20
合计查看 : 15794
谁是在线的 : 0
你的IP地址 : 40.77.167.143

Laravel笔记

window的NGINX配置:

server
{
    listen 80;
    server_name www.owen.com;
    index index.php index.html index.htm default.php default.htm default.html;
    root D:/owenzhang/owen-laravel/public;

    #START-ERROR-PAGE
    #error_page 403 /403.html;
    error_page 404 /404.html;
    #error_page 502 /502.html;
    #END-ERROR-PAGE

    #HTTP_TO_HTTPS_START
    #HTTP_TO_HTTPS_END

    #LIMIT_INFO_START
    #LIMIT_INFO_END

    #SSL-INFO-START
    #SSL-INFO-END

    #proxy-cache
    location ~ /purge(/.*) {
        proxy_cache_purge cache_one $1$is_args$args;
    }
    #proxy 
    include proxy/www.owen.com/*.conf;

    #PHP-INFO-START
    include php/83.conf;
    #PHP-INFO-END

    #REWRITE-START
    include rewrite/www.owen.com/*.conf;
    #REWRITE-END

    #redirect 
    include redirect/www.owen.com/*.conf;

    #access forbidden
    location ~ ^/(\.user.ini|\.htaccess|\.git|\.svn|\.project|LICENSE|README.md){
        return 404;
    }

    location / {
        try_files $uri $uri/ /index.php?$query_string;
    }

     location ~ ^/index\.php(/|$) {
        fastcgi_pass 127.0.0.1:9000;
        fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
        include fastcgi_params;
        fastcgi_hide_header X-Powered-By;
    }

    #ssl
    location ~ \.well-known{
        allow all;
    }

    #static-cache
    include static_cache/www.owen.com/*.conf;

    access_log  e:/BtSoft/wwwlogs/www.owen.com.log;
    error_log  e:/BtSoft/wwwlogs/www.owen.com.error.log;
}

Illuminate\Encryption\MissingAppKeyException

Illuminate\Encryption\MissingAppKeyException
vendor\laravel\framework\src\Illuminate\Encryption\EncryptionServiceProvider.php:83
No application encryption key has been specified.

缺少env的APP_KEY=base64:X3sVgefVC4d8GvqaNaPADhnUGPzRgtMUxdly0K18ciA=
使用命令执行:
php artisan key:generate