Beiträge von Bigdesaster

    Hi,
    should work. It just works for me (but i modified the filters above. Just look again)


    What version of omv are you running? I'm running OMV3. You can check if sub_filters is compiled when calling nginx -V via SSH
    There should be the ngx_http_substitutions_filter_module


    Another error can be a simple "copy and paste error"

    It sounds like you did some copy and paste work here. It's not uncommon to snag some extra characters that are invisible at the end of line (EOL). Try this:
    Run your text through this tool: http://www.textfixer.com/tools/remove-line-breaks.php
    then fix any breaks that may have been removed and will be affected by the comments.
    This worked for me. Hope it works for you.

    Sorry of doubleposting.


    The solution was to use substitutions instead of the ngx_http_sub_module. May work too but is not included in the nginx package of omv


    This configurtation is working for me:


    Ok thank you.
    Then I have to try it.
    Something to be considered? Are any special other flags set for omv?
    Is the default .configure



    What happens with modified nginx if updates were installed via omv-webinterface?


    Edit:
    using nginx -V shows that ngx_http_substitutions_filter_module is already included.
    Should be possible to replace the relative urls with that. I'm just trying

    Hello,


    i tried to use reverse proxy with nginx to access some websites in my local network.


    But there seems to be a problem when websites uses non relative urls in their htmlcode (like "src='/extjs/...'")
    So nginx would search that in his local root directory.
    If found out that nginx can modify the html code of the websites sent to the browser by using "sub filter".


    The ngx_http_sub_module module is a filter that modifies a response by replacing one specified string by another.
    This module is not built by default, it should be enabled with the --with-http_sub_module configuration parameter.


    Propaply that seems not enabled in the nginx plugin for OMV.
    Is ist possible to build an nginx plugin with that option?


    Would be very nice.
    Thank you

    Hello,
    i think i got the same problem.
    proxy_pass can be used as to any other site


    The Problem seems to be that there are links to the root directory in omv htmlcode (like "src='/extjs/...'")
    So the server would search that in his local root directory.
    Got the same Problem for other websites i'd like to use behind nginx as reverse proxy.


    Maybe there is a solution with using "ngx_http_sub_module".
    But i'm not sure at this moment.