|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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. |
|
#2
|
|||
|
|||
|
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] |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > Mapping dir to dir on different server? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|