diff options
author | Fbenas <philbeansburton@gmail.com> | 2017-08-25 00:26:03 +0100 |
---|---|---|
committer | Fbenas <philbeansburton@gmail.com> | 2017-08-25 00:26:03 +0100 |
commit | 30a63abdb3bd42288da88db503e7ba1c8562f863 (patch) | |
tree | 95f5966d9b1d2bda85052583325bcd6ead97fa3c | |
parent | 47b154758e789e75ec597d88540cdb7f4e352225 (diff) |
Add variables to nginx stub
-rw-r--r-- | nginx/stub.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/nginx/stub.php b/nginx/stub.php index e362fb3..0e67918 100644 --- a/nginx/stub.php +++ b/nginx/stub.php @@ -1,14 +1,14 @@ <?php return [ - "server { + "server { listen *; - server_name %s; + server_name $domain; - access_log /web/sites/%s/logs/%s.access_log main; - error_log /web/sites/%s/logs/%s.error_log info; + access_log /web/sites/$name/logs/$name.access_log main; + error_log /web/sites/$name/logs/$name.error_log info; - root /web/sites/%s/web; + root /web/sites/$name/web; location ~ \.php$ { # Test for non-existent scripts or throw a 404 error |