[users@httpd] Rewrite - Almost there !

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi friends,

I'm trying to write a rule, that takes the client id and pass to an
application hosted on a jboss server.

<VirtualHost *:443>
   ServerName server.mydomain.com
   RewriteEngine On
   RewriteLog "/var/log/apache/rewrite-ssl.log"
   RewriteLogLevel 3

   RewriteCond %{REQUEST_URI} ^/app/.*
   RewriteRule ^/(.*)/([^/]+)$ http://localhost:5050/app/index.jsp?id=$2 [P]
</VirtualHost>

When I type 'server.mydomain.com/app/client1', the rule sends this to
my jboss sever:

http://localhost:5050/app/index.jsp?id=client1

The problem is that it was sending these requests too:

http://localhost:5050/app/index.jsp?id=stylesheet.css
http://localhost:5050/app/index.jsp?id=logo_client1.png

How can I make it stops in the first rewrite  (id=client1) ?

ps.: I'm using Apache 1.3.37 and JBoss (Tomcat) 4.0.3SP1.

Thanks!

Fabricio.

---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux