Categories
- FFMpeg (5)
- Libav (1)
- Google (3)
- iBeacon (1)
- LDAP (3)
- Me (2)
- Network (11)
- OS (149)
- RTMP (4)
- SIP (1)
- Kamailio (1)
- SNMP (1)
- VMware (20)
- VCP考試 (1)
- 伺服器 網站服務 (105)
- 名詞解釋 (4)
- 專案管理 (1)
- 工具軟體 (51)
- Adobe (1)
- FMS (1)
- Cloudera (1)
- Docker (1)
- Eclipse (4)
- Intellij (2)
- OBS (2)
- Office (10)
- Excel (4)
- PowerPoint (5)
- Postman (2)
- Splunk (13)
- Virtualbox (2)
- Visual Studio (2)
- 文字編輯器 (10)
- Sublime Text 2 (6)
- Sublime Text 3 (3)
- Vim (3)
- 連線工具 (1)
- Xshell (1)
- Adobe (1)
- 程式語言 (80)
- CSS (2)
- HTML (2)
- iOS (1)
- Java (30)
- JavaScript (5)
- jQuery (4)
- jsTree (2)
- JSP (3)
- PHP (16)
- Python (8)
- Ruby (1)
- sed (1)
- Shell Script (8)
- Windows Bash Script (1)
- XML (1)
- 資料庫 (37)
- FFMpeg (5)
Category Archives: Nginx
Xibo & Nginx-rtmp
20141226 更新 不要用這個~~因為不穩定~Orz 環境: Ubuntu 14.04.01 1. 安裝build deb需要的套件 apt-get install dpkg-dev 創建source code目錄 mkdir -p /usr/src/nginx cd /usr/src/nginx 透過apt-get下載nginx的source code apt-get source nginx 安裝git apt-get install git 透過git下載nginx-rtmp-module的source code git clone https://github.com/arut/nginx-rtmp-module.git 將rtmp、xlst模組功能加入設定檔中 cd nginx-1.4.6/ vim debian/rules common_configure_flags := … Continue reading
Posted in Nginx, Ubuntu, Xibo
Leave a comment
Nginx Proxy Setting…
因為 wisemapping 預設使用 8080 port etherpad 預設使用 9001 port 都很麻煩~~所以就使用 nginx proxy 幫忙轉址了 以下是測試很久的設定檔 location /pad { rewrite ^/pad(/.*)$ $1 break; proxy_pass http://localhost:9001/; proxy_set_header Host $host; proxy_buffering off; access_log /var/log/nginx/etherpad.log; error_log /var/log/nginx/etherpad.log; } location /map { #rewrite ^/map(/.*)$ $1 break; … Continue reading
Posted in etherpad, Nginx, Wisemapping
Leave a comment
Git Server 安裝 (New)
OS: Ubuntu 14.04 Server x64 安裝Gitlab + MySQL + Nginx 系統更新 apt-get update apt-get upgrade -y apt-get dist-upgrade 安裝基本需求 # 記得要先裝vim update-alternatives –set editor /usr/bin/vim.basic sudo apt-get install -y build-essential zlib1g-dev libyaml-dev libssl-dev libgdbm-dev libreadline-dev libncurses5-dev libffi-dev curl openssh-server redis-server … Continue reading
Posted in Git, Nginx, Ubuntu
Leave a comment
Nginx SSL Enable
環境: Ubuntu 14.04 x64 產生key root@Wordpress:/tmp# openssl genrsa -des3 -out site.key 2048 Generating RSA private key, 2048 bit long modulus ……………………..+++ ………………………………+++ e is 65537 (0x10001) Enter pass phrase for site.key: Verifying – Enter pass phrase for site.key: 2.產生 csr … Continue reading
Posted in Nginx, SSL, Ubuntu
Leave a comment
CentOS 快速安裝 Nginx with RTMP module
跟 之前裝在Ubuntu的那一篇 一樣 都是沒有設定stat的部分, 需要在另外修改 大致上跟Ubuntu的方式都相同 只是要注意的為 init script 可不可正常進行 測試的範例中是修改 nginx.conf 將 pid 那一行給取消註腳 pid logs/nginx.pid; #!/bin/sh yum groupinstall ‘Development Tools’ -y yum install pcre pcre-devel openssl-devel libxslt-devel -y cd /tmp wget http://nginx.org/download/nginx-1.7.3.tar.gz wget https://github.com/arut/nginx-rtmp-module/archive/master.zip tar -zxvf nginx-1.7.3.tar.gz yum … Continue reading
Posted in CentOS, Nginx, RTMP
Leave a comment
Nginx RTMP Module Stat
將 RTMP 模組檔案解壓縮後的 stat.xsl 複製到網頁目錄 wget https://github.com/arut/nginx-rtmp-module/archive/master.zip unzip master.zip cp nginx-rtmp-module-master/stat.xsl /usr/local/nginx/html/. 編輯 Nginx 設定檔,加入 stat 網頁設定 location /stat { rtmp_stat all; rtmp_stat_stylesheet stat.xsl; } location /stat.xsl { root html; } 重新讀取設定檔 連結網頁 http://[ip]/stat 參考 : https://github.com/arut/nginx-rtmp-module
Posted in Nginx, RTMP
Leave a comment
Nginx 存取設定 – http_auth_basic_module
編輯檔案 /usr/local/nginx/conf/nginx.conf for http 模組 location / { satisfy any; # satisfy 滿足條件 # satisfy [all | any] # satisfy all => 下列條件都要滿足 # satisfy any => 下列條件只要任一滿足就可以 # 此處用到 http_access_module 及 http_auth_basic_module 兩個 # 所以設定為any~任一滿足即可 root html; index index.html … Continue reading
Posted in Nginx
Leave a comment
Nginx 存取設定
檔案 /usr/local/nginx/conf/nginx.conf #在 http 模組下 location / { root html; index index.html index.htm; # allowed ip list allow 192.168.0.0/24; #deny ip list deny all; } location /obs-remote { root html; index index.html index.htm; # allowed ip list allow 192.168.0.0/24; #deny … Continue reading
Posted in Nginx
Leave a comment
Ubuntu x64 快速安裝 Nginx with RTMP module
#!/bin/sh apt-get install build-essential libpcre3 libpcre3-dev libssl-dev libxslt-dev -y cd /tmp wget http://nginx.org/download/nginx-1.7.3.tar.gz wget https://github.com/arut/nginx-rtmp-module/archive/master.zip tar -zxvf nginx-1.7.3.tar.gz apt-get install unzip -y unzip master.zip cd nginx-1.7.3/ ./configure –with-http_ssl_module –with-http_xslt_module –add-module=../nginx-rtmp-module-master make make install cp /tmp/nginx-rtmp-module-master/stat.xsl /usr/local/nginx/html/ cp /usr/local/nginx/conf/nginx.conf /usr/local/nginx/conf/nginx.conf.bak echo … Continue reading
Posted in Nginx, Ubuntu
Leave a comment
Nginx init script (Ubuntu)
將下列內容貼到 /etc/init.d/nginx 中,並且使用 chmod +x nginx 調整屬性 #! /bin/sh ### BEGIN INIT INFO # Provides: nginx # Required-Start: $all # Required-Stop: $all # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: starts the nginx web server … Continue reading