Skip to content

SLES 12 Installation notes for NLCR

Rudolf edited this page Jul 23, 2015 · 8 revisions

SLES 12 Installation notes for National Library of the Czech Republic

There was too much hassle with building Python 2.7 in SLES 11, as there is no repo for Python 2.7. Sticking with SLES 12 is better choice regarding maintainability of Server.

Prerequisities

Nginx

Nginx is not part of SLES repository, build it from source: http://nginx.org/en/docs/configure.html with ./configure --prefix=/usr/local/nginx

curator00:~ # cat /usr/local/nginx/conf/nginx.conf

server {
    listen       80;
    server_name  curator00.webarchiv.cz;
    return       301 http://www.curator00.webarchiv.cz$request_uri;`
}

server {
    listen 80;
    server_name www.curator00.webarchiv.cz;
    access_log /var/log/seeder/access.log;
    error_log  /var/log/sseeder/error.log;

    #listen 443 ssl;
    #ssl_certificate      <ssl_path>.crt;
    #ssl_certificate_key  <ssl_path>.key;

    location / {
        uwsgi_pass  unix:///opt/git/Seeder/uwsgi.sock;
        include uwsgi_params;
    }

    location /media {
        root /opt/git/Seeder/Seeder;
    }

    location /static {
        alias /opt/git/Seeder/Seeder/static_root;
    }

}
Clone this wiki locally