【绝对能用】阿里云ECS上Centos7安装Apache(httpd)并实现多域名转不同tomcat配置
来源:互联网 发布:ps4网络设置dns 编辑:程序博客网 时间:2024/06/05 10:39
#安装
yum install httpd
#设置自启
systemctl enable httpd.service
#编辑httpd.conf就够了,httpd.conf在/etc/httpd/conf中。在底部加上虚拟主机
vim /etc/httpd/conf/httpd.conf
-------------------------------------------------------------------------------
NameVirtualHost *:80
<VirtualHost *:80>
ServerName www.xm10000.com.cn
ServerAlias xm10000.com.cn *.xm10000.com.cn
ProxyPreserveHost On
ProxyRequests Off
ProxyPass / http://www.xm10000.com.cn:81/
ProxyPassReverse / http://www.xm10000.com.cn:81/
ErrorLog logs/xm10000_error_log
CustomLog logs/xm10000_access_log common
</VirtualHost>
<VirtualHost *:80>
ServerName www.titantec.cn
ServerAlias titantec.cn *.titantec.cn
ProxyPreserveHost On
ProxyRequests Off
ProxyPass / http://www.titantec.cn:82/
ProxyPassReverse / http://www.titantec.cn:82/
ErrorLog logs/titantec_error_log
CustomLog logs/titantec_access_log common
</VirtualHost>
-------------------------------------------------------------------------------
yum install httpd
#设置自启
systemctl enable httpd.service
#编辑httpd.conf就够了,httpd.conf在/etc/httpd/conf中。在底部加上虚拟主机
vim /etc/httpd/conf/httpd.conf
-------------------------------------------------------------------------------
NameVirtualHost *:80
<VirtualHost *:80>
ServerName www.xm10000.com.cn
ServerAlias xm10000.com.cn *.xm10000.com.cn
ProxyPreserveHost On
ProxyRequests Off
ProxyPass / http://www.xm10000.com.cn:81/
ProxyPassReverse / http://www.xm10000.com.cn:81/
ErrorLog logs/xm10000_error_log
CustomLog logs/xm10000_access_log common
</VirtualHost>
<VirtualHost *:80>
ServerName www.titantec.cn
ServerAlias titantec.cn *.titantec.cn
ProxyPreserveHost On
ProxyRequests Off
ProxyPass / http://www.titantec.cn:82/
ProxyPassReverse / http://www.titantec.cn:82/
ErrorLog logs/titantec_error_log
CustomLog logs/titantec_access_log common
</VirtualHost>
-------------------------------------------------------------------------------
阅读全文
0 0
- 【绝对能用】阿里云ECS上Centos7安装Apache(httpd)并实现多域名转不同tomcat配置
- CentOS7 yum安装Apache(httpd)并实现多域名配置
- 【绝对能用】新买的阿里云ECS服务器,Centos7.3系统,安装jdk,mysql,tomcat,svn服务器等软件。
- 阿里云-ECS-apache-tomcat-安装-linux
- 阿里云CentOS7 搭建apache+php+mysql环境,并配置多站点多域名
- 阿里云ECS centos7配置jdk-tomcat-mysql 并部署javaweb项目
- CentOS7 yum安装Tomcat并实现多域名与虚拟目录配置
- CentOS7 yum安装Tomcat并实现多域名与虚拟目录配置
- centos7安装配置apache/httpd
- 阿里云ECS申请免费ssl证书,实现Tomcat访问域名,使用Https访问
- 【阿里ECS】CentOS7安装nginx
- CentOS7 yum安装Java+Apache(httpd)+Tomcat并开启自启动
- 阿里云服务器ECS安装Tomcat
- 阿里云的ECS的centos7上安装mysql5.6的方法
- 阿里云上ECS中安装docker
- 阿里云ECS域名绑定
- 阿里云 Tomcat 配置域名
- linux apache 配置多个域名转发不同tomcat
- Nodejs进阶:使用DiffieHellman密钥交换算法
- 关于在VM和主机之间ping不通的解决办法
- django admin自定义HTML模板界面替换logo和header
- 对称加密----AES和DES加密、解密
- 数据库原理 数据库全局概览
- 【绝对能用】阿里云ECS上Centos7安装Apache(httpd)并实现多域名转不同tomcat配置
- 【scala 语法基础】变量、函数、控制结构、数据类型
- linux ls 按照文件大小排序
- 人脸识别技术应用场景与前景
- 区块链学习-智能合约与ICO
- 51nod 1012 最小公倍数LCM【数论】
- C++ float double 的有效位
- Pycharm选择性忽略PEP8代码风格警告信息
- 从产品经理转型为产品经理兼项目经理,如何快速胜任?