Code Monkey home page Code Monkey logo

nginx-custom-build's Introduction

About this Nginx

Important

This Nginx build currently supports version 1.6.x. Please see the tags within this repository for previously supported versions (1.4.x).

This version of Nginx is customised in a number of different ways:

  • Adds support for Shibboleth authentication for applications served by Nginx using the nginx-http-shibboleth module. This requires a Shibboleth SP built with FastCGI support and correctly configured. Shibboleth authentication with applications served via Nginx.
  • Has SPDY support built (depends on OpenSSL 1.0.1 being installed)
  • Adds LDAP authentication for Nginx using nginx-ldap-auth.
  • Has custom HTML XSLT transformation built in. This allows transformation of HTML documents on-the-fly via XSL (eg that which comes from Diazo for theming).
  • Has the ngx-fancyindex module for folder listings.
  • Has the ngx_ajp_module module for talking to AJP backends.
  • Has XLST support built.

See the build script for details of where these dependencies live.

Building Nginx

  1. Ensure Vagrant is installed.

  2. Run the following:

    git clone https://github.com/jcu-eresearch/nginx-custom-build.git
    cd nginx-custom-build
    vagrant up; vagrant destroy -f
    ls x86_64
    
  3. Enjoy your new RPMs, available in the current directory.

If you're not into Vagrant, then you can manually run https://github.com/jcu-eresearch/nginx-custom-build/blob/master/nginx-build.sh on your own EL 6 machine. The script will automatically clone the latest patches from this GitHub repository.

This Vagrant configuration will always build the latest stable version of Nginx.

Testing and debugging nginx-http-shibboleth

Use the configuration provided, as your /etc/nginx/nginx.conf file, replacing anything that's already there. The configuration configures Nginx for debugging, and when nginx.debug (from the nginx-debug package) is run, will cascade all debug messages into the console.

If you're specifically interested in the Shibboleth module, watch the output for comments consisting of shib request authorizer (and shib request in general. Using the configuration below, you can make a simple request to make the Shib request authorizer work:

curl -i http://localhost/test1

Using the configuration provided, must result in a 401 Not Authorized response, which is correct.

Tests

Run the following:

curl -i http://localhost/test{1,2,3}

and compare the request results with the comments in the configuration above. If any of the above don't behave exactly as specified this, the Shibboleth module may need to be updated. If you find this, report an issue over at https://github.com/nginx-shib/nginx-http-shibboleth.

If you think you've encounted a problem with the interaction with this specific Nginx build, then report an issue to this repository. Thanks!

Credits

nginx-custom-build's People

Contributors

benh57 avatar davidjb avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.