笔记链接:
http://librae.github.io/work-notes/WebDevelopment.html邀请码链接:
https://www.digitalocean.com/?refcode=2e28a792021d笔记摘要:
Deploy An Nginx Server
======================
Refer to official site:
http://wiki.nginx.org/Install Brief:
apt-get install nginx
To control: nginx -s [ stop | quit | reopen | reload ]
Configuration files are placed in /etc/nginx/:
sites-enabled/ and conf.d/* will be included in nginx.conf
And sites-available/ is used for customization, linked as symbol into sites-enabled/.
1. Basic http server example
2. Basic forward proxy example
Deploy A Docker for Discourse on DO
===================================
Refer to official tutorial:
https://github.com/discourse/discourse/blob/master/docs/INSTALL-digital-ocean.md To use it along with Nginx, we need below extra steps since default 80 port is occupied already:
1. Modify /var/docker/containers/app.yml
## which TCP/IP ports should this container expose?
expose:
- "4578:80" # fwd host port 4578 to container port 80 (http)
- "2222:22" # fwd host port 2222 to container port 22 (ssh)
2. Add a conf for Nginx to tell him to forward specific request to port 4578.
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
https://www.v2ex.com/t/126126
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.