成人国产在线小视频_日韩寡妇人妻调教在线播放_色成人www永久在线观看_2018国产精品久久_亚洲欧美高清在线30p_亚洲少妇综合一区_黄色在线播放国产_亚洲另类技巧小说校园_国产主播xx日韩_a级毛片在线免费

資訊專欄INFORMATION COLUMN

Nginx 站點(diǎn)配置文件 for Laravel 5 (參考)

missonce / 3147人閱讀

user nginx;
worker_processes auto;
pid /run/nginx.pid;

events {
    worker_connections 768;
    # multi_accept on;
}

http {

    ##
    # Basic Settings
    ##

    sendfile on;
    tcp_nopush on;
    tcp_nodelay on;
    keepalive_timeout 65;
    types_hash_max_size 2048;
    # server_tokens off;

    server_names_hash_bucket_size 64;
    # server_name_in_redirect off;

    include /etc/nginx/mime.types;
    default_type application/octet-stream;
    # client_max_body_size 10m;

    ##
    # SSL Settings
    ##

    ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
    ssl_prefer_server_ciphers on;

    ##
    # Logging Settings
    ##

    access_log /var/log/nginx/access.log;
    error_log /var/log/nginx/error.log;

    ##
    # Gzip Settings
    ##

    gzip on;
    gzip_disable "msie6";

    # gzip_vary on;
    # gzip_proxied any;
    # gzip_comp_level 6;
    # gzip_buffers 16 8k;
    # gzip_http_version 1.1;
    # gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;

    ##
    # Virtual Host Configs
    ##

    include /etc/nginx/conf.d/*.conf;
    include /etc/nginx/sites-enabled/*;
}


#mail {
#    # See sample authentication script at:
#    # http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript
#
#    # auth_http localhost/auth.php;
#    # pop3_capabilities "TOP" "USER";
#    # imap_capabilities "IMAP4rev1" "UIDPLUS";
#
#    server {
#        listen     localhost:110;
#        protocol   pop3;
#        proxy      on;
#    }
#
#    server {
#        listen     localhost:143;
#        protocol   imap;
#        proxy      on;
#    }
#}

站點(diǎn)配置文件

server {
    listen 80;
    listen 443 ssl;
    server_name gclove.com;
    root "/home/vagrant/Code/Laravel/public";

    index index.html index.htm index.php;

    charset utf-8;

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

    location = /favicon.ico { access_log off; log_not_found off; }
    location = /robots.txt  { access_log off; log_not_found off; }

    access_log off;
    error_log  /var/log/nginx/homestead.app-error.log error;

    sendfile off;

    client_max_body_size 100m;

    location ~ .php$ {
        fastcgi_split_path_info ^(.+.php)(/.+)$;
        fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
        fastcgi_index index.php;
        include fastcgi_params;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

        fastcgi_intercept_errors off;
        fastcgi_buffer_size 16k;
        fastcgi_buffers 4 16k;
        fastcgi_connect_timeout 300;
        fastcgi_send_timeout 300;
        fastcgi_read_timeout 300;
    }

    location ~ /.ht {
        deny all;
    }

    ssl_certificate     /etc/nginx/ssl/gclove.com.crt;
    ssl_certificate_key /etc/nginx/ssl/gclove.com.key;
}

文章版權(quán)歸作者所有,未經(jīng)允許請(qǐng)勿轉(zhuǎn)載,若此文章存在違規(guī)行為,您可以聯(lián)系管理員刪除。

轉(zhuǎn)載請(qǐng)注明本文地址:http://systransis.cn/yun/39248.html

相關(guān)文章

  • 從零開始部署一個(gè) Laravel 站點(diǎn)

    摘要:流程大概是這樣本地代碼阿里云既然要使用,那么先在上安裝安裝完成就可以使用了,然后在上創(chuàng)建一個(gè)私有項(xiàng)目,里面包含所有該項(xiàng)目所需代碼。 以下的配置都是在Ubuntu 14.04穩(wěn)定支持版的環(huán)境中搭建Linux+Nginx+Mysql+PHP環(huán)境的 首先刪除阿里云ECS的Linux中會(huì)給你預(yù)裝Apache 通過(guò)下面的命令來(lái)刪除Apache sudo service apache2 stop ...

    Fourierr 評(píng)論0 收藏0
  • 在 Windows10 系統(tǒng)中安裝 Homestead 本地開發(fā)環(huán)境

    摘要:在系統(tǒng)中安裝本地開發(fā)環(huán)境在環(huán)境下安裝開發(fā)環(huán)境,網(wǎng)上有很多相關(guān)教程其中大多都是環(huán)境,很多大神都是用戶的。但是還是有很多像我這樣的小弟還是用的系統(tǒng),而在系統(tǒng)上面因?yàn)闄?quán)限問(wèn)題安裝還是有各種問(wèn)題發(fā)生??梢允褂帽镜匕惭b的方法。 在 windows10 系統(tǒng)中安裝 homestead 本地開發(fā)環(huán)境 在 windows10 環(huán)境下安裝 homestead 開發(fā)環(huán)境,網(wǎng)上有很多相關(guān)教程其中大多都是 m...

    vboy1010 評(píng)論0 收藏0
  • laravel學(xué)習(xí)之nginx配置站點(diǎn)

    摘要:前言設(shè)置項(xiàng)目的域名站點(diǎn)的時(shí)候,需要對(duì)做一些對(duì)應(yīng)的重寫配置,用來(lái)做相關(guān)路由,否則會(huì)報(bào)。 前言 設(shè)置laravel項(xiàng)目的域名站點(diǎn)的時(shí)候,需要對(duì)nginx做一些對(duì)應(yīng)的重寫rewrite配置,用來(lái)做相關(guān)路由,否則會(huì)報(bào)404。 nginx.conf配置 server { listen 80; server_name xxx.com; #域名 root /data/www...

    frank_fun 評(píng)論0 收藏0
  • laravel學(xué)習(xí)之nginx配置站點(diǎn)

    摘要:前言設(shè)置項(xiàng)目的域名站點(diǎn)的時(shí)候,需要對(duì)做一些對(duì)應(yīng)的重寫配置,用來(lái)做相關(guān)路由,否則會(huì)報(bào)。 前言 設(shè)置laravel項(xiàng)目的域名站點(diǎn)的時(shí)候,需要對(duì)nginx做一些對(duì)應(yīng)的重寫rewrite配置,用來(lái)做相關(guān)路由,否則會(huì)報(bào)404。 nginx.conf配置 server { listen 80; server_name xxx.com; #域名 root /data/www...

    Jaden 評(píng)論0 收藏0

發(fā)表評(píng)論

0條評(píng)論

最新活動(dòng)
閱讀需要支付1元查看
<