#1 Developer Help » Feeds, and approved items therein » March 9, 2015 11:06am

rebeccawand
Replies: 1

Hi

Currently implementing an RSS 2.0 feed for the "News" section of my BigTree website.

We have a number of news posts that are "published" but not "approved", as such we only allow the "approved" posts to show on the main site.

When creating an RSS feed, these "published" but not "approved" posts show up in the RSS feed, which is obviously not what we want, as is shown here: http://i.imgur.com/7xagjyD.png

Am I using the published/approved features incorrectly in this context? I can obviously customise /core/feeds/rss2.php to suit my needs but feel like I'm missing something quite obvious.

Thanks for any advice,

Rebecca smile

#2 General » BigTree and Nginx Configuration » March 2, 2015 4:35am

rebeccawand
Replies: 2

Hi all,

Spent a while playing around trying to get BigTree to play nice on Nginx having had searches come up blank, and have just registered to share my results on here for anyone else who they may be of use to...

Nginx Server Block wrote:
server {
        server_name [domain] www.[domain];
        listen 80;
        root [path to web root]/site;
        index index.php index.html index.htm;
        sendfile off;

        location / {
                try_files $uri $uri/  @rewrite;
        }
        location @rewrite {
                rewrite ^/(.*)$ /index.php?bigtree_htaccess_url=$1;
        }
        location ~ \.php$ {
                try_files $uri =404;
                fastcgi_split_path_info ^(.+\.php)(/.+)$;
                fastcgi_pass [socket path];
                fastcgi_index index.php;
                include fastcgi_params;
        }
}

Notably the try_files order and "sendfile off;" were particularly important in ensuring things worked correctly.

This then requires routing to be set as "htaccess" in /custom/environment.php like so:

/custom/environment.php wrote:
$bigtree["config"]["routing"] = "htaccess";

Got one BigTree site running very happily on Nginx 1.4.6, with another in the pipework!

Feel free to use this config for your own purposes and for documentation should you wish. Keep up the great work! smile

-Rebecca

Board footer

Powered by FluxBB

The Discussion Forum is not available on displays of this size.