Re: [users@httpd] Rewrite - Almost there !

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

 



Joshua,

It works very fine ! :-)
I'm so grateful !

Finally, my config is working:

---- begin ----
    RewriteCond %{REQUEST_URI} ^/app/.*
    RewriteCond %{REQUEST_URI} !\.
    RewriteRule ^/(.*)/([^/]+)$ http://localhost:5050/app/index.jsp?id=$2 [P,L]
    RewriteRule ^/app/(.*) http://localhost:5050/app/$1 [P]
---- end ----

Regards,

Fabricio.

2006/8/7, Joshua Slive <joshua@xxxxxxxx>:
On 8/7/06, SOPRO <soprobr@xxxxxxxxx> wrote:
> Joshua,
>
>  Thanks so much !
>  I used the option "!\." and it works ... :-)
>  However, the files 'stylesheet.css' and 'logo_client1.png' have not
> been loaded properly.
>  Do you have any idea ?
>
> ps.: If I access JBOSS directly, the stylesheet and images are loaded fine.

Sorry, I assumed that these files were hosted by apache, not jboss.
If they are hosted by jboss, you need to also change [P] to [P,L] and
add something like
RewriteRule ^/app/(.*) http://localhost:5050/app/$1 [P]

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



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