I decided to take another approach to the scenario.
I tried to write NGINX settings in the other way around.
then, relocated openacs source to / and moved the other source (from another framework) /var/www/oacs/main
But it didn't work either. Only php-fpm succeed. location /oacs/ is wrongly set up.
NGINX settings currently are:
server {
listen 80;
server_name dev.evex.co;
root /var/www/oacs/main;
location ~ \.php$ {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
proxy_pass http://127.0.0.1:9000;
}
...
location /oacs/ {
alias /var/www/evex;
proxy_pass http://127.0.0.0.1:8000;
}