You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by José Euclides Silva Junior <eu...@gmail.com> on 2006/08/02 22:41:43 UTC

[users@httpd] Hiding directory from the browser address field

---------- Forwarded message ----------
From: José Euclides Silva Junior <eu...@gmail.com>
Date: 02/08/2006 17:17
Subject: Hiding directory from the browser address field
To: users-info@httpd.apache.org

Hi guys,
i need to hide the application(Java) root directory from the browser, as you
can see at these steps example:
1) Http request: www.xxxx.com
2) Apache runs module Alias: redirect www.xxxx.com to www.xxxx.com/somedir/
3) App runs and Apache returns www.xxxx.com/somedir/  to the browser

But, at this thime(step 3) i need to alter some http header field, because
Apache must JUST return "www.xxxx.com" to the browser, instead of
"www.xxxx.com/somedir".
How coud i do it? Any alias ou rewrite directive available?
Thanks in advance, Euclides.