httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Eckert <thomas.r.w.eck...@gmail.com>
Subject Re: [users@httpd] port redirecting mapping
Date Thu, 13 Feb 2014 09:46:45 GMT
I'm confused as to what your setup and intention is. From your original
message I assumed you were talking about a "normal" server but your
configuration example looks like a
reverse proxy. Also, I assumed you wanted requests to
http://domain_name:3030/ to be redirected but then you said *all* requests
to port 3030.

Does this suit your problem ?

Listen 10.10.10.10:3030 http
<VirtualHost *:3030>
  ServerName my_redirect_host
  Redirect permanent / http://domain_name/
</VirtualHost>


On Mon, Feb 10, 2014 at 2:57 PM, varun <varun.bhuvanendran@gmail.com> wrote:

>  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/ <http://domain_name/>*
> *    ProxyPassReverse :3030/ http://domain_name/ <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 <http://domain_name>* redirects
> to *http://domain_name:3030 <http://domain_name:3030>*
>
> Also tries "Redirect"
>     *Redirect :3030 http://domain_name <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#redirectand 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>wrote:
>
>>  Is it possible to redirect a request for one port to another one.
>> Say a request like *http://domain_name:3030 <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 <http://domain_name:3000>*. And a
>> direct request like *http://domain_name:3000 <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