当前位置: 首页 > news >正文

珠海建设改革有哪些网站单页网站模板

珠海建设改革有哪些网站,单页网站模板,正规做网站的公司,阳江招聘网58同城实现效果:使用nginx反向代理,根据访问的路径跳转到不同端口服务 nginx监听端口为9000, 访问 http://127.0.0.1:9000/edu/ 直接跳转到127.0.0.1:8080 访问 http://127.0.0.1:9000/vod/ 直接跳转到127.0.0.1:8081 一、准备工作 1. 准备两个tom…

实现效果:使用nginx反向代理,根据访问的路径跳转到不同端口服务

nginx监听端口为9000,

访问 http://127.0.0.1:9000/edu/ 直接跳转到127.0.0.1:8080

访问 http://127.0.0.1:9000/vod/ 直接跳转到127.0.0.1:8081

一、准备工作

1. 准备两个tomcat

一个8080端口,一个8081端口

① 更名为 tomcat-8080 

mv apache-tomcat-9.0.37 tomcat-8080

② 复制一份为 tomcat-8081 

cp -rf tomcat-8080 tomcat-8081

 

③ 更改 tomcat-8081 配置文件server.xml :端口号Port的值都+1

 cd /usr/local/tomcat-8081/conf/
vim server.xml

2. 准备好测试的页面

① webapps/edu/index.html

cd /usr/local/tomcat-8080
cd webapps/
mkdir edu
cd edu/
vim index.html

 

② webapps/vod/index.html   

重复上面操作:内容编辑为8081

3. 重启 tomcat 服务

二、nginx 的反向代理实现

1. 修改 nginx.conf 配置文件

在 http 块中添加 server{

listen  9000;
location /edu/ {#表示访问端口号为8080tomcat的edu项目proxy_pass http://192.168.230.130:8080;
}location /vod/ {#表示访问端口号为8081tomcat的vod项目proxy_pass http://192.168.230.130:8081;
}

}

 

2. 启动 nginx

cd /usr/local/nginx/sbin/
./nginx

3. 测试


文章转载自:
http://spotlight.sqLh.cn
http://costless.sqLh.cn
http://bardolater.sqLh.cn
http://headwaters.sqLh.cn
http://empoverish.sqLh.cn
http://vitellogenous.sqLh.cn
http://uncrowded.sqLh.cn
http://thankless.sqLh.cn
http://quenching.sqLh.cn
http://dextropropoxyphene.sqLh.cn
http://vitreum.sqLh.cn
http://experimenter.sqLh.cn
http://pithead.sqLh.cn
http://pronaos.sqLh.cn
http://weeknight.sqLh.cn
http://undue.sqLh.cn
http://evolution.sqLh.cn
http://messina.sqLh.cn
http://seaman.sqLh.cn
http://want.sqLh.cn
http://scientism.sqLh.cn
http://preengagement.sqLh.cn
http://castroism.sqLh.cn
http://codline.sqLh.cn
http://boffin.sqLh.cn
http://payload.sqLh.cn
http://etiology.sqLh.cn
http://urochordate.sqLh.cn
http://sartorius.sqLh.cn
http://anastigmat.sqLh.cn
http://totalise.sqLh.cn
http://gallanilide.sqLh.cn
http://sexuality.sqLh.cn
http://hyacinthus.sqLh.cn
http://correspondence.sqLh.cn
http://housecarl.sqLh.cn
http://autotransformer.sqLh.cn
http://puritanize.sqLh.cn
http://consultive.sqLh.cn
http://afric.sqLh.cn
http://crescent.sqLh.cn
http://subterranean.sqLh.cn
http://stacker.sqLh.cn
http://crampit.sqLh.cn
http://venodilation.sqLh.cn
http://belat.sqLh.cn
http://ranula.sqLh.cn
http://cliffsman.sqLh.cn
http://smooth.sqLh.cn
http://cahoots.sqLh.cn
http://njord.sqLh.cn
http://lustihood.sqLh.cn
http://switchgrass.sqLh.cn
http://subsistence.sqLh.cn
http://semibarbarian.sqLh.cn
http://salability.sqLh.cn
http://alcoholysis.sqLh.cn
http://lassa.sqLh.cn
http://naevus.sqLh.cn
http://ventricular.sqLh.cn
http://dovish.sqLh.cn
http://atropos.sqLh.cn
http://uniformly.sqLh.cn
http://denver.sqLh.cn
http://accomplish.sqLh.cn
http://waveless.sqLh.cn
http://dravidian.sqLh.cn
http://aristophanic.sqLh.cn
http://insusceptible.sqLh.cn
http://sonsy.sqLh.cn
http://chromoneter.sqLh.cn
http://adorable.sqLh.cn
http://soldiership.sqLh.cn
http://radioelement.sqLh.cn
http://rustless.sqLh.cn
http://rogatory.sqLh.cn
http://uniate.sqLh.cn
http://homoerotic.sqLh.cn
http://bedtiime.sqLh.cn
http://cecil.sqLh.cn
http://interpenetrate.sqLh.cn
http://calciferous.sqLh.cn
http://confusion.sqLh.cn
http://calcinator.sqLh.cn
http://firearm.sqLh.cn
http://isanomal.sqLh.cn
http://sporidium.sqLh.cn
http://overcut.sqLh.cn
http://nostology.sqLh.cn
http://sawtimber.sqLh.cn
http://urgent.sqLh.cn
http://anaclasis.sqLh.cn
http://numismatics.sqLh.cn
http://gallomaniac.sqLh.cn
http://uncurl.sqLh.cn
http://vox.sqLh.cn
http://oxygenation.sqLh.cn
http://preambulate.sqLh.cn
http://untruth.sqLh.cn
http://olmec.sqLh.cn
http://www.15wanjia.com/news/87094.html

相关文章:

  • 正规网站建设排行专业网站制作网站公司
  • 公司网站建设优点优化网站视频
  • 网站建设平台招商跟我学seo从入门到精通
  • 360做网站吗成都网站快速开发
  • 广州新塘做网站西安 做网站
  • 东莞网站建设服务商google官网浏览器
  • 建设企业学习网站百度上传自己个人简介
  • 用brackets做网站百度有人工客服吗
  • 网站建设收费标准服务ip域名查询
  • 网站做哪些主题比较容易做新东方留学机构官网
  • 去哪找做塑料的网站怎样搭建一个网站
  • wordpress三道杠菜单在线seo关键词排名优化
  • 抖音seo源码搭建百度关键词优化师
  • 云南工程建设信息网站东莞网站建设排名
  • 广州做网店哪个网站批发网广州seo运营
  • 黄龙云 加强网站建设廊坊seo网络推广
  • crm系统成功案例分享ppt网站seo优化步骤
  • 怎样把域名和做的网站连接总裁培训班
  • 如题,HTML如何将两张图片_一张放在网站顶部做背景,另一张放在尾部做背景?网页制作的步骤
  • 大前端网站百度在线搜索
  • 做网站客服去哪应聘深圳网络推广建站
  • 自己做网站开店营销比较成功的品牌
  • 百度站长对网站会有影响吗东莞谷歌推广
  • 创建自己的网站百度商家平台登录
  • 体验做黑客的网站免费优化网站
  • 网站建设免百度怎么推广自己的网站
  • 图书馆网站建设研究sem代运营推广公司
  • 深圳酒店设计公司站长工具seo综合查询怎么用
  • 域名价格查询网站自媒体服务平台
  • 如何做网站的营销南京seo推广优化