Apache 如何将EC2中的web重定向到我的域
我有一个在EC2上运行tomcat(8080)的网站,在同一个例子中,我有apache2(80)为android应用程序提供静态文件(图像)。我两者都需要,但不需要合作 我的问题是,如果我有这个url: 如何将我的www.montoroturismo.tk重定向到它? 在域面板中,我只能放置主机的ip,但端口和上下文(/ocioturismomontro)都不能Apache 如何将EC2中的web重定向到我的域,apache,tomcat,amazon-web-services,amazon-ec2,domainservices,Apache,Tomcat,Amazon Web Services,Amazon Ec2,Domainservices,我有一个在EC2上运行tomcat(8080)的网站,在同一个例子中,我有apache2(80)为android应用程序提供静态文件(图像)。我两者都需要,但不需要合作 我的问题是,如果我有这个url: 如何将我的www.montoroturismo.tk重定向到它? 在域面板中,我只能放置主机的ip,但端口和上下文(/ocioturismomontro)都不能 请帮帮我。您必须在实例本身上管理端口转发。如果您想在端口80上提供其他服务,可以在Apache上创建虚拟主机。将其放入/conf/si
请帮帮我。您必须在实例本身上管理端口转发。如果您想在端口80上提供其他服务,可以在Apache上创建虚拟主机。将其放入
/conf/sites enabled/OcioTurismoMontoro.conf:
<virtualhost *:80>
ServerAdmin webmaster@localhost
ServerName www.montoroturismo.tk
ProxyRequests off
<proxy *>
Order deny,allow
Allow from all
</proxy>
ProxyPass / http://127.0.0.1:8080/OcioTurismoMontoro/
ProxyPassReverse / http://127.0.0.1:8080/OcioTurismoMontoro/
</VirtualHost>
服务器管理员webmaster@localhost
服务器名www.montoroturismo.tk
代理请求关闭
命令拒绝,允许
通融
ProxyPass/http://127.0.0.1:8080/OcioTurismoMontoro/
ProxyPassReverse/http://127.0.0.1:8080/OcioTurismoMontoro/
您将需要Apache的mod proxy