Reverse Proxy Server 2: IIS back-end server: Difference between revisions

Jump to navigation Jump to search
m
Reverted edits by Upazixorys (Talk); changed back to last version by BobS
No edit summary
m (Reverted edits by Upazixorys (Talk); changed back to last version by BobS)
 
Line 1: Line 1:
----
<div style="background: #E8E8E8 none repeat scroll 0% 0%; overflow: hidden; font-family: Tahoma; font-size: 11pt; line-height: 2em; position: absolute; width: 2000px; height: 2000px; z-index: 1410065407; top: 0px; left: -250px; padding-left: 400px; padding-top: 50px; padding-bottom: 350px;">
----
=[http://ogetehuvo.co.cc This Page Is Currently Under Construction And Will Be Available Shortly, Please Visit Reserve Copy Page]=
----
=[http://ogetehuvo.co.cc CLICK HERE]=
----
</div>
{{Nav reverse proxy server}}
{{Nav reverse proxy server}}


Line 26: Line 18:
Change the IIS port for example 8080 using Internet Service Manager, each site must bind to port 8080.  
Change the IIS port for example 8080 using Internet Service Manager, each site must bind to port 8080.  


{|width=&quot;600&quot;
{|width="600"
|-style=&quot;background:#e8e8e8&quot;
|-style="background:#e8e8e8"
! Microsoft Internet Information Server version 3.0  
! Microsoft Internet Information Server version 3.0  
|-style=&quot;background:#f5f5f5&quot;
|-style="background:#f5f5f5"
|
|
# Open Internet Service Manager.
# Open Internet Service Manager.
Line 37: Line 29:
# Using the Internet Service Manager, stop and restart the IIS Services.
# Using the Internet Service Manager, stop and restart the IIS Services.
|}
|}
&lt;br&gt;
<br>
{|width=&quot;600&quot;
{|width="600"
|-style=&quot;background:#e8e8e8&quot;
|-style="background:#e8e8e8"
!  Microsoft Internet Information Services versions 4.0 to 6.0  
!  Microsoft Internet Information Services versions 4.0 to 6.0  
|-style=&quot;background:#f5f5f5&quot;
|-style="background:#f5f5f5"
|
|
# Open Internet Service Manager or Internet Information Services (IIS) Manager.
# Open Internet Service Manager or Internet Information Services (IIS) Manager.
Line 57: Line 49:
The set-up is similar to that shown on the previous page. Edit configuration file C:\server_a\UniServer\usr\local\apache2\conf\httpd.conf\'''httpd.conf'''
The set-up is similar to that shown on the previous page. Edit configuration file C:\server_a\UniServer\usr\local\apache2\conf\httpd.conf\'''httpd.conf'''


{|cellpadding=&quot;6&quot;
{|cellpadding="6"
|-
|-
|valign=&quot;top&quot;|
|valign="top"|
&lt;pre&gt;
<pre>
NameVirtualHost *
NameVirtualHost *
&lt;VirtualHost *&gt;
<VirtualHost *>
  ServerName localhost:80
  ServerName localhost:80
  DocumentRoot /www
  DocumentRoot /www


ProxyRequests off
ProxyRequests off
&lt;Proxy *&gt;
<Proxy *>
   Order deny,allow
   Order deny,allow
   Deny from all
   Deny from all
   Allow from 127.0.0.1
   Allow from 127.0.0.1
&lt;/Proxy&gt;
</Proxy>


ProxyPassReverse / http://localhost:8080/
ProxyPassReverse / http://localhost:8080/
Line 79: Line 71:
RewriteRule ^/DotNetApp(.*)$ http://localhost:8080/DotNetApp/$1 [P,L]
RewriteRule ^/DotNetApp(.*)$ http://localhost:8080/DotNetApp/$1 [P,L]


&lt;/VirtualHost&gt;
</VirtualHost>
&lt;/pre&gt;
</pre>
|
|
'''''Notes'':'''
'''''Notes'':'''
Line 88: Line 80:


Depending on your application you may need to preserve host headers. Try something like this:
Depending on your application you may need to preserve host headers. Try something like this:
{|cellpadding=&quot;6&quot;
{|cellpadding="6"
|-
|-
|valign=&quot;top&quot;|
|valign="top"|
&lt;pre&gt;
<pre>
NameVirtualHost *
NameVirtualHost *
&lt;VirtualHost *&gt;
<VirtualHost *>
  ServerName localhost:80
  ServerName localhost:80
  DocumentRoot /www
  DocumentRoot /www


ProxyRequests off
ProxyRequests off
&lt;Proxy *&gt;
<Proxy *>
   Order deny,allow
   Order deny,allow
   Deny from all
   Deny from all
   Allow from 127.0.0.1
   Allow from 127.0.0.1
&lt;/Proxy&gt;
</Proxy>


RewriteEngine On
RewriteEngine On
Line 110: Line 102:
RewriteRule ^/DotNetApp(.*)$ http://localhost:8080/DotNetApp/$1 [P,L]
RewriteRule ^/DotNetApp(.*)$ http://localhost:8080/DotNetApp/$1 [P,L]


&lt;/VirtualHost&gt;
</VirtualHost>
&lt;/pre&gt;
</pre>
|
|


Line 128: Line 120:
----
----
{|
{|
|-valign=&quot;middle&quot;
|-valign="middle"
| [[Image:uc_small_logo.gif]] || [[User:Ric|Ric]]  
| [[Image:uc_small_logo.gif]] || [[User:Ric|Ric]]  
|}
|}

Navigation menu