Welcome! Log In Create A New Profile

Advanced

Virtual Directory proxypass

Posted by christensenr 
Virtual Directory proxypass
April 30, 2014 04:06PM
I'm looking to be able to hit my dnsname/gallery and access my turnkey linux gallery virtual appliance

I've got this working with subsonic and passing to the right server, i'm having trouble with gallery3.

server {
listen 443;
server_name myexternaldns;

index index.html index.htm index.php;
fastcgi_param HTTPS on;
include /etc/nginx/include/php;

ssl on;
ssl_certificate /etc/nginx/ssl/server.crt;
ssl_certificate_key /etc/nginx/ssl/server.key;
ssl_prefer_server_ciphers on;
ssl_protocols SSLv3 TLSv1;
ssl_session_cache shared:SSL:10m;


location /subsonic {
proxy_pass http://192.168.5.93:4040/subsonic;
proxy_set_header Host $http_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;
proxy_redirect http:// https://;
}
location /gallery {
proxy_pass https://192.168.5.15;
proxy_set_header Host $http_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;
proxy_redirect http:// https://;


now, when the virtual appliance for gallery is installed it's already preconfigured. It is hosted right at https://<ipaddress>

When i try https://<myexternaldns>/gallery, it passes, but only partial (i've attached what i get) when i try to login it returns the url as https://<myexternaldns> without the /gallery. How should my line look for the gallery entry?

nginx -v results: 0.7.67 i'm using the turnkey linux nginx virtual appliance.

Thanks for any help
Attachments:
open | download - galleryerror.jpg (52.3 KB)
Re: Virtual Directory proxypass
April 30, 2014 05:33PM
realized i was running on a pretty old version, just added the repository and key to the appliance and updated. I'm now on 1.6.0 and now nothing is working, no errors in the log, just page cannot be displayed and the webmin for the appliance is not working. I've was on turnkey nginx 12.1, updated to 13.0 and recreated my config. I'm at least back to original issue.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 208
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready