You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Gary Shadley <gs...@dc-marion.ohio-state.edu> on 2003/11/14 17:26:24 UTC

[users@httpd] Folder Redirect to backend Web Server Question

Hello All:

I am hoping someone will be able to help me.  Here is what I am trying
to do.  I have Front-End web server running Redhat Linux 8.0 running
Apache 2.0.  This is what I am trying to do:

Using this address, http://www.dc-marion.ohio-state.edu/Arabic, I would
like to redirect the folder Arabic to get its data from a backend Web
server using http://www3.dc-marion.ohio-state.edu.  Is there a way to
redirect the folder "Arabic" on the front-end server to get its data
from the backend server?  I don't want the client to know that the data
is coming from the backend-server. I would like the client to see
http://www/dc-marion.ohio-state.edi/arabic.  

Please help.

Thanks.
Gary Shadley

********************************************
Gary G. Shadley II - MCP+I, MCSE           
Systems Manager                               
The Ohio State University @ Marion           
Delaware Center                              
7774 Graphics Way                             
Lewis Center, Ohio 43035                                  
********************************************
Phone: (614) 292-9133 Ext. 6006            
Fax:   (614) 292-1181                      
E-mail: shadley.4@osu.edu                   
********************************************
 

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Folder Redirect to backend Web Server Question

Posted by Joshua Slive <jo...@slive.ca>.
On Fri, 14 Nov 2003, Jez Hancock wrote:
> On Fri, Nov 14, 2003 at 11:26:24AM -0500, Gary Shadley wrote:
> >
> > Using this address, http://www.dc-marion.ohio-state.edu/Arabic, I would
> > like to redirect the folder Arabic to get its data from a backend Web
> > server using http://www3.dc-marion.ohio-state.edu.  Is there a way to
> > redirect the folder "Arabic" on the front-end server to get its data
> > from the backend server?  I don't want the client to know that the data
> > is coming from the backend-server. I would like the client to see
> > http://www/dc-marion.ohio-state.edi/arabic.
> The Redirect mod_alias directive allows you to redirect a URI to a
> different URL:
>
> Redirect /Arabic http://www3.dc-marion.ohio-state.edu/
>
> see here for more info:
>
> http://httpd.apache.org/docs-2.0/mod/mod_alias.html#redirect

No, this isn't what he is looking for.  He specifies that he doesn't want
the client to see the backend server.  In that case, the frontend server
needs to grab the data and return it to the client.  That is called a
reverse proxy.  See the docs for mod_proxy.

It will look something like this (in httpd.conf):
ProxyPass /Arabic/ http://www3.dc-marion.ohio-state.edu/
ProxyPassReverse /Arabic/ http://www3.dc-marion.ohio-state.edu/

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Folder Redirect to backend Web Server Question

Posted by Jez Hancock <je...@munk.nu>.
On Fri, Nov 14, 2003 at 11:26:24AM -0500, Gary Shadley wrote:
> Hello All:
> 
> I am hoping someone will be able to help me.  Here is what I am trying
> to do.  I have Front-End web server running Redhat Linux 8.0 running
> Apache 2.0.  This is what I am trying to do:
> 
> Using this address, http://www.dc-marion.ohio-state.edu/Arabic, I would
> like to redirect the folder Arabic to get its data from a backend Web
> server using http://www3.dc-marion.ohio-state.edu.  Is there a way to
> redirect the folder "Arabic" on the front-end server to get its data
> from the backend server?  I don't want the client to know that the data
> is coming from the backend-server. I would like the client to see
> http://www/dc-marion.ohio-state.edi/arabic.  
The Redirect mod_alias directive allows you to redirect a URI to a
different URL:

Redirect /Arabic http://www3.dc-marion.ohio-state.edu/

see here for more info:

http://httpd.apache.org/docs-2.0/mod/mod_alias.html#redirect

-- 
Jez Hancock
 - System Administrator / PHP Developer

http://munk.nu/

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org