This is a Jetty+Solr installation Fabric boilerplate, tested under Ubuntu 12.04.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Jetty+Solr Fabric Boilerplate

This is a Jetty+Solr installation Fabric boilerplate, tested under Ubuntu 12.04. Extend upon install_server task or just copy the installation methods, the choice is yours.

When your script is done and the installation is complete, you can access the solr admin under


Jetty and Solr config files, as well as a custom schema are stored in /solr and they are used during the installation process. Replace them with your own or extend them.


You can secure the solr installation by using _create_solr_passwd to create a .htpasswd file that can be used by the admin view.

_create_solr_passwd("admin", "mypassword")

This is how you would implement it in Nginx:

location /solr/ {
    auth_basic            "Restricted Solr admin";
    auth_basic_user_file  /opt/solr/.htpasswd;

    proxy_set_header X-Forwarded-Host $host;
    proxy_set_header X-Forwarded-Server $host;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_pass http://localhost:8080;

You also need to add a IPAccessHandler in the jetty server handler. It's included in this repro, just uncomment lines 123 to 135 in solr/jetty.xml.

<Get id="oldhandler" name="handler" />
<Set name="handler">
    <New class="org.eclipse.jetty.server.handler.IPAccessHandler">
        <Set name="handler"><Ref id="oldhandler"/></Set>
        <Set name="white">
            <Array type="java.lang.String">

When you're done, just open up and provide the login you just created.


Fabric and Fabtools.


  • Add cleanup commands for downloaded content
  • Add more security examples (think firewall/linux)


How to Deploy Solr 4.3 On Jetty 9

Ubuntu 12.04 – Install Solr 4 with Jetty 9