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
Post Reply
HAZ
Registered User
Posts: 15
Joined: Sat Apr 06, 2002 11:59 pm

nginx app.php css, javascript 404

Post by HAZ » Sat Jun 27, 2015 11:23 pm

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: 15
Joined: Sat Apr 06, 2002 11:59 pm

Re: nginx app.php css, javascript 404

Post by HAZ » Sat Dec 02, 2017 12:19 pm

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: 47990
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 » Sat Dec 02, 2017 3:39 pm

Server setup and configuration is beyond the scope of these Support Forums, sorry.
For REALLY good and VERY inexpensive hosting CLICK HERE

All unsolicited PMs will be ignored.

Post Reply

Return to “[3.1.x] Support Forum”

Who is online

Users browsing this forum: Yandex [Bot] and 24 guests