Apache nginx代理\将配置传递到virtualhost
我想重定向到作为apache虚拟主机托管的外部URL。 nginx解析url,这显然对解析到服务器上正确的web根目录没有什么帮助Apache nginx代理\将配置传递到virtualhost,apache,nginx,proxypass,Apache,Nginx,Proxypass,我想重定向到作为apache虚拟主机托管的外部URL。 nginx解析url,这显然对解析到服务器上正确的web根目录没有什么帮助 server { server_name localhost; location / { proxy_set_header Host $host; proxy_pass http://www.urlforvirtualhost.com;
server {
server_name localhost;
location / {
proxy_set_header Host $host;
proxy_pass http://www.urlforvirtualhost.com;
}
}
问题是,我如何允许proxy_pass而无需nginx解析URL的ip地址