<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<p style="margin: 0px 0px 1em; padding: 0px; border: 0px; font-size:
14px; vertical-align: baseline; background-color: rgb(255, 255,
255); clear: both; color: rgb(0, 0, 0); font-family: Arial,
'Liberation Sans', 'DejaVu Sans', sans-serif; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: 17.804800033569336px; orphans: auto; text-align:
left; text-indent: 0px; text-transform: none; white-space: normal;
widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-position: initial initial; background-repeat: initial
initial;">Hi,<br>
</p>
<p style="margin: 0px 0px 1em; padding: 0px; border: 0px; font-size:
14px; vertical-align: baseline; background-color: rgb(255, 255,
255); clear: both; color: rgb(0, 0, 0); font-family: Arial,
'Liberation Sans', 'DejaVu Sans', sans-serif; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: 17.804800033569336px; orphans: auto; text-align:
left; text-indent: 0px; text-transform: none; white-space: normal;
widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-position: initial initial; background-repeat: initial
initial;">I would like to redirect to an external URL which is
hosted as a apache virtual host.<br>
nginx resolves the host of the url which obviously does little to
resolve to the correct web root on the server.</p>
<pre style="margin: 0px 0px 10px; padding: 5px; border: 0px; font-size: 14px; vertical-align: baseline; background-color: rgb(238, 238, 238); font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; overflow: auto; width: auto; max-height: 600px; word-wrap: normal; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 17.804800033569336px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-position: initial initial; background-repeat: initial initial;"><code style="margin: 0px; padding: 0px; border: 0px; font-size: 14px; vertical-align: baseline; background-color: rgb(238, 238, 238); font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', mo
nospace, serif; white-space: inherit; background-position: initial initial; background-repeat: initial initial;"> server {
server_name localhost;
location / {
proxy_set_header Host $host;
proxy_pass <a class="moz-txt-link-freetext" href="http://www.urlforvirtualhost.com">http://www.urlforvirtualhost.com</a>;
}
}
</code></pre>
<p style="margin: 0px 0px 1em; padding: 0px; border: 0px; font-size:
14px; vertical-align: baseline; background-color: rgb(255, 255,
255); clear: both; color: rgb(0, 0, 0); font-family: Arial,
'Liberation Sans', 'DejaVu Sans', sans-serif; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: 17.804800033569336px; orphans: auto; text-align:
left; text-indent: 0px; text-transform: none; white-space: normal;
widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-position: initial initial; background-repeat: initial
initial;">The question is how do I allow proxy_pass without nginx
resolving the ip-address of the host?<br>
</p>
<p style="margin: 0px 0px 1em; padding: 0px; border: 0px; font-size:
14px; vertical-align: baseline; background-color: rgb(255, 255,
255); clear: both; color: rgb(0, 0, 0); font-family: Arial,
'Liberation Sans', 'DejaVu Sans', sans-serif; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: 17.804800033569336px; orphans: auto; text-align:
left; text-indent: 0px; text-transform: none; white-space: normal;
widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-position: initial initial; background-repeat: initial
initial;">I have googled but obviously too many search result
feature nginx configuration for virtual hosts.<br>
</p>
<p style="margin: 0px 0px 1em; padding: 0px; border: 0px; font-size:
14px; vertical-align: baseline; background-color: rgb(255, 255,
255); clear: both; color: rgb(0, 0, 0); font-family: Arial,
'Liberation Sans', 'DejaVu Sans', sans-serif; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: 17.804800033569336px; orphans: auto; text-align:
left; text-indent: 0px; text-transform: none; white-space: normal;
widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-position: initial initial; background-repeat: initial
initial;">Any hints would be kindly appreciated.<br>
</p>
<p style="margin: 0px 0px 1em; padding: 0px; border: 0px; font-size:
14px; vertical-align: baseline; background-color: rgb(255, 255,
255); clear: both; color: rgb(0, 0, 0); font-family: Arial,
'Liberation Sans', 'DejaVu Sans', sans-serif; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: 17.804800033569336px; orphans: auto; text-align:
left; text-indent: 0px; text-transform: none; white-space: normal;
widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-position: initial initial; background-repeat: initial
initial;">Lo5t<br>
</p>
</body>
</html>