1. 程式人生 > >nginx開啟IPV6支援配置

nginx開啟IPV6支援配置

IPV4日益稀缺,ipv6已經慢慢走上日程,待ipv6在國內普及,使用nginx配置ipv6那是肯定的,看看如何讓nginx支援ipv6以及配置.

檢視nginx是否支援ipv6

1234# /usr/local/nginx-1.7.0/sbin/nginx -Vnginx version:nginx/1.7.0built by gcc4.4.720120313(Red Hat4.4.7-3)(GCC)configure arguments:--prefix=/usr/local/nginx-1.7.0--with-http_stub_status_module

沒有出現--with-ipv6,說明當前的nginx不支援ipv6,所以我們需要重新編譯nginx,配置裡面增加--with-ipv6,具體怎麼安裝,我不在囉嗦了。

同時監聽IPV4和IPV6

1 2 3 4 5 server{ .... listen[::]:80; ... }

只監聽IPV6

12345server{....listen[::]:80defaultipv6only=on;...}

監聽指定IPV6地址

1 2 3 4 5 server{ .... listen[3608:f0f0:3002:31::1]:80; ... }

重啟nginx

1 /usr/local/nginx-1.7.0/sbin/nginx-sreload

相關推薦

nginx開啟IPV6支援配置

IPV4日益稀缺,ipv6已經慢慢走上日程,待ipv6在國內普及,使用nginx配置ipv6那是肯定的,看看如何讓nginx支援ipv6以及配置. 檢視nginx是否支援ipv6 1234# /usr/local/nginx-1.7.0/sbin/nginx -Vn

阿里雲Centos7 IPV6 支援配置

阿里雲公開的 CentOS 映象將 IPv6 支援給去掉了,需要載入相關模組1.修改 /etc/modprobe.d/disable_ipv6.conf裡面的options ipv6 disable=0,其他配置不動。2.修改 /etc/sysconfig/network裡面

LINUX nginx使用ssl模組配置HTTPS支援

預設情況下ssl模組並未被安裝,如果要使用該模組則需要在編譯時指定–with-http_ssl_module引數,安裝模組依賴於OpenSSL庫和一些引用檔案,通常這些檔案並不在同一個軟體包中。通常這個檔名類似libssl-dev。 生成證書 可以通過以下步驟生成一個

Nginx開啟SSI模組以支援SHTML及include檔案引入

SSI 是 Server Side Include 的首字母縮略詞。包含有嵌入式伺服器方包含命令的 HTML 文字。在被傳送給瀏覽器之前,伺服器會對 SHTML 文件進行完全地讀取、分析以及修改。

Nginx使用ssl模組配置HTTPS支援

預設情況下ssl模組並未被安裝,如果要使用該模組則需要在編譯時指定–with-http_ssl_module引數。 1.安裝基礎支援包 yum -y install openssl openssl-devel 2.備份原nginx.conf檔案為nginx.conf.bak

Linux JDK Tomcat Nginx MariaDB 安裝,Nginx 多域名轉發配置

ora mysql 功能 with -o arch nobody case root用戶登錄 安裝JDK rpm包下載地址(jdk-7u17 ): http://www.oracle.com/technetwork/java/javase/downloads/java-a

phpfpm開啟pm.status_path配置,查看fpm狀態參數

訪問 參數 name rip 開啟 狀態 stc -s fas php-fpm配置 pm.status_path = /phpfpm_status nginx配置 server { root /data/www; listen 80;

傻瓜式安裝nginx以及負載均衡配置

welcom font ron nginx c++ ima 端口 .cn alt 概述 需求 做了一個對內的http api應用。由於只有一臺服務器,考慮到升級問題(即升級時會造成幾秒鐘用戶訪問不了),決定搭一個nginx,公共端口:9999,部署

PHP+FastCGI+Nginx動態請求處理配置

oca oot 主動 index.php php 靜態頁面 nginx安裝 結果 web Nginx不支持對外部程序的調用,所以必須通過FastCGI接口實現對外部程序的調用從而實現對client動態頁面請求的處理。 CGI的

nginx訪問日誌 logstash 配置文件實例2

windows 配置文件 request statuslog 日誌格式: log_format elk "$http_clientip | $http_x_forwarded_for | $time_local | $request | $status | $body_bytes_sent |

nginx訪問日誌 logstash 配置文件實例1

logstash日誌格式: log_format usgateway ‘$http_clientip\t$http_ServiceName\t$http_uid\t$http_sid\t[$time_local]‘ ‘\t$reques

Nginx(五)-- 配置文件之Rewrite

log 技術分享 判斷 placement ble png per 大小寫 遠程 Rewrite支持URL重寫 1.常用指令以及語法   1) if指令    if語法: if 空格 (condition) {}    條件:    1. &ld

nginx的安裝與配置

nginx一、最小化安裝的最新服務器環境初始化 1、安裝wget : yum install -y wget 2、替換yum原:cd /etc/yum.repos.d/ wget http://mirrors.163.com/.help/CentOS7-Base

nginx負載均衡簡單配置

.org star gin def lis down pes timeout install nginx負載均衡簡單配置準備三臺虛擬機來做這個實驗:172.16.160.99 web服務器172.16.160.103 web服務器172.16.160

nginx虛擬域名的配置以及測試驗證

control dir 技術分享 include 機器 dex con host class 1.保證該機器上安裝了nginx 未安裝請看:centos/linux下的安裝Nginx 2.使用root用戶編輯配置文件 vim /usr/local/nginx/conf/n

Nginx筆記02-nginx常用參數配置說明

win 事件驅動 出現 有客 display 只需要 byte 系統資源 spa nginx的主配置文件是nginx.conf,這裏主要針對這個文件進行說明 1.主配置文件nginx.conf 2.nginx配置文件的結構 從上面的配置文件中我們可以總結出nginx

12.13 Nginx防盜鏈 12.14 Nginx訪問控制 12.15 Nginx解析php相關配置 12.16 Nginx代理

12.13 nginx防盜鏈 12.14 nginx訪問控制 12.15 nginx解析php相關配置 12.16 nginx代理- 12.13 Nginx防盜鏈 - 12.14 Nginx訪問控制 - 12.15 Nginx解析php相關配置 - 12.16 Nginx代理 - 擴展 - 502問題匯總

Nginx 之 全局配置段介紹

nginx main 配置1 概述Nginx的配置段不一樣,同一指令的用法不一樣。關於nginx更詳細的配置,可以查看官方幫助文檔http://nginx.org/en/docs/,本文將介紹全局配置段常見的配置指令2 全局配置段 Main 全局配置段常見的配置指令分類:.正常運行必備的配置.優化性能

Nginx軟件部署配置過程

default nginx -t ble index devel itl eve clu 狀態碼 ---恢復內容開始--- 註意:博主使用的系統為: [root@web01 ~]# uname -a Linux web01 2.6.32-696.el6.x86_64 #1

nginx http 與 https 配置

nginx http https 配置域名:qps.ribuncdn.cnnginx http 配置(80端口),請求proxy 到2臺serverlog_format qps_access ‘ $remote_addr $time_iso8601 $server_port $request