Thomas This was what i am looking for. Thnaks thomas. what i was trying to do is, allow access to *http://domain_name <http://domain_name> *, if a request like *http://domain_name:3030 <http://domain_name:3030> *comes it should be redirected/mapped to another link. From the above help i could redirect a request with :3030 to http://domain_name
I tried the *RewriteRule *with the intention to replace the :3030 with 80 from the url* http://domain_name:3030 <http://domain_name:3030>* like this *<VirtualHost *:80>* *RewriteEngine on RewriteCond %{QUERY_STRING} ^(.*):3030(.*)$ RewriteRule ^(.*)$ $%?:80% [L,R=301]* *</VirtualHost>* this seems not working. Is there any syntax error or something. Does this rewrite part be inside <*VirtualHost *:3030*> ... <*/VirtualHost*> On Thu, Feb 13, 2014 at 3:16 PM, Thomas Eckert <thomas.r.w.eck...@gmail.com>wrote: > 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.bhuvanend...@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.bhuvanend...@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/> >> > > -- kind regards varun <http://varun.bounceme.net>