I have been following the guides found here to install and configure couchpotato, sickrage, deluge, and plexpy. I am using nginx and used the guides for each app to put them behind a reverse proxy and it has been working very well. I decided to try out usenet, so I installed NZBGet and had no issue getting it to work with the reverse proxy. However, I am trying to follow the guide for nZEDb and so far the installation has gone fine but I am unable to access the install page. I tried adding this to my /etc/nginx/sites-available/reverse file:
I used alias for the site locations instead of root due to a suggestion on another forum post regarding a site that sits outside of the root. The root location I have defined is
It didn't seem to help. If anyone has any advice for how to properly configure this for access behind a reverse proxy I would greatly appreciate any assistance you can provide.
Thanks!
Code:
# Everything below this should not be changed unless noted.
location ~* \.(?:ico|css|js|gif|inc|txt|gz|xml|png|jpe?g) {
expires max;
add_header Pragma public;
add_header Cache-Control "public, must-revalidate, proxy-revalidate";
}
# nZEDb
# This is where the nZEDb covers folder should be in.
location ^~ /covers/ {
alias /var/www/nZEDb/resources;
}
#
location rewrites {
{
rewrite ^/([^/\.]+)/([^/]+)/([^/]+)/? /index.php?page=$1&id=$2&subpage=$3 last;
rewrite ^/([^/\.]+)/([^/]+)/?$ /index.php?page=$1&id=$2 last;
rewrite ^/([^/\.]+)/?$ /index.php?page=$1 last;
}
#
location /admin {
alias /var/www/nZEDb/www/admin;
}
#
location /install {
alias /var/www/nZEDb/www/install;
}
#phpMyadmin
location ~ \.php$ {
include /etc/nginx/fastcgi_params;
# Uncomment the following line and comment the .sock line if you want to use TCP.
#fastcgi_pass 127.0.0.1:9000;
fastcgi_pass unix:/var/run/php5-fpm.sock;
# The next two lines should go in your fastcgi_params
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
location /phpmyadmin {
alias /usr/share/;
index index.php index.html index.htm;
location ~ ^/phpmyadmin/(.+\.php)$ {
try_files $uri =404;
alias /usr/share/;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/fastcgi_params;
}
location ~* ^/phpmyadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
alias /usr/share/;
}
}
location /phpMyAdmin {
rewrite ^/* /phpmyadmin last;
}
Code:
# Root location
root /var/www/html;
It didn't seem to help. If anyone has any advice for how to properly configure this for access behind a reverse proxy I would greatly appreciate any assistance you can provide.
Thanks!