1、sqli-labs源码准备
在https://codeload.github.com/Audi-1/sqli-labs/zip/master下载源码。
2、下载完成后,将源码解压至网站根目录
用文本编辑器打开路径 …\sqli-labs\sql-connections 下的db-creds.inc,然后修改密码为root,这里的密码要跟phpstudy里的php数据库的用户密码对上。
问题:
没掌握nginx服务器、网站根目录配置信息导致访问网页404
解决思路:
了解Nginx配置文件结构-重新配置phpstudy集成系统配置成功!
#配置这个网页 server {
listen 80;
server_name localhost;
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
root html;
index index.html index.htm;
}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}