- 多种应用:反向绑定域名的方法-强制绑定域名,实现负载均衡,域名内网转发;
- 简单操作:反向绑定域名方法-Nginx反向配置和kangle服务器反向设置;
- 虚拟主机:7ghost基于PHP的网站反向绑定域名程序无需.htaccess的URL重写。
- wget http://sysoev.ru/nginx/nginx-0.7.64.tar.gz
- tar zxvf nginx-0.7.64.tar.gz
- cd nginx-0.7.64
- ./configure --user=www --group=www --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-ipv6
- make && make install
- git clone https://github.com/yaoweibin/ngx_http_substitutions_filter_module.git
- ./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-http_gzip_static_module --with-ipv6 --add-module=/root/nginx-0.7.64/ngx_http_substitutions_filter_module
- make && make install
- /usr/sbin/groupadd -f www
- /usr/sbin/useradd -g www www
- /usr/local/nginx/sbin/nginx
- cd /tmp
- git clone git://github.com/yaoweibin/ngx_http_substitutions_filter_module.git # nginx 的过滤器模块(比http_sub_module更加灵活)
- wget http://nginx.org/download/nginx-1.7.7.tar.gz
- tar -xzvf nginx-1.7.7.tar.gz
- cd /tmp/nginx-1.7.7
- ./configure \
- --prefix=/www/wdlinux/nginx \ # 安装位置
- --with-http_ssl_module \
- --with-http_sub_module \
- --with-http_gzip_static_module \
- --with-http_stub_status_module \
- --add-module=/tmp/ngx_http_substitutions_filter_module # 添加nginx过滤器模块
- make & make install
- yum -y install gcc automake autoconf libtool make
- yum install gcc gcc-c++
- cd /usr/local/src
- wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.34.tar.gz
- tar -zxvf pcre-8.34.tar.gz
- cd pcre-8.34
- ./configure
- make
- make install
- cd /usr/local/src
- wget http://zlib.net/zlib-1.2.8.tar.gz
- tar -zxvf zlib-1.2.8.tar.gz
- cd zlib-1.2.8
- ./configure
- make
- make install
- cd /usr/local/src
- wget http://www.openssl.org/source/openssl-1.0.1c.tar.gz
- tar -zxvf openssl-1.0.1c.tar.gz
- cd /usr/local/src
- wget http://nginx.org/download/nginx-1.4.2.tar.gz
- tar -zxvf nginx-1.4.2.tar.gz
- cd nginx-1.4.2
- git clone https://github.com/yaoweibin/ngx_http_substitutions_filter_module.git
- ./configure --sbin-path=/usr/local/nginx/nginx \
- --conf-path=/usr/local/nginx/nginx.conf \
- --pid-path=/usr/local/nginx/nginx.pid \
- --with-http_ssl_module \
- --with-http_sub_module \
- --with-http_gzip_static_module \
- --with-http_stub_status_module \
- --with-pcre=/usr/local/src/pcre-8.34 \
- --with-zlib=/usr/local/src/zlib-1.2.8 \
- --add-module=/usr/local/src/nginx-1.4.2/ngx_http_substitutions_filter_module \
- --with-openssl=/usr/local/src/openssl-1.0.1c
- make
- make install
- /usr/local/nginx/nginx
欢迎光临 冠富商务通中文社区 (http://gu1vhwx.nat.ipyingshe.com/news/) | Powered by Discuz! 3.0 |