Apache Gogs.io在具有端口的子域上运行
我正在尝试在apache Web服务器上运行Gogs.io和标准网站,并尝试在子域上使用Gogs.io,而不是使用带有端口的标准域 Gogs.io在端口3000上运行,我希望url为Apache Gogs.io在具有端口的子域上运行,apache,web,subdomain,gogs,Apache,Web,Subdomain,Gogs,我正在尝试在apache Web服务器上运行Gogs.io和标准网站,并尝试在子域上使用Gogs.io,而不是使用带有端口的标准域 Gogs.io在端口3000上运行,我希望url为 http://gogs.example.net/ 而不是 http://example.net:3000/ 我的带有端口的公共IP和example.net:3000都可以工作,但是当尝试使用gogs.example.net时,我总是会得到一个AT&T DNS错误帮助页面。我不确定我做错了什么,因为我之前一直让它工作
http://gogs.example.net/
而不是
http://example.net:3000/
我的带有端口的公共IP和example.net:3000
都可以工作,但是当尝试使用gogs.example.net
时,我总是会得到一个AT&T DNS错误帮助页面。我不确定我做错了什么,因为我之前一直让它工作,直到我试图在我的apache配置中更改子域的名称,但当我开始出现问题时,我又将其更改了回来,结果没有成功
以下是我的Apache页面配置:
<VirtualHost *:80>
ServerName gogs.example.net
ProxyPreserveHost On
ProxyPass / http://example.net:3000/
ProxyPassReverse / http://example.net:3000/
</VirtualHost>
ServerName gogs.example.net
代理主机
ProxyPass/http://example.net:3000/
ProxyPassReverse/http://example.net:3000/
这可能是不可能的,但任何帮助都将不胜感激 通过向我的域中添加A记录修复了此问题
A记录:git->111.222.333.444
以及修改VirtualHost设置以在ProxyPass和ProxyPassReverse中包含子域
<VirtualHost *:80>
ServerName gogs.example.net
ProxyPreserveHost On
ProxyPass / http://git.example.net:3000/
ProxyPassReverse / http://git.example.net:3000/
</VirtualHost>
ServerName gogs.example.net
代理主机
ProxyPass/http://git.example.net:3000/
ProxyPassReverse/http://git.example.net:3000/