Hi,
same issue to me. did you solve it?
if i create an backup, the result is that the backup should be around 30GB. But on my webdisk the backup is stored only 8GB were used.
So i think there is something wrong.
Hi,
same issue to me. did you solve it?
if i create an backup, the result is that the backup should be around 30GB. But on my webdisk the backup is stored only 8GB were used.
So i think there is something wrong.
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:
location ^~ /omvadmin/ {
#filter (replace relative URI in HTML-code of the site)
subs_filter_types text/html text/css text/xml;
subs_filter href(/s*)?=(/s*)?('|")?/ href=$3/omvadmin/ ir; # should replace all href=/uri with href=uri
subs_filter src(/s*)?=(/s*)?('|")?/ src=$3/omvadmin/ ir # should replace all src=/uri with src=uri
# subs_filter /images/ /omvadmin/images/; # replace image directory directly
# subs_filter /extjs/ /omvadmin/extjs/; # replace extjs directory directly
#proxy settings
proxy_pass http://localhost:80/; # / at the end is important !
proxy_redirect off; #dont send redirect 301/302
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
}
Alles anzeigen
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.