雷达智富

首页 > 内容 > 程序笔记 > 正文

程序笔记

mac apache 开启伪静态

2024-09-15 13

mac apache 开启伪静态


打开主配置文件 httpd.conf

sudo vim /etc/apache2/httpd.conf

去除前面的注释,加载 Rewrite 模块

LoadModule rewrite_module libexec/apache2/mod_rewrite.so

AllowOverride None 修改为 AllowOverride All

DocumentRoot "/Users/liang/Sites"<Directory "/Users/liang/Sites">    #AllowOverride None    AllowOverride All</Directory>

重启apache服务

sudo apachectl restart
更新于:4天前
赞一波!

文章评论

全部评论