nginx app.php css, javascript 404

Get help with installation and running phpBB 3.1.x here. Please do not post bug reports, feature requests, or extension related questions here.
Scam Warning
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTE: phpBB 3.1.x is at its End of Life stage and support will NOT be provided after July 1st, 2018.
Locked
HAZ
Registered User
Posts: 16
Joined: Sat Apr 06, 2002 11:59 pm

nginx app.php css, javascript 404

Post by HAZ »

phpBB 3.1.5
ubuntu server
Nginx as a Reverse Proxy for Apache

extensions utilizing the app.php were sending me to the homepage of my server

searched around phpbb and added the following:

Code: Select all

location /my_forum/app.php {
		try_files $uri $uri/ /my_forum/app.php?$query_string;
		}
inside the server block at: /etc/nginx/sites-available/default

now I get the intended app.php page but everything inside of it such as styles, javascript and such are trying to load with /app.php in the url

Failed to load resource: the server responded with a status of 404 (Not Found)

Code: Select all

http://my_server.com/my_forum/app.php/userranks/styles/prosilver/theme/responsive.css?assets_version=64
It's just the header and footer displaying without styles. The middle meat of the page is
No route found for "GET /"

adding the following to .htaccess ( after RewriteEngine On ) makes no difference

Code: Select all

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ app.php [QSA,L]

Options +FollowSymLinks
HAZ
Registered User
Posts: 16
Joined: Sat Apr 06, 2002 11:59 pm

Re: nginx app.php css, javascript 404

Post by HAZ »

3.2.1 now and I still can not figure out Nginx config for Nginx as a Reverse Proxy for Apache.

Nginx handles static @ 443
Apache gets php @ 8080
User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 52768
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve
Contact:

Re: nginx app.php css, javascript 404

Post by stevemaury »

Server setup and configuration is beyond the scope of these Support Forums, sorry.
I can stop all your spam. I can upgrade or update your Board. PM or email me. (Paid support)
Locked

Return to “[3.1.x] Support Forum”