Created
June 2, 2023 12:00
Nginx with multiple wordpress sites
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Command to activate | |
sudo curl -X PUT --data-binary @/home/user/wordpress-multi.config --unix-socket /run/control.unit.sock http://localhost/config | |
{ | |
"listeners": { | |
"127.0.0.1:8090": { | |
"application": "script_index_php" | |
}, | |
"127.0.0.1:8091": { | |
"application": "direct_php" | |
}, | |
"127.0.0.1:8092": { | |
"application": "script_index_php2" | |
}, | |
"127.0.0.1:8093": { | |
"application": "direct_php2" | |
} | |
}, | |
"applications": { | |
"script_index_php": { | |
"type": "php", | |
"processes": { | |
"max": 20, | |
"spare": 5 | |
}, | |
"user": "www-data", | |
"group": "www-data", | |
"root": "/var/www/html", | |
"script": "index.php" | |
}, | |
"script_index_php2": { | |
"type": "php", | |
"processes": { | |
"max": 20, | |
"spare": 5 | |
}, | |
"user": "www-data", | |
"group": "www-data", | |
"root": "/var/www/html2", | |
"script": "index.php" | |
}, | |
"direct_php": { | |
"type": "php", | |
"processes": { | |
"max": 5, | |
"spare": 0 | |
}, | |
"user": "www-data", | |
"group": "www-data", | |
"root": "/var/www/html", | |
"index": "index.php" | |
}, | |
"direct_php2": { | |
"type": "php", | |
"processes": { | |
"max": 5, | |
"spare": 0 | |
}, | |
"user": "www-data", | |
"group": "www-data", | |
"root": "/var/www/html2", | |
"index": "index.php" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment