httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tapas Mishra <mightydre...@gmail.com>
Subject [users@httpd] rewrite rule for mingle
Date Thu, 10 Jun 2010 09:46:04 GMT
Hi,
 I am using a backend server to serve an application which is running
on apache and another apache which is front end to users coming from
internet.
So the back end server is hidden from outside.

I want if some one types in URL

http://site1.mydomain.com/application
then they be redirected to internal server which is running
/application on port 8080
this application server always does not have /application in URL

If some one types
http://site1.mydomain.com
and not
http://site1.mydomain.com/application
then in both cases they are seeing the same page.
Which should not happen.

Now the problem is I have written a ReWriteRule as following


   <IfModule mod_rewrite.c>
         ReWriteEngine on
         ReWriteRule /application/(.*) - [L]
         RewriteRule ^/(.*) http://site1.mydomain.com:8080/$1 [P,L]
     </IfModule>

/application gives a login screen after some one logs in /application
is not present on the URL of client browser
only http://site1.mydomain.com is present.
What is the problem in above ReWriteRule.

-- 
Tapas

---------------------------------------------------------------------
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


Mime
View raw message