nginx安装配置
来源:互联网 发布:吉林省卫生网络直报 编辑:程序博客网 时间:2024/06/11 01:02
nginx配置
安装http://nginx.org/en/linux_packages.html#distributions
安装stable version for ubuntu
启动nginx: sudo nginx
nginx.conf在/etc/nginx
配置静态资源
注释掉
#include /etc/nginx/conf.d/*.conf;
加上
server {
listen 880;
server_name localhost;
location / {
proxy_pass http://localhost:8888;
}
}
server {
listen 990;
server_name localhost;
location / {
proxy_pass http://localhost:9999;
}
}
重新加载配置文件
sudo nginx -s reload
安装http://nginx.org/en/linux_packages.html#distributions
安装stable version for ubuntu
启动nginx: sudo nginx
nginx.conf在/etc/nginx
配置静态资源
注释掉
#include /etc/nginx/conf.d/*.conf;
加上
server {
listen 880;
server_name localhost;
location / {
proxy_pass http://localhost:8888;
}
}
server {
listen 990;
server_name localhost;
location / {
proxy_pass http://localhost:9999;
}
}
重新加载配置文件
sudo nginx -s reload
0 0
- centos 安装nginx 配置nginx
- Nginx 安装配置
- nginx安装与配置
- Nginx的安装配置
- Nginx安装配置
- nginx 安装,配置
- nginx 安装及配置
- Nginx安装与配置
- Nginx基本安装配置
- nginx安装与配置
- 安装 配置 Nginx
- Nginx安装配置备忘
- awstats+nginx 安装配置
- Nginx 安装与配置
- nginx安装配置
- nginx 安装与配置
- nginx安装和配置
- nginx安装配置
- GET请求和POST请求的参数
- 前端常用组件汇总
- Third Maximum Number问题及解法
- ACdream 1015 Double Kings 树的重心
- Windows系统功能模拟 C++(EasyX插件)—— 3rd 界面绘制(一)
- nginx安装配置
- LeetCode 124. Binary Tree Maximum Path Sum
- java枚举最佳实践
- 三篇文章助你彻底理解ThreadLocal
- eclipse控制台打印sql
- hive中udf
- Convert a Number to Hexadecimal问题及解法
- 不会对这些Web攻击设防,就别学开发了
- elasticsearch 和 ik分词