Created
December 11, 2012 12:01
-
-
Save anonymous/4258042 to your computer and use it in GitHub Desktop.
This file contains 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
worker_processes 1; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
include mime.types; | |
default_type application/octet-stream; | |
sendfile on; | |
keepalive_timeout 0; | |
server { | |
listen 80; | |
gzip off; | |
expires off; | |
error_log /usr/local/Cellar/nginx/1.2.5/logs/error.log debug; | |
location /static/ { | |
add_header X-Static hit; | |
autoindex on; | |
expires off; | |
root /Users/andrewshkovskii/workspace/ip_pbx/; | |
} | |
location / { | |
proxy_pass http://localhost:8000; | |
rewrite ^/audiofiles/get/(\d+)/ /audiofiles/serve/$1/ last; | |
} | |
location ~ /var/ip_pbx/users_andrewshkovskii/(\d+)/(audio|calls)/(.*) { | |
internal; | |
root /; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment