一聚教程网:一个值得你收藏的教程网站

最新下载

热门教程

apache网站报错Internal Server Error解决办法

时间:2022-06-30 17:45:21 编辑:袖梨 来源:一聚教程网

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at [email protected] to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
今天mac本地网站出现错误提示,问题处理方式步骤
1.查找apache配置文件,找到错误日志路径,搜索ErrorLog
2.查看apache错误日志.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
3.重新规则出现问题
解决 : RewriteEngine命令需要rewrite mod的支持,
打开apache的配置文件httpd.conf ,取消 LoadModule rewrite_module modules/mod_rewrite.so前的注释
apache重启命令sudo apachectl restart

热门栏目