基本:Connecting to Your Linux Instance from Windows Using PuTTY
第一步:打开PuTTY登录AWS EC2控制台
第 2 步:输入服务器地址
第 3 步:在 PuTTY 中浏览 Auth 私钥
第 4 步:通过 PuTTY 登录 AWS(输入“Login as name”,即您的 AWS ec2 实例名称。例如:ec2-user)
第 5 步:将目录更改为 /etc/httpd/conf ($ cd /etc/httpd/conf)
第六步:执行sudo vi httpd.conf更新httpd.conf文件。 (在 VI 编辑器中打开 httpd.conf 文件)
更新关注
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
到
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
还有
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride None
到
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride All
第 7 步:保存并退出 VI 编辑器。
要保存并退出 VI 编辑器,请按 [Esc] 键并输入 :wq
第 8 步:重启 Apache
输入sudo apachectl -k restart
最终截图