centos7下编译安装lnmp和nginx代理实验

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了centos7下编译安装lnmp和nginx代理实验相关的知识,希望对你有一定的参考价值。



恭喜,lnmp 已安装成功!

查看服务器WEB环境:探针信息 phpinfo信息

为安全起见,本页可删除或重命名

添加虚拟主机代理: 1、confluence代理 80端口代理confluence的8090 vim /etc/ng``inx/vhost/itks.oceanwing.com.conf server { server_name itks.oceanwing.com listen 80; location / { proxy_pass http://172.16.20.247:8090/; proxy_set_header Host $host:80; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } } 2、Jenkins代理 ``` vim /etc/nginx/vhost/jenkins.oceanwing.com.conf server { server_name jenkins.oceanwing.com listen 80; location / { proxy_pass http://172.16.22.245:8080; proxy_set_header Host $host:80; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } } ``` 3、jira的代理 ``` vim /etc/nginx/vhost/jira.oceanwing.com.conf server { server_name jira.oceanwing.com listen 80; location / { proxy_pass http://172.16.20.247:8080/; proxy_set_header Host $host:80; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } } ``` ![](http://i2.51cto.com/images/blog/201802/08/f6d353a850cef04d710df548c9141875.png?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=)



以上是关于centos7下编译安装lnmp和nginx代理实验的主要内容,如果未能解决你的问题,请参考以下文章

centos7下编译安装nginx并实现日志轮替

centos7下编译nginx1.19.0

CentOS下编译安装Nginx

LNMP-CentOS下编译PHP7.0

CentOS 7.2 下编译安装PHP7.0.10+MySQL5.7.14+Nginx1.10.1的方法

centos7安装Lnmp(Linux+Nginx+MySql+Php+phpMyAdmin+Apache)