context proxy giving 403 error

#1
I have added this context when I access my domain.com/webmail it gives a 403 error please check my conf is write or not

context /webmail {
type proxy
handler webmail
addDefaultCharset off
}

extprocessor webmail {
type proxy
address http://127.0.0.1:2002/mail
maxConns 100
initTimeout 60
retryTimeout 0
respBuffer 0
}
 
#3
[INFO] [384763] [110.226.179.85:4414] Context [/webmail] is not accessible: access denied.

i have allow
Follow Symbolic Link for that vhost
 

Cold-Egg

Administrator
#8
First, you need to make sure curl http://127.0.0.1:2002/abc works locally.

Then you can add the rewrite inside of the rewrite tab.

Code:
REWRITERULE ^(.*)$ HTTP://webmail /$1 [P,L,E=PROXY-HOST:WWW.EXAMPLE.COM]
If it works, then you can add a rewritecond for the "webmail".

Note, please substitute WWW.EXAMPLE.COM with your real domain.
 
Top