Reverse-proxy NGINX + Apache with 404 on some files (css & js)

UncleBobby

New member
Joined
Oct 29, 2019
Messages
4
Hello :)
Im running Reverse-proxy NGINX + Apache and on one of my users subdomain whom is using php5.6 (php-fpm) we are getting the following error on some of the files

Code:
[07/Jul/2020:15:28:13 +0200] "GET /bootstrap.min.css HTTP/1.0" 200 430 "-" "Mozilla...."
[07/Jul/2020:15:28:13 +0200] "GET /nginx_static_filesbootstrap.min.css HTTP/1.0" 404 652 "-" "Mozilla...."

yet some files come back only with status code 200 and are not using "nginx_static_files"
Code:
[07/Jul/2020:15:28:29 +0200] "GET /theme/default/css/application.css HTTP/1.0" 200 4538 "-" "Mozilla...."

Inside Custom HTTPD Configurations i have the following values
Code:
|*if SUB="apps"|
|?DOCROOT=`HOME`/domains/`DOMAIN`/public_html/apps/|
|*endif|

and in public_html i have the following .htaccess
Code:
RewriteEngine on

RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Options +FollowSymLinks

RewriteCond %{SERVER_PORT} ^443$
RewriteCond %{HTTP_HOST} ^apps\.domain\.no$ [NC]
RewriteCond %{REQUEST_URI} !^/
RewriteRule ^(.*) /$1
any ideas?
 
Top