httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From varun <varun.bhuvanend...@gmail.com>
Subject Re: [users@httpd] port redirecting mapping
Date Mon, 10 Feb 2014 13:57:45 GMT
I am trying to redirect a link with a port number to another link. I had 
tried this with the intention
that all requests ending with :3030/ should be mapped to http://domain_name/

*<Proxy *>**
**        Order allow,deny**
**        Allow from all**
**    </Proxy>**
**    ProxyPass :3030/ http://domain_name/**
**    ProxyPassReverse :3030/ http://domain_name/*
This is not working, as a request like http://domain:3030 is not 
redirecting.

But when i tries
     ProxyPass / http://domain_name:3030/
     ProxyPassReverse / http://domain_name:3030/
A request like this *http://domain_name* redirects to 
*http://domain_name:3030*

Also tries "Redirect"
*Redirect :3030 http://domain_name*

rewrite_module is enabled.

Is there any config error or the approach is bad.

On Monday 10 February 2014 06:21 PM, Thomas Eckert wrote:
> Assuming you have a working config for a server/vhost on 
> domain_name:3030, then how about
>   Redirect permanent / http://domain_name:3000/
> ? See http://httpd.apache.org/docs/current/mod/mod_alias.html#redirect 
> and friends.
>
> "Restricted" access is a bit vague but 
> http://httpd.apache.org/docs/current/howto/access.html is a good start.
>
>
>
> On Mon, Feb 10, 2014 at 12:58 PM, varun <varun.bhuvanendran@gmail.com 
> <mailto:varun.bhuvanendran@gmail.com>> wrote:
>
>     Is it possible to redirect a request for one port to another one.
>     Say a request like *http://domain_name:3030* be accepted and
>     redirected/mapped, so that the server should be able to process the
>     request like*http://domain_name:3000*. And a direct request like
>     *http://domain_name:3000*
>     should be restricted.
>     Is there any modules, directive in apache. I am new to apache. On
>     Ubuntu 12.04.
>
>

-- 
kind regards
varun <http://varun.bounceme.net/>

Mime
View raw message