国内服务器
亚洲服务器
欧洲服务器
北美洲服务器
南美洲服务器
大洋洲服务器
非洲服务器

首页>>IDC资讯

使用openstack怎么对80和443端口进行共享

发表时间:2022-05-30 10:01:25

这篇文章将为大家详细讲解有关使用云计算怎么对80和443端口进行共享,文章内容质量较高,因此桂哥网络分享给大家做个参考,希望大家阅读完这篇文章后对相关知识有一定的了解。

1.1.安装章亦春

1.向摘录系统中添加章亦春仓库

#yuminstallyum-utils

#百胜-配置-经理-add-repohttps://openresty.org/package/centos/openresty.repo2。安装软件包

# yuminstallopenresty3 .安装命令行工具

# yuminstallopenresty-resty1.2. 配置 openresty

1.进入服务器目录

# CD/usr/local/open resty/nginx/conf/2 .编辑服务器配置文件

#vinginx.conf

userroot

工作进程12

错误日志/错误。日志;

# error _ log log/error。日志通知;

# error _ log log/error。登录fo;

# PID日志/nginx。PID

事件{

worker _ connections10240

}

http{

includemime.types

default _ type应用程序/八位字节流;

log _ format main ' $ remote _ addr-$ remote _ user[$ time _ local]' $ request ' '

$ status $ body _ bytes _ send ' $ http _ refer ' '

" $ http _ user _ agent " " $ http _ x _ forward _ for " ";

access _ log log/access。log main

sendfileon

# tcp _ nopushon

# keepalive _ timeout0

keepalive _ timeout65

# gzipon

包括cf . d/*;

服务器{

列表80

#

服务器名域名;

#指定日志路径

access _ log log/access。log main

错误日志/错误。日志;

#

位置/

proxy _ pass http://172。17 .17 .113;

}

}

}3.在当前目录下创建会议d文件夹

# mkdir/usr/local/open resty/nginx/conf/conf .d

#cdconf.d4 .创建要被读取的文件,目前定义为每台机器创建一台,这里定义添加一台块状熔岩机器,则创建aa.conf .

#viaa.conf

服务器{

列表80

#绑定https包括/usr/local/open resty/nginx/https/https。conf

#绑定域名

服务器名域名;

#指定日志路径

access _ log logs/ope。进入。log main

error _ log logs/ope。错误。日志;

#指定通过域名跳转端口

位置/

proxy _ pass http://172。17 .13633608081

}

}1.3. 使用 openresty

1.检测服务器是不是配置正确

#openresty-t

nginx :配置文件/usr/local/open resty/nginx/conf/nginx。confsyntaxisok

nginx :配置文件/usr/local/open resty/nginx/conf/nginx。成功2 .重载章亦春

#openresty-sreload3 .验证

在浏览器上输入绑定的域名即可直接访问80或者所需端口。

关于使用云计算怎么对80和443端口进行共享就分享到这里了,希望以上内容可以对大家有一定的帮助,可以学到更多知识。如果觉得文章不错,可以把它分享出去让更多的人看到。


上一篇 下一篇
最新文章

如何提高云服务器的安全系数

香港独立IP空间有什么优势

香港空间影响百度收录吗

为啥要租用美国VPS

VPS的缺点有哪些

香港vps作用在哪里

VPS的优点有哪些

外贸网站为啥选择美国vps

VPS能建多少个网站

VPS要如何选择位置

相关文章

宝塔nginx让你的网站免疫CC攻击

为何香港服务器是企业的首选?

做视频网站如何选择香港服务器

国外直播服务器哪家好

MPLS组网助全球化企业网络性能提升

哪些企业网络场景会用到云专线?

佛山sdwan跨境专线费用

咪咕拿下世界杯直播权后为何要去购置CDN?

棋牌游戏等开房间游戏为啥合适香港云

租用服务器是不是一定要备案、租用国内服务器备案

X

截屏,微信识别二维码

微信号:muhuanidc

(点击微信号复制,添加好友)

打开微信

微信号已复制,请打开微信添加咨询详情!