mod_jk is not redirecting to the getContextPath() when its a servlet that calls it

Issues related to applications and software problems
Post Reply
mySKILLZ
Posts: 17
Joined: 2018/02/21 09:10:21

mod_jk is not redirecting to the getContextPath() when its a servlet that calls it

Post by mySKILLZ » 2018/07/20 11:53:51

hello
im having a problem in my server with mod_jk

my mod_jk scripts is like
------------------------------
<VirtualHost _default_:443>
ServerName isoko.ga:443
ServerAlias www.isoko.ga
# DocumentRoot /var/www/html

RewriteEngine on
#RewriteLog /var/skillz/logs/apache-mod_rewrite
RewriteRule ^/(.*)$ /SuperShop/$1 [L,PT]
JkMount /SuperShop/* worker1
</virtualHost>
---------------------------------

but when i try to log in what this does it just
APPEND (SuperShop) into the path,
well it calls the get context path then it append that

show me how to treat this

i have this (https://isoko.ga/uploaded_products.jsp) BEFORE LOGGIN IN
i get this (https://isoko.ga/SuperShop/uploaded_products.jsp) AFTER LOGGIN IN

how can i get https://isoko.ga/uploaded_products.jsp even AFTER LOGGIN IN
via this (RewriteRule ^/(.*)$ /SuperShop/$1 [L,PT])

AFTER ALL I TRIED TI REMOVE SuperShop and make it like

RewriteRule ^/(.*)$ /$1 [L,PT] (it didnt work)


AND I ALSO TRIED

RewriteRule ^/SuperShop/(.*)$ /$1 [L,PT]

IT DIDNT' WORK TOO

PLEASE HELP ME..
this is the last card i'm left to play before i embed the payment system
need your help

thx

Post Reply