MRatWork Forum by Mustafa Ramadhan

Sawo Project - Kloxo-MR Discussions => Kloxo-MR Development => Topic started by: fossxplorer on 2017-04-10, 14:49:46

Title: JS not working with Nginx proxy anymore
Post by: fossxplorer on 2017-04-10, 14:49:46
@Mustafa,
what changes have you done to Nginx proxy lately? My update is from  ~ 1 week back and now that i've run fixall, the websites have issues with JS files, it's not working correctly at all.

Title: Re: JS not working with Nginx proxy anymore
Post by: fossxplorer on 2017-04-10, 14:56:01
Now i've switched to Apache only and things work, so it's the changes to Nginx proxy that's the problem!
Title: Re: JS not working with Nginx proxy anymore
Post by: fossxplorer on 2017-04-10, 15:00:54
The Nginx proxy domain conf has:
   #include '/opt/configs/nginx/conf/globals/switch_standard.conf';                                                                                   
        include '/opt/configs/nginx/conf/globals/switch_standard.conf';

That seems to wrong. It should rather have globals/proxy_standard.conf right?
Title: Re: JS not working with Nginx proxy anymore
Post by: MRatWork on 2017-04-10, 15:09:42
Just add keepalive_timeout in proxy*.conf and php-fpm*.conf in /opt/configs/nginx/conf/globals.
Title: Re: JS not working with Nginx proxy anymore
Post by: MRatWork on 2017-04-10, 15:11:24
Depend on selected, php-fpm*.conf or proxy*.conf will be copy to switch*.conf.
Title: Re: JS not working with Nginx proxy anymore
Post by: fossxplorer on 2017-04-10, 15:44:53
I see. Strange that all websites with JS started to behave strange due to inproper loading of JS files and resources.

Can i still use Nginx custom files like:_

/opt/configs/nginx/conf/globals/custom.* ?
Title: Re: JS not working with Nginx proxy anymore
Post by: MRatWork on 2017-04-10, 16:47:22
I see. Strange that all websites with JS started to behave strange due to inproper loading of JS files and resources.

Can i still use Nginx custom files like:_

/opt/configs/nginx/conf/globals/custom.* ?
Yes.