背景:云上有一台内部yum服务器,操作系统及版本信息为:Red Hat Enterprise Linux Server release 7.9 (Maipo)
上面每天会同aws仓库官网同步repo,版本也自然是 Red Hat Enterprise Linux Server release 7
现在需要临时增加 Redhat 8.的 仓库,(默认Redhat 8 也是有内部repo仓库的,只是在其他平台)
关于Apache的版本信息如下:Apache/2.4.6 (Red Hat Enterprise Linux)

于是实现方法过程如下:
1、将其他平台的repo仓库目录同步到云上的内部yum服务器
2、修改httpd配置文件,在之前的基础上,添加上新的Redhat 8仓库访问路径及目录信息,配置文件 /etc/httpd/conf.d/rhel_repo.conf
<VirtualHost *:80> DocumentRoot "/rhel/patch/" ProxyRequests on ProxyVia Full <Proxy *> Order deny,allow Allow from all </Proxy> </VirtualHost> <directory "/rhel/patch/"> options +indexes Require all granted </directory> Alias /dc-sap "/dc-patch/" <directory "/dc-patch/"> options +indexes Require all granted </directory>