Laravel 5.2配置Nginx服务器
来源:互联网 发布:php 微信退款接口demo 编辑:程序博客网 时间:2024/06/06 17:49
Laravel 5.2配置Nginx服务器
MySQL、PHP和Nginx的安装配置可参考之前的文章Ubuntu 14.04 安装配置MySQL5.7 PHP7.1 Nginx1.10
配置文件如下
#user nobody;worker_processes 1;#error_log logs/error.log;#error_log logs/error.log notice;#error_log logs/error.log info;pid logs/nginx.pid;events { worker_connections 1024;}http { include mime.types; default_type application/octet-stream; #log_format main '$remote_addr - $remote_user [$time_local] "$request" ' # '$status $body_bytes_sent "$http_referer" ' # '"$http_user_agent" "$http_x_forwarded_for"'; #access_log logs/access.log main; sendfile on; #tcp_nopush on; #keepalive_timeout 0; keepalive_timeout 65; gzip on; server { listen 80; server_name localhost; access_log logs/host.access.log; set $root_path '/laravel/public'; root $root_path; index index.php index.html index.htm; try_files $uri $uri/ @rewrite; location @rewrite { rewrite ^/(.*)$ /index.php?_url=/$1; } location ~ \.php { try_files $uri $uri/ /index.php?$query_string; fastcgi_pass 127.0.0.1:9000; fastcgi_index /index.php; fastcgi_param SCRIPT_FILENAME $root_path$fastcgi_script_name; include fastcgi_params; } error_page 404 /404.html; # redirect server error pages to the static page /50x.html error_page 500 502 503 504 /50x.html; location = /50x.html { root html; } # deny access to .htaccess files, if Apache's document root concurs with nginx's one #location ~ /\.ht { # deny all; #} } # another virtual host using mix of IP-, name-, and port-based configuration # #server { # listen 8000; # listen somename:8080; # server_name somename alias another.alias; # location / { # root html; # index index.html index.htm; # } #} # HTTPS server # #server { # listen 443 ssl; # server_name localhost; # ssl_certificate cert.pem; # ssl_certificate_key cert.key; # ssl_session_cache shared:SSL:1m; # ssl_session_timeout 5m; # ssl_ciphers HIGH:!aNULL:!MD5; # ssl_prefer_server_ciphers on; # location / { # root html; # index index.html index.htm; # } #}}
0 0
- Laravel 5.2配置Nginx服务器
- laravel 5.2 nginx 服务器配置
- centos下为laravel框架配置nginx服务器虚拟主机
- Nginx Laravel alias配置
- Laravel的Nginx配置
- laravel nginx 配置
- laravel 在nginx配置
- laravel nginx配置
- laravel nginx配置
- Laravel配置nginx环境
- nginx配置laravel
- nginx 配置 laravel
- nginx 配置 laravel
- nginx配置Laravel
- Laravel配置nginx环境
- Laravel -服务器配置-1
- Laravel -服务器配置-2
- laravel apache 服务器配置
- 168. Excel Sheet Column Title
- ZXActionView简单介绍
- gulp 实现 js、css,img 合并和压缩
- 3. Longest Substring Without Repeating Characters
- 线性结构总结(1)-基于链表的实现
- Laravel 5.2配置Nginx服务器
- java.lang.IllegalArgumentException: No view found for id 0x7f060000原因
- 笔试面试题9--指针和引用的区别
- 【SSH网上商城项目实战16】Hibernate的二级缓存处理首页的热门显示
- CSS 让页面内容居中显示
- KINECT+opencv(2)基于骨骼信息对视频进行动作识别
- 一种终端应用动态适配智能终端屏幕的方法及系统
- bestcoder 2016百度之星资格赛 1001 (逆元)
- hdu 3665