-
右键单击任务栏小图标, Wamp Settings 中选中 Menu item: Online/Offonline; 然后左键单击时就可以在底部看到切换在线模式的选项
-
编辑wamp目录下的apache配置文件中的httpd.conf
- 244行左右:
<Directory /> AllowOverride none # Require all denied </Directory>
改为
AllowOverride none # Require all denied 注释掉原配置, 以免后面忘了是改的啥(下同) Require all granted
- 288行左右:
<Directory "${INSTALL_DIR}/www/"> # ... # AllowOverride all ... # onlineoffline tag - don't remove Require all denied </Directory>
改为
<Directory "${INSTALL_DIR}/www/"> # ... # AllowOverride all Options None ... # onlineoffline tag - don't remove # Require all denied Require all granted </Directory>
- 387行左右
<Directory "${INSTALL_DIR}/cgi-bin"> AllowOverride None Require all granted </Directory>
改为
<Directory "${INSTALL_DIR}/cgi-bin"> # AllowOverride None Options None Require all granted </Directory>
-
打开httpd-vhosts.conf 将对应域名下Directory里面内容更换为以下内容
<Directory "E:/www/public/"> Options +Indexes +Includes +FollowSymLinks +MultiViews AllowOverride All Require all granted </Directory>