hopefully someone can help me.
I installed a Split VPN Tunnel with this guide and it works (thx for this guide : ) on my Openmediavault 3.0 Machine.
I wanne to use nzbget with this tunnel, so i change the deamon user to the vpn user an this works also.
The Problem is i cant access the WebUi when nzbget run as Vpn user, the solution from this guide is to use nginx as a resverse Proxy, i tryed to past the infomation form the Guide in /etc/nging/sites-enabled/openmediavault-webgui but this doesent work.
I am totally new to nginx, maybe some can help me.
I installed a Split VPN Tunnel with this guide and it works (thx for this guide : ) on my Openmediavault 3.0 Machine.
I wanne to use nzbget with this tunnel, so i change the deamon user to the vpn user an this works also.
The Problem is i cant access the WebUi when nzbget run as Vpn user, the solution from this guide is to use nginx as a resverse Proxy, i tryed to past the infomation form the Guide in /etc/nging/sites-enabled/openmediavault-webgui but this doesent work.
I am totally new to nginx, maybe some can help me.
Code:
server {
server_name 192.168.178.80, openmediavault-webgui;
root /var/www/openmediavault;
index index.php;
autoindex off;
server_tokens off;
sendfile on;
large_client_header_buffers 4 32k;
client_max_body_size 25M;
error_log /var/log/nginx/openmediavault-webgui_error.log error;
access_log /var/log/nginx/openmediavault-webgui_access.log combined;
error_page 404 = /404.php;
location /404.html {
internal;
}
location /extjs6/ {
alias /usr/share/javascript/extjs6/;
expires 2d;
}
location ~ ^/(css|js|images)/ {
expires 2d;
}
location /favicon {
expires 14d;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm-openmediavault-webgui.sock;
fastcgi_index index.php;
fastcgi_read_timeout 60s;
include fastcgi.conf;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
location /test {
proxy_pass http://127.0.0.1:6789;
}
listen 80;
include /etc/nginx/openmediavault-webgui.d/*.conf;
}