user www www;
worker_processes 8;
error_log /data1/logs/nginx_error.log crit;
pid /usr/local/webserver/nginx/nginx.pid;
#Specifies the value for maximum file descriptors that can be opened by this process.
worker_rlimit_nofile 65535;
events
{
use epoll;
worker_connections 65535;
}
http
{
include mime.types;
default_type application/octet-stream;
#charset utf8;
server_names_hash_bucket_size 128;
client_header_buffer_size 32k;
large_client_header_buffers 4 32k;
client_max_body_size 8m;
sendfile on;
tcp_nopush on;
keepalive_timeout 60;
tcp_nodelay on;
fastcgi_connect_timeout 300;
fastcgi_send_timeout 300;
fastcgi_read_timeout 300;
fastcgi_buffer_size 64k;
fastcgi_buffers 4 64k;
fastcgi_busy_buffers_size 128k;
fastcgi_temp_file_write_size 128k;
gzip on;
gzip_min_length 1k;
gzip_buffers 4 16k;
gzip_http_version 1.0;
gzip_comp_level 2;
gzip_types text/plain application/x-javascript text/css application/xml;
gzip_vary on;
#limit_zone crawler $binary_remote_addr 10m;
server {
listen 80;
server_name 192.168.1.107;
index index.html index.htm index.php;
root /data0/htdocs/www;
log_format wwwlogs '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" $http_x_forwarded_for';
access_log /data1/logs/wwwlogs.log wwwlogs;
#setting for magento
location ~* /magento/(.*)\.(png|gif|jpg|jpeg|css|js|swf|ico)$ {
access_log off;
expires 30d;
}
location ~* ^/magento/js/index.php {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_param SCRIPT_FILENAME /data0/htdocs/www$fastcgi_script_name;
include fastcgi_params;
access_log off;
expires 30d;
}
location ~* ^/website/js/index.php {
fastcgi_pass 192.168.0.111:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_param SCRIPT_FILENAME /data0/htdocs/www$fastcgi_script_name;
include fastcgi_params;
access_log off;
expires 30d;
}
location ~* ^/magento {
if (!-e $request_filename) {
rewrite ^(.+)$ /magento/index.php last;
}
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_param SCRIPT_FILENAME /data0/htdocs/www$fastcgi_script_name;
include fastcgi_params;
}
location /magento/app/etc {
deny all;
}
# catch rewritten and standard URLs
location ~* ^(/index.php)?(.*) {
#fastcgi_pass unix:/tmp/php-cgi.sock;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fcgi.conf;
}
}
}
http://hi.baidu.com/supermfc/blog/item/5ea99efcf045a7f1fd037f37.html
http://www.fengyn.com/article/fuwuqi/UNIX-LINUX/201003/12-929.html
分享到:
相关推荐
nginx_php_magento配置文件
Magento的默认Nginx配置 演示: : 获取云服务器:在 马真托Magento最高1.9.x 默认的magento配置/单个或多个存储 magento2 Magento> 2.x 默认的magento配置/单个或多个存储 magento-proxy_pass Magento最高1.9.x ...
Magento-Vagrant-Puppet-Nginx 安装次数 Magento MySQL PHP PHP-FPM Nginx的 n98-玛格伦 设置 git submodule init git submodule update vagrant up 修改人偶/清单/base.pp class { "magento" : install_...
Magento2x-Ubuntu-Nginx 如何使用Nginx在Ubuntu上安装Magento 2.3x或2.4x。 开发环境: Magento 2.3x / 2.4x nginx/1.14.x PHP 7.2x -7.4x MySQL 5.7-8x Ubuntu 18.04-20.04 步骤1:安装服务器。 - cat /etc/...
Magento2x-OSX-Nginx 如何安装Magento 2x Mac或OSX,Nginx,MySQL,PHP(MEMP堆栈) 我的开发环境: Magento 2.3.x nginx/1.14.x PHP 7.2.x MySQL 5.7 macOS/OSX :10.13.6我将向所有人展示最佳实践,即如何使用Nginx...
Chapter 1, Installing Magento 2 on Apache and NGINX, is a totally different ballgame compared to Magento 1. Where Magento 1 could be installed through FTP or SSH, Magento 2 is installable only via the...
Magento 2.2.2 Centmin Mod Nginx LEMP堆栈安装指南 目录 介绍 此Magento 2.2.2安装指南由George Liu(eva2000)编写,不提供任何支持,并且是专门为在运行Nginx 1.13分支并通过PHP的Centmin Mod 123.09beta01或更高...
Magento 2码头工人 Docker映像的集合,用于通过nginx和在命令行上运行Magento 2。快速开始cp composer.env.sample composer.env# ..put the correct tokens into composer.envmkdir magentodocker-compose run cli ...
Chapter 1, Installing Magento 2 on Apache and NGINX, is a totally different ballgame compared to Magento 1. Where Magento 1 could be installed through FTP or SSH, Magento 2 is installable only via the...
magento2-server-configuration:Magento 2服务器配置-PHP7,Nginx,Postfix
NginxCloudConfig Magento 2 AWS云配置(Nginx)
Magento DockerLab Magento 2的开发环境。... Nginx的 MySQL(您也可以使用MariaDB和Percona) 雷迪斯 RabbitMQ与RabbitMQ管理 MailHog 弹性搜索 Kibana(用于ElasticSearch中的数据可视化) 兼容性 Linux 先决条
作曲家包arvatoscm / dockerize-magento2展开时搬运工人基础确定指标文件,如到你的Magento 2根文件夹,使您能够承载你的Magento 2店,而无需在系统上安装Apache / Nginx的,MySQL或PHP。 包裹名字 arvatoscm/...
vagrant-nginx-php5-fpm-mysql-redis-magento Vagrantfile for Ubuntu + Nginx + PHP5-FPM + Redis + Mysql +Magento + 可选的 Magento 示例数据 域名: 项目文件夹:/var/www/project 数据库名称:project_name...
NGINX 配置生成器,功能: HTTPS、HTTP/2、IPv6、certbot、HSTS、安全标头、SSL 配置文件、OCSP 解析器、缓存、gzip、brotli、后备路由、反向代理、www/非 www 重定向、CDN、PHP(TCP/socket、 WordPress、Drupal、...
使用Docker-Compose工具在多容器架构上使用Varnish Cache,Redis和Nginx SSL终止来优化Magento 2。 该存储库对应于博客提到的体系结构设置。 Docker-撰写工具 如Docker文档中所述,Compose是用于定义和运行多容器...
它包含预打包的Docker映像,为您提供了一个绝佳的开发环境,而无需在本地计算机上安装PHP,NGINX,MySQL和任何其他软件。 策略: 让我们看看如何使用它来安装NGINX , PHP , Composer , MySQL和Redis ,并运行...
Magento 食谱安装 nginx、php-fpm 并配置 vhost 以正确运行 Magento 应用程序。构建状态 下一个发布分支 当前稳定版本支持的操作系统Ubuntu 12.04、13.02 CentOS 6.3、6.4、6.5 Debian 7.4
Magento2的快速虚拟机 要求 虚拟箱 是一个开源虚拟机,可以在其自己的虚拟机中运行整个操作系统的应用程序。 稳定版本> = 5.2.0 使用下面的链接下载适用于笔记本电脑操作系统的安装程序。 运行安装程序,选择所有...
Magento $ cd /project$ bash ./setup-work.sh访问键$ cd /project$ docker-compose up现在,转到: