Category Archives: Nginx

Xibo & Nginx-rtmp

20141226 更新 不要用這個~~因為不穩定~Orz 環境: Ubuntu 14.04.01 1. 安裝build deb需要的套件

創建source code目錄

透過apt-get下載nginx的source code

安裝git

透過git下載nginx-rtmp-module的source code

將rtmp、xlst模組功能加入設定檔中

安裝nginx的相依性套件

建置nginx deb

安裝編譯後的檔案

安裝php5-fpm、mysql-server、php5-mysql

修改nginx default site設定,加入php功能及相關host

修改nginx設定,加入rtmp模組

重新啟動

Continue reading

Posted in Nginx, Ubuntu, Xibo | Leave a comment

Nginx Proxy Setting…

因為 wisemapping 預設使用 8080 port etherpad 預設使用 9001 port 都很麻煩~~所以就使用 nginx proxy 幫忙轉址了 以下是測試很久的設定檔

配合這個設定 etherpad 需要設定 {etherpad home directory}/settings.json

wisemapping 要設定的地方比較多…. {wisemapping home directory}/webapps/wisemapping/WEB-INF/app.properties

{wisemapping home directory}/contexts/wisemapping.xml

Posted in etherpad, Nginx, Wisemapping | Leave a comment

Git Server 安裝 (New)

OS: Ubuntu 14.04 Server x64 安裝Gitlab + MySQL + Nginx 系統更新

安裝基本需求

安裝python

安裝Git

安裝Ruby

新增Gitlab系統帳號

安裝GitLab Shell

安裝MySQL Database

安裝GitLab

設定GitLab

GitLab DB設計

安裝Gems

初始化 Database

Continue reading

Posted in Git, Nginx, Ubuntu | Leave a comment

Nginx SSL Enable

環境: Ubuntu 14.04 x64 產生key

2.產生 csr

cat csr,貼至申請處

這裡一樣以namecheap的comodo ssl為例,會收到下面四個檔案 伺服器類型選nginx AddTrustExternalCARoot.crt COMODORSAAddTrustCA.crt COMODORSADomainValidationSecureServerCA.crt cowman_ip.crt 產生 ssl-bundle.crt

移除需要輸入 phase 的機制

修改 nginx 設定檔,位置在 /etc/nginx/sites-enabled/default,這裡把設定檔整併在server中

重新啟動 nginx

Posted in Nginx, SSL, Ubuntu | Leave a comment

CentOS 快速安裝 Nginx with RTMP module

跟 之前裝在Ubuntu的那一篇 一樣 都是沒有設定stat的部分, 需要在另外修改 大致上跟Ubuntu的方式都相同 只是要注意的為 init script 可不可正常進行 測試的範例中是修改 nginx.conf 將 pid 那一行給取消註腳

Posted in CentOS, Nginx, RTMP | Leave a comment

Nginx RTMP Module Stat

將 RTMP 模組檔案解壓縮後的 stat.xsl 複製到網頁目錄

編輯 Nginx 設定檔,加入 stat 網頁設定

重新讀取設定檔 連結網頁 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 模組

安裝 apache2-utils

產生 htpasswd 檔案

reload nginx conf就可以了~

Posted in Nginx | Leave a comment

Nginx 存取設定

檔案 /usr/local/nginx/conf/nginx.conf

修改後,執行 service nginx reload 重 load 設定檔 這邊都是設定 192.168.0.0/24 的 Lan 內才能觀看

Posted in Nginx | Leave a comment

Ubuntu x64 快速安裝 Nginx with RTMP module

Posted in Nginx, Ubuntu | Leave a comment

Nginx init script (Ubuntu)

將下列內容貼到 /etc/init.d/nginx 中,並且使用 chmod +x nginx 調整屬性

Posted in Nginx, Ubuntu | 1 Comment