You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Bart Braem <ba...@gmail.com> on 2006/03/05 13:35:51 UTC

[users@httpd] Re: Redirecting urls to a server on a different port

victor wrote:

> Try sometring like this
> Redirect /index.php http://localhost:8081
> I use it with virtual host.
> index.php is a file from the docroot of that virtual host.

That seems a nice solution but how can I make it work for an unlimited
number of files? Should I use regular expressions then?

Thanks for your fast reply!


---------------------------------------------------------------------
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] Re: Redirecting urls to a server on a different port

Posted by victor <vi...@ambra.ro>.
Try RedirectMatch instead Redirect.
You can find all the necesary docs here: 
http://httpd.apache.org/docs/1.3/mod/mod_alias.html#redirectmatch.


Bart Braem wrote:

>victor wrote:
>
>  
>
>>Try sometring like this
>>Redirect /index.php http://localhost:8081
>>I use it with virtual host.
>>index.php is a file from the docroot of that virtual host.
>>    
>>
>
>That seems a nice solution but how can I make it work for an unlimited
>number of files? Should I use regular expressions then?
>
>Thanks for your fast reply!
>
>
>---------------------------------------------------------------------
>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
>
>
>  
>


---------------------------------------------------------------------
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