Nginx.conf 配置文件标准配置。
来源:互联网 发布:模拟化学实验软件 编辑:程序博客网 时间:2024/06/01 10:25
<span style="font-size:10px;"></pre><pre name="code" class="php">#user nobody;worker_processes 1;#error_log logs/error.log;#error_log logs/error.log notice;#error_log logs/error.log info;#error_log /usr/local/var/log/nginx/error.log warn;#pid logs/nginx.pid;#pid /usr/local/var/run/nginx.pid;events { worker_connections 256;}http { include mime.types; default_type application/octet-stream; #kaiqi-default #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; #access_log /usr/local/var/log/nginx/access.log main; sendfile on; #tcp_nopush on; #keepalive_timeout 0; keepalive_timeout 65; #gzip on; client_max_body_size 10m; server { listen 8080; server_name localhost; #charset koi8-r; #access_log logs/host.access.log main; location / { root /usr/local/var/www; index index.html index.htm; } #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; } # proxy the PHP scripts to Apache listening on 127.0.0.1:80 # #location ~ \.php$ { # proxy_pass http://127.0.0.1; #} # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 # location ~ \.php$ { root /usr/local/var/www; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } # 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; # } #} server { listen 8081; server_name develop.com; #access_log logs/host.access.log main; location / { root /usr/local/var/www/develop; index index.php index.html index.htm; } #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; #} # proxy the PHP scripts to Apache listening on 127.0.0.1:80 # #location ~ \.php$ { # proxy_pass http://127.0.0.1; #} # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 # location ~ \.php$ { root /usr/local/var/www/develop; fastcgi_pass 127.0.0.1:9000; index index.php fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } # deny access to .htaccess files, if Apache's document root # concurs with nginx's one # #location ~ /\.ht { # deny all; #} } server { listen 8082; server_name phpmyadmin.com; #access_log logs/host.access.log main; location / { root /usr/local/var/www/phpmyadmin; index index.php index.html index.htm; } #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; #} # proxy the PHP scripts to Apache listening on 127.0.0.1:80 # #location ~ \.php$ { # proxy_pass http://127.0.0.1; #} # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 # location ~ \.php$ { root /usr/local/var/www/phpmyadmin; fastcgi_pass 127.0.0.1:9000; index index.php fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } # deny access to .htaccess files, if Apache's document root # concurs with nginx's one # #location ~ /\.ht { # deny all; #} } include servers/*; #include /usr/local/etc/nginx/conf.d/*.conf;}</span>
0 0
- Nginx.conf 配置文件标准配置。
- Nginx配置文件(nginx.conf)配置详解
- Nginx配置文件(nginx.conf)配置详解
- Nginx配置文件(nginx.conf)配置详解
- nginx配置文件(nginx.conf)配置详解
- Nginx配置文件(nginx.conf)配置详解
- Nginx配置文件(nginx.conf)详细配置
- Nginx配置文件(nginx.conf)配置详解
- Nginx的配置文件nginx.conf配置详解
- Nginx配置文件(nginx.conf)配置详解
- Nginx配置文件(nginx.conf)配置详解
- Nginx配置文件(nginx.conf)配置详解
- Nginx的配置文件nginx.conf配置详解
- Nginx配置文件(nginx.conf)配置详解
- Nginx配置文件(nginx.conf)配置详解
- Nginx配置配置文件nginx.conf的设置
- Nginx配置文件(nginx.conf)配置详解
- Nginx配置文件(nginx.conf)配置详解
- Activity、Task、应用和进程
- docker端口映射冲突管理
- HTML5+JS手机web开发之jQuery Mobile初涉
- 打造自己的windows一键安装系统
- springMVC入门---简单开发步骤
- Nginx.conf 配置文件标准配置。
- centos安装jdk1.7
- 依赖注入是控制反转的一种实例,也叫反射,运行时从配置文件字符串来创建类,插件思想降低耦合度
- hbase1.2安装配置
- photoshop自学笔记
- Html5 圣诞节动态下雪页面雪花飘落代码
- Docker初学
- Tyvj P1305 最大子序和
- C++中ANSI、Unicode、UTF8字符串之间的互转