最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
nodejs绑定网站域名的开发例子
时间:2014-04-23 编辑:简简单单 来源:一聚教程网
博客 (http://www.111com.net ) 用的nodejs,端口3000,在线工具 (http://code.111com.net ) 用的是apache+php+mysql,端口8080,2个应用都是通过nginx前端代理转发请求到对应端口服务上的。
代码如下 | 复制代码 |
#user nobody; #error_log logs/error.log; #pid logs/nginx.pid;
#log_format main '$remote_addr - $remote_user [$time_local] "$request" ' #access_log logs/access.log main; sendfile on; #keepalive_timeout 0; #gzip on; upstream nginx.9958.com {
#access_log logs/host.access.log main; location / { #error_page 404 /404.html; # redirect server error pages to the static page /50x.html # proxy the PHP scripts to Apache listening on 127.0.0.1:80 # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 # deny access to .htaccess files, if Apache's document root
#access_log logs/host.access.log main; location / {
# another virtual host using mix of IP-, name-, and port-based configuration # location / {
# ssl on; # ssl_session_timeout 5m; # ssl_protocols SSLv2 SSLv3 TLSv1; # location / { } |
-
下一个: ueditor百度编辑器配置和事件监听
相关文章
- HTML简单购物数量小程序代码展示 10-31
- html canvas实现弹幕功能 10-31
- HTML中空格表示的意义 10-31
- html area标签解读 10-31
- html使用表单标签实现注册页面代码展示 10-31
- 使用HTML截图并保存为本地图片的代码展示 10-31