我在JBOSS应用服务器前面有一个Apache Web服务器。我已经在Apache中配置了ErrorDocument (包含所有的HTTP error code),以返回一个固定的字符串"There is an error“。访问应用程序是通过Apache Web Server访问JBOSS应用程序服务器。但是,当错误代码404从JBOSS服务器抛出时,该Apache服务器没有捕获错误,也
我试图指定一个自定义404页面并保留该URL,但是使用下面的命令会给出错误的nginx: [emerg] "proxy_pass" cannot have URI part in location givenlocation, or inside "if" statement, or inside "limit_except" block in... error_page 404@404</em