Custom 404 page for virtual host doesn't work

#1
I tried to change default error page (404) to my own for one of my virtual hosts but it doesn't work. It's still showing the default error page.

I used :

Configuration > Virtual Hosts > View/Edit > general tab >
Customized Error Pages > Add.

I selected Error code (404), URL for my error page (it exists on server) and saved and then restarted Litespeed.

No change at all. I still see default Litespeed error page.
 

mistwang

LiteSpeed Staff
#2
What you did should work with vhost configured in native config, if apache vhost is used, need to configure it in apache configuration.
You can check error log, and enable debug logging see if you can figure something out.
make sure you have tested the customer error page URL directly and it works.
 
#3
I don't use apache config, its native config. And the 404 page is working, I tested it. I'm afraid to enable debug log as its high traffic website.
 

mistwang

LiteSpeed Staff
#4
We tested custom error page feature, it is working fine.
I think rewrite rule may messed up the error page URL, as the URL will be injected into rewrite engine when processed.
You can enable rewrite log only first, see if you can figure something out.

You can dynamically turn on/off DEBUG logging with "killall -USR2 litespeed", keep the debug logging as short as possible, then track the log entries with your IP.
 
Top