Add PHP-related factory functions

This commit is contained in:
Adrian Heine 2018-06-27 19:56:32 +02:00
parent c431e578e6
commit c17267ada3
3 changed files with 37 additions and 7 deletions

View file

@ -100,7 +100,7 @@ location @proxy {{
NginxServer::new(domain, content, command_runner)
}
pub fn new_php(domain: &'a str, socket_path: &'a str, static_path: &'a str, command_runner: &'a C) -> Self {
pub fn new_php(domain: &'a str, socket_path: Cow<'a, str>, static_path: &'a str, command_runner: &'a C) -> Self {
let content = server_config(domain, &format!("
root {};
index index.html index.php;