markdown-renderer/nginx.conf

30 lines
681 B
Nginx Configuration File
Raw Normal View History

2013-11-02 15:07:52 +00:00
worker_processes 1;
events {
worker_connections 1024;
}
http {
server {
listen 8001;
server_name localhost;
location / {
root /Users/wangyi/Projects/markdown-renderer/src/github.com/wangkuiyi/markdown-renderer;
index README.md;
2013-11-02 15:07:52 +00:00
}
location ~ \.md$ {
proxy_pass http://localhost:8002; # Markdown Renderer server.
}
}
server {
listen 8003;
server_name localhost; # Markdown source loader server.
location / {
root /Users/wangyi/Projects/markdown-renderer/src/github.com/wangkuiyi/markdown-renderer;
2013-11-02 15:07:52 +00:00
}
}
}