You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Rajendra Rait <ra...@ambrosiainfotech.com> on 2007/08/09 11:49:19 UTC
[users@httpd] URL Redirect
Hi,
I have Apache 2.2 and i am trying to implement apache redirect request
to a JBoss server. Now wht's happening is that whenever some hits
www.#*$!#*$!.com it very well gets redirected to the desired
http://aaa.aaa.aaa.aaa:8080/website/home/home.jsp,
<http://www.SearchEngineWorld.com/r/redirect.cgi?f=92&d=3417703&url=http://aaa.aaa.aaa.aaa:8080/website/home/home.jsp,>
but the thing is the whole
http://aaa.aaa.aaa.aaa:8080/website/home/home.jsp
<http://www.SearchEngineWorld.com/r/redirect.cgi?f=92&d=3417703&url=http://aaa.aaa.aaa.aaa:8080/website/home/home.jsp>
link is displayed instead of the URL www.#*$!#*$!.com
Is it possible to hide the whole IP and the contents and just display
www.#*$!#*$!.com, while the user browses the site, here is my Virtual
host directive.
<VirtualHost #*$!.#*$!.#*$!.#*$!:80>
ServerAdmin webmaster@#*$!#*$!.com
DocumentRoot "/var/www/html"
Options Indexes FollowSymLinks
ServerName www.#*$!#*$!.com
ErrorLog logs/#*$!#*$!.com-error_log
Redirect / http://aaa.aaa.aaa.aaa:8080/website/home/home.jsp
<http://www.SearchEngineWorld.com/r/redirect.cgi?f=92&d=3417703&url=http://aaa.aaa.aaa.aaa:8080/website/home/home.jsp>
</VirtualHost>
Please let me something on how to achieve this.
Thanks.
Rajendra.
Re: [users@httpd] URL Redirect
Posted by Joshua Slive <jo...@slive.ca>.
On 8/14/07, Rajendra Rait <ra...@ambrosiainfotech.com> wrote:
>
> I did that using ProxyPass, but is it possible to keep the URL name i.e.
> http://www.aaaaa.com constant through the site.
No. That's not how the web works and that is a terrible idea because
it breaks lots of useful stuff like bookmarking, caching, etc.
(In reality, some sites do this by using an invisible frame in html to
include the main site content. But it is still a horrible idea.)
Joshua.
---------------------------------------------------------------------
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] URL Redirect
Posted by Rajendra Rait <ra...@ambrosiainfotech.com>.
---------------------------------------------------------------------
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] URL Redirect
Posted by Joshua Slive <jo...@slive.ca>.
On 8/9/07, Rajendra Rait <ra...@ambrosiainfotech.com> wrote:
> Is it possible to hide the whole IP and the contents and just display
> www.#*$!#*$!.com, while the user browses the site, here is my Virtual
> host directive.
You'd need to use a reverse proxy / gateway. See, for example,
http://www.apachetutor.org/admin/reverseproxies
Joshua.
---------------------------------------------------------------------
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