How to allow Servlet path in dispatcher domain | Community
Skip to main content
keshava219
Level 3
July 22, 2022
Solved

How to allow Servlet path in dispatcher domain

  • July 22, 2022
  • 1 reply
  • 1469 views

Working fine on author mode but not in Dispatcher level

I want to allow servlet path in publisher domain sample like:

"/bin/customproject/mylink?myId=178462736472364762"

 

In dispatcher configuration on filter.any file 

added new rule with 

# Allow my link Path
/01 { /type "allow" /url "/bin/mysites/*"}

 

but showing 404 in publish any reference?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by arunpatidar

HI,

I would suggest to register a servlet via resourceType but path.

Use a selector and extension during servlet registration and allow those from dispatcher.

 

But answering your original question, Add this at very last or before deny rules

# Allow my link Path
/010 { /type "allow" /path "/bin/customproject/mylink"}

1 reply

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
July 22, 2022

HI,

I would suggest to register a servlet via resourceType but path.

Use a selector and extension during servlet registration and allow those from dispatcher.

 

But answering your original question, Add this at very last or before deny rules

# Allow my link Path
/010 { /type "allow" /path "/bin/customproject/mylink"}

Arun Patidar