2 3 4class TestApplicationPHP(TestApplicationProto): 5 application_type = "php" 6 7 def load(self, script, index='index.php', **kwargs):
| 3 4 5class TestApplicationPHP(TestApplicationProto): 6 application_type = "php" 7 8 def load(self, script, index='index.php', **kwargs):
|
9 10 self._load_conf( 11 { 12 "listeners": {"*:7080": {"pass": "applications/" + script}}, 13 "applications": { 14 script: { 15 "type": self.application_type, 16 "processes": {"spare": 0}, 17 "root": script_path, 18 "working_directory": script_path, 19 "index": index, 20 } 21 }, 22 }, 23 **kwargs 24 )
| 10 11 self._load_conf( 12 { 13 "listeners": {"*:7080": {"pass": "applications/" + script}}, 14 "applications": { 15 script: { 16 "type": self.application_type, 17 "processes": {"spare": 0}, 18 "root": script_path, 19 "working_directory": script_path, 20 "index": index, 21 } 22 }, 23 }, 24 **kwargs 25 )
|