Apache reverse proxy configuration for ollama web gui

    AllowEncodedSlashes NoDecode
    ProxyPreserveHost On
    ProxyPass        "/" "http://127.0.0.1:8080/" nocanon
    ProxyPassReverse "/" "http://127.0.0.1:8080/"
    RewriteEngine on
    RewriteCond %{HTTP:Upgrade} websocket [NC]
    RewriteCond %{HTTP:Connection} upgrade [NC]
    RewriteRule ^/?(.*) "ws://127.0.0.1:8080/$1" [P,L]

Published by

Andreas

admin