Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 22nd August 2012, 14:09
talkingnews talkingnews is offline
Join Date: Jan 2011
Posts: 67
Thanks: 15
Thanked 6 Times in 6 Posts
Default Nginx config to see "virtual" files.

PyroCMS is a CMS built on top of Codeigniter, and I'm using a module called Pyrostreams. But the reason I'm posting here is because this is actually about nginx config as Apache works fine.

Everything about the entire setup works fine on nginx, except it appears to be trying to call a couple of files from a "virtual" directory, which doesn't exist.

Here's the log entry:

"GET /streams_core/field_asset/css/datetime/datepicker.css HTTP/1.1" 404

The file actually exists in


The author says it works just fine in Apache, and isn't able to install nginx himself.

However, here's what he replied with:

Looks like it is trying to access the URL as an actual file. The files technically doesn't exist in that location, so it may have a problem with that.

The assets are actually loaded via PHP - there is a field_asset controller under the streams_core module that takes the file name in the URL and outputs it.

It's strange that there would be a compete 404 since it should map anything in index.php/streams_core/field_asset to a function. If you go to index.php/streams_core/field_asset, do you get a blank page?
And yes, I do get a blank page, rather than a 404, so I suppose that shows it's hitting the controller OK?

Here's the nginx config that Pyrocms suggest:

Here's the complete nginx config file I'm using:

And here's the .htaccess file that comes with the application (for those using Apache)

Been round in a few circles trying to figure this out - a bit lost now. Any ideas would be appreciated.
Reply With Quote
Sponsored Links


code igniter, nginx, php-fpm

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Make changes to nginx config stick harkman Installation/Configuration 4 3rd August 2012 13:04
Requesting explanation of config files in /etc/apache2 (Debian Etch, Apache 2.2.3) rjamesd Server Operation 2 24th August 2007 14:16
ISPConfig 2.2.14 released till General 48 20th July 2007 00:46
pure-ftp woes d3th_n1gG4 Server Operation 4 24th January 2007 14:11
Network questions regarding Ubuntu Server lubod Installation/Configuration 7 3rd January 2007 19:53

All times are GMT +2. The time now is 23:59.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.