Quantcast
Channel: BlogJava-我是void-随笔分类-Nginx
Browsing latest articles
Browse All 4 View Live

Image may be NSFW.
Clik here to view.

Nginx 简单的负载均衡配置示例

www.s135.com 和 blog.s135.com 域名均指向 Nginx 所在的服务器IP。   用户访问http://www.s135.com,将其负载均衡到192.168.1.2:80、192.168.1.3:80、192.168.1.4:80、192.168.1.5:80四台服务器。...

View Article



Image may be NSFW.
Clik here to view.

Nginx + SSL 配置

安装nginx之前先安装 openssl 和 openssl-devel 编译nginx时使用 --with-http_ssl_module 就可以支持SSL了 然后需要生成服务器证书,没钱就用openssl自己作一个    openssl req -new -x509 -nodes -out eglic.crt -keyout eglic.key 增加一个虚拟主机 server {  listen...

View Article

Image may be NSFW.
Clik here to view.

用nginx+tomcat来代替apache+jk+tomcat

vi /usr/local/nginx/conf/nginx.conf  给出一些主要更改的地方  user  nobody nobody;  worker_processes  2;  error_log  logs/error.log  notice;  pid        logs/nginx.pid;  events {      worker_connections  1024;  }...

View Article

Image may be NSFW.
Clik here to view.

一个简单的负载均衡的示例

== 一个简单的负载均衡的示例,把www.domain.com均衡到本机不同的端口,也可以改为均衡到不同的地址上。 == <pre> http { : upstream myproject { : server 127.0.0.1:8000 weight=3; : server 127.0.0.1:8001; : server 127.0.0.1:8002; : server...

View Article
Browsing latest articles
Browse All 4 View Live




Latest Images

Pangarap Quotes

Pangarap Quotes

Vimeo 10.7.0 by Vimeo.com, Inc.

Vimeo 10.7.0 by Vimeo.com, Inc.

HANGAD

HANGAD

MAKAKAALAM

MAKAKAALAM

Doodle Jump 3.11.30 by Lima Sky LLC

Doodle Jump 3.11.30 by Lima Sky LLC