🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
一般我们输入一些不存在的路径时,会返回以下错误: ``` Not Found The requested URL was not found on this server. * * * Apache Server at www.xxxx.cn Port 80 ``` 这可以清楚的知道服务器使用的中间件,最好隐藏掉。通过修改配置文件httpd.conf ``` ServerSignature off ServerTokens prod ``` serversignature 出现在apache所产生的像404页面、目录列表等页面的底部。servertokens目录被用来判断apache会在server http响应包的头部填充什么信息。关于Apache的一些配置项可参考:# [Apache知识整理](https://www.cnblogs.com/xing901022/p/3977953.html) ## 出现以上错误的原因:没有做伪静态,Apache是.htacces文件,ngix是nginx.conf文件