Created
July 11, 2014 01:48
-
-
Save algo31031/d5d0ba5e6e66eedfa5b5 to your computer and use it in GitHub Desktop.
aidou nginx config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#user nobody; | |
worker_processes 1; | |
#error_log logs/error.log; | |
#error_log logs/error.log notice; | |
#error_log logs/error.log info; | |
#pid logs/nginx.pid; | |
events { | |
worker_connections 1024; | |
} | |
rtmp { | |
server{ | |
listen 1935; | |
chunk_size 4000; | |
application vmms_live { | |
live on; | |
on_connect 'http://v.edeohub.com/live_authen'; | |
on_play 'http://v.edeohub.com/live_play'; | |
on_done 'http://v.edeohub.com/live_done'; | |
} | |
application vmms_vod { | |
on_connect 'http://v.edeohub.com/episode_authen'; | |
play /home/gaominglun/vmms/public; | |
on_play 'http://v.edeohub.com/episode_play'; | |
on_done 'http://v.edeohub.com/episode_done'; | |
} | |
application vmms_mavod { | |
on_connect 'http://v.edeohub.com/admin_episode_authen'; | |
play /home/gaominglun/vmms/public; | |
on_play 'http://v.edeohub.com/episode_play'; | |
on_done 'http://v.edeohub.com/episode_done'; | |
} | |
application vmms_hls_vod{ | |
hls on; | |
hls_path /home/gaominglun/vmms/public; | |
hls_fragment 15s; | |
} | |
application test { | |
live on; | |
push img2.edeohub.com; | |
} | |
} | |
} | |
http { | |
passenger_root /home/gaominglun/.rvm/gems/ruby-1.9.3-p125/gems/passenger-3.0.17; | |
passenger_ruby /home/gaominglun/.rvm/wrappers/ruby-1.9.3-p125/ruby; | |
include mime.types; | |
default_type application/octet-stream; | |
#log_format main '$remote_addr - $remote_user [$time_local] "$request" ' | |
# '$status $body_bytes_sent "$http_referer" ' | |
# '"$http_user_agent" "$http_x_forwarded_for"'; | |
#access_log logs/access.log main; | |
sendfile on; | |
#tcp_nopush on; | |
#keepalive_timeout 0; | |
keepalive_timeout 65; | |
client_max_body_size 1024M; | |
server { | |
listen 80; | |
server_name v.edeohub.com; | |
passenger_enabled on; | |
root /home/gaominglun/vmms/public; | |
location ~ ^/system/episodes/videos/.*.(flv|mp4)$ { | |
internal; | |
} | |
mp4_buffer_size 1m; | |
} | |
# server { | |
# listen 80; | |
# server_name www.edeohub.com; | |
# passenger_enabled on; | |
# root /home/gaominglun/vmms/public; | |
# location /system/episodes/pics/ { | |
# alias /system/episodes/videos/; | |
# internal; | |
# } | |
# | |
# mp4_buffer_size 1m; | |
# } | |
server { | |
listen 80; | |
server_name www.edeohub.com; | |
passenger_enabled on; | |
root /home/gaominglun/fake_edeohub/public; | |
} | |
server { | |
listen 8080; | |
location /stat { | |
rtmp_stat all; | |
rtmp_stat_stylesheet stat.xsl; | |
} | |
location /stat.xsl { | |
root /home/gaominglun/vmms/public/stat.xsl/; | |
} | |
} | |
server { | |
listen 80; | |
server_name edeohub.com; | |
rewrite ^(.*) http://www.edeohub.com$1 permanent; | |
} | |
# server { | |
# listen 80; | |
# server_name v.cnpm.cn; | |
# passenger_enabled on; | |
# root /home/gaominglun/huaxia/public; | |
# error_page 500 502 503 504 /50x.html; | |
# location = /50x.html { | |
# root html; | |
# } | |
# location /assets/episodes/videos/ { | |
# internal; | |
# } | |
# } | |
# server { | |
# listen 80; | |
# server_name project.cnpm.cn; | |
# passenger_enabled on; | |
# root /home/gaominglun/basecamp_huaxia/public; | |
# error_page 500 502 503 504 /50x.html; | |
# location = /50x.html { | |
# root html; | |
# } | |
# } | |
server { | |
listen 80; | |
server_name issue.cnpm.cn; | |
passenger_enabled on; | |
root /home/gaominglun/issue_huaxia/public; | |
error_page 500 502 503 504 /50x.html; | |
location = /50x.html { | |
root html; | |
} | |
} | |
server { | |
listen 80; | |
server_name constructorchina.com; | |
rewrite ^(.*) http://www.constructorchina.com$1 permanent; | |
} | |
server { | |
listen 80; | |
server_name www.constructorchina.com; | |
passenger_enabled on; | |
root /home/gaominglun/constructor/public; | |
error_page 500 502 503 504 /50x.html; | |
location = /50x.html { | |
root html; | |
} | |
} | |
# another virtual host using mix of IP-, name-, and port-based configuration | |
# | |
#server { | |
# listen 8000; | |
# listen somename:8080; | |
# server_name somename alias another.alias; | |
# location / { | |
# root html; | |
# index index.html index.htm; | |
# } | |
#} | |
# HTTPS server | |
# | |
#server { | |
# listen 443; | |
# server_name localhost; | |
# ssl on; | |
# ssl_certificate cert.pem; | |
# ssl_certificate_key cert.key; | |
# ssl_session_timeout 5m; | |
# ssl_protocols SSLv2 SSLv3 TLSv1; | |
# ssl_ciphers HIGH:!aNULL:!MD5; | |
# ssl_prefer_server_ciphers on; | |
# location / { | |
# root html; | |
# index index.html index.htm; | |
# } | |
#} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment