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.
Anti-Spam Guide
Post Reply
Registered User
Posts: 14
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
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

Post Reply

Return to “[3.1.x] Support Forum”

Who is online

Users browsing this forum: No registered users and 15 guests