-
Notifications
You must be signed in to change notification settings - Fork 218
Open
Description
Hi :)
In my setup, I want to show a custom error page when mod security (owasp) throws an error like 403.
I use openlitespeed.
How can I make this happen?
I tried putting custome error pages on the server config level (httpd_conf.conf) with no success like this:
context /error.html {
location /var/www/vhosts/localhost/html/error.html
allowBrowse 1
indexFiles error.html
}
include /usr/local/lsws/conf/custom_error_pages.conf
I tried also putting the custom error pages on vhost level, no success...
I found that the 403 pages come out of httpsstatuscode.cpp
openlitespeed/src/http/httpstatuscode.cpp
Line 207 in 252f18c
| "<br>Proudly powered by LiteSpeed Web Server" |
Please advise :)
Metadata
Metadata
Assignees
Labels
No labels