[libre-riscv-dev] [Bug 182] Move to libre-soc.org

bugzilla-daemon at libre-riscv.org bugzilla-daemon at libre-riscv.org
Sun Feb 16 19:03:21 GMT 2020


http://bugs.libre-riscv.org/show_bug.cgi?id=182

--- Comment #7 from vklr at vkten.in <vklr at vkten.in> ---
In Nginx http redirects can be done with three directives

 1) return
    Faster; no regexp processing done
 2) rewrite
    Slower; regexp processing done
 3) try_files
    Slower; disk hog

Example with return directive

server {
    listen 80;
    listen 443 ssl;
    server_name libre-riscv.org;
    return 301 http://libre-soc.org$request_uri;
    return 301 https://libre-soc.org$request_uri;
}

Example with rewrite directive

server {
    listen 80;
    listen 443 ssl;
    server_name libre-riscv.org;
    rewrite ^ http://libre-soc.org$request_uri permanent;
    rewrite ^ https://libre-soc.org$request_uri permanent;
}

<link https://www.nginx.com/blog/creating-nginx-rewrite-rules/>

Note, I have not tested this on a real nginx setup.

If more help is needed please inform.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the libre-riscv-dev mailing list