This commit is contained in:
int 80h
2020-05-17 00:17:35 -04:00
parent 5c7f0f2275
commit e9f71f600d
7 changed files with 153 additions and 27 deletions

View File

@@ -180,6 +180,21 @@ async fn handle_connection(
None => {}
}
match &srv.server.scgi {
Some(sc) => {
let u = url.path().trim_end_matches("/");
match sc.get(u) {
Some(r) => {
cgi::scgi(r.to_string(), url, con, srv).await?;
return Ok(());
}
None => {}
}
},
None => {},
}
let mut path = PathBuf::new();
if url.path().starts_with("/~") && srv.server.usrdir.unwrap_or(false) {