Giter Site home page Giter Site logo

giellatekno / gtweb-apy-conf Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 2.0 117 KB

Configuration for gtweb's apertium-apy and apertium-html-tools installations

Home Page: http://gtweb.uit.no/jorgal/

Shell 100.00%
apertium configuration mt giellatekno

gtweb-apy-conf's People

Contributors

unhammer avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

gtweb-apy-conf's Issues

jorgal.uit.no doesn't work under ssl

SSL_ERROR_BAD_CERT_DOMAIN
If we had Apache exposed, it'd be just a new virtual host entry + an extra -d jorgal.uit.no to certbot, but gtweb has Apache behind nginx:

$ head -999 /etc/nginx/sites-enabled/*_apache_proxy.conf
==> /etc/nginx/sites-enabled/gtweb_apache_proxy.conf <==
## This handles proxying to apache. Anything going to gtweb.uit.no will be sent
## transparently. Apache should be running on 3080.

server {
    listen 80;
    server_name gtweb.uit.no ;
    root /var/www/html/ ;

    # Proxy logs: NB, apache will also have its own logs.
    access_log /var/www/logs/nginx.proxy.access.log;
    error_log /var/www/logs/nginx.proxy.error.log;

    if ($http_host != "gtweb.uit.no") {
         rewrite ^ http://gtweb.uit.no$request_uri$args permanent;
    }

    index index.php index.html;

    # location / {
    #      try_files $uri @proxy;
    # }

    # location ~* \.(js|css|jpg|jpeg|gif|png|svg|ico|pdf|html|htm)$ {
    #      expires      30d;
    # }

    location / {
         proxy_pass http://127.0.0.1:3080;
         include /etc/nginx/apache.proxy.confs;
    }

    # Also pass PHP to the proxy.
    location ~* \.php$ {
         proxy_pass http://127.0.0.1:3080;
         include /etc/nginx/apache.proxy.confs;
    }

    location ~ /\.ht {
            deny all;
    }

}

==> /etc/nginx/sites-enabled/jorgal_apache_proxy.conf <==
## This handles proxying to apache. Anything going to gtweb.uit.no will be sent
## transparently. Apache should be running on 3080.

server {
    listen 80;
    server_name jorgal.uit.no ;
    root /var/www/html/ ;

    # Proxy logs: NB, apache will also have its own logs.
    access_log /var/www/logs/nginx.proxy.access.log;
    error_log /var/www/logs/nginx.proxy.error.log;

    if ($http_host != "jorgal.uit.no") {
         rewrite ^ http://jorgal.uit.no$request_uri$args permanent;
    }
    rewrite ^/(.*)$ /jorgal/$1;

    index index.php index.html;

    location / {
         proxy_pass http://127.0.0.1:3080;
         include /etc/nginx/apache.proxy.confs;
    }

    # Also pass PHP to the proxy.
    location ~* \.php$ {
         proxy_pass http://127.0.0.1:3080;
         include /etc/nginx/apache.proxy.confs;
    }

    location ~ /\.ht {
            deny all;
    }

}

โ€“ do we need an nginx certificate just for jorgal?

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.