Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 9th, 2002, 06:05 AM
Jason Keeler Jason Keeler is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2001
Posts: 33 Jason Keeler User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 13 m 56 sec
Reputation Power: 8
Mapping dir to dir on different server?

In my .htaccess file how do I map http://my.domain.com/forum/blar to http://another.isp.com/~user/forum/blar ?

In otherwords attempts on accessing files/directories in a specfic directory on web server a get passed to a specific directory on a web server b.

Reply With Quote
  #2  
Old March 11th, 2002, 01:41 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
If you don't want another.isp.com to be visible by your users:
Code:
<VirtualHost *>
   ServerName my.domain.com
   RewriteEngine on
   RewriteCond %{HTTP_HOST} ^my\.domain\.com$ [NC]
   RewriteRule ^/icons/(.+) - [PT,L]
   RewriteRule ^forum(.*) http://another.isp.com/~user/forum$1 [P,L]
</VirtualHost>


or define those in <Directory "/server/path/to/forum"> with:
Code:
RewriteEngine on
RewriteRule ^(.*) http://another.isp.com/~user/forum$1 [P,L]

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > Mapping dir to dir on different server?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway