Forum OpenACS Q&A: Re: NGINX and CSS files

2: Re: NGINX and CSS files (response to 1)
Posted by Iuri Sampaio on
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;
       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;

        location /oacs/ {
             alias /var/www/evex;