• Hello. I need some help to get the Falcon caching engine working on a vps running nginx.

    The nginx.conf file contains the following entries :

    #user  nginx;
    
    # The number of worker processes is changed automatically by CustomBuild, according to the number of CPU cores, if it's set to "1"
    worker_processes  2;
    
    pid /var/run/nginx.pid;
    
    #error_log  logs/error.log;
    #error_log  logs/error.log  notice;
    #error_log  logs/error.log  info;
    
    events {
        include /etc/nginx/nginx-events.conf;
    }
    
    http {
        include       /etc/nginx/mime.types;
    
        # For user configurations not maintained by DirectAdmin. Empty by default.
        include /etc/nginx/nginx-includes.conf;
    
        # Supplemental configuration
        include /etc/nginx/nginx-defaults.conf;
        include /etc/nginx/nginx-gzip.conf;
        include /etc/nginx/directadmin-ips.conf;
        include /etc/nginx/directadmin-settings.conf;
        include /etc/nginx/nginx-vhosts.conf;
        include /etc/nginx/directadmin-vhosts.conf;
    }

    What should I add to this to get Falcon up and running?

    I am unsure if I can replace the current nginx.conf with the one proposed here without breaking anything.

    https://wordpress.org/plugins/wordfence/

Viewing 2 replies - 1 through 2 (of 2 total)
  • We use nginx on our servers (as many of our users do) so I’m pretty sure you can. 🙂

    Here’s a good page describing the process:
    http://www.wordfence.com/blog/2014/05/nginx-wordfence-falcon-engine-php-fpm-fastcgi-fast-cgi/

    tim

    haha… bummer the authors are being vague… Sorry WF.. He linked to that file already… It is confusing if you are not used to NGINX and I would advice changing that blog post to make a single wordfence.conf file that you then just add a link to in your Nginx.conf… would be much simpler… and if they have conf.d set up they could just copy a downloaded file from you there and be done…

    So bananapie just add

    include /etc/nginx/wf.conf;

    after the last include in the config you posted… Then SFTP into /etc/nginx

    Create a file called wf.conf

    and put this…

    server {
               all word fence code from where it says start word fence to end word fence (no other code)
    }

    make sure to put it in a server block… Then your should be good go..

    if you want to clean it up some more…

    just have this as the only include modual

    include /etc/nginx/conf.d/*.conf

    then make a folder in the nginx directory called conf.d (following nginx naming)

    and put all the config files in there… the asterisk will wild card any config so you can just add away in there and not have to update the nginx.conf each time

    make sure to restart nginx…

    Hope that helps…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Falcon engine on nginx’ is closed to new replies.