Max_001 Wrote:
-------------------------------------------------------
> Ha i got it working. i not 100% understand it, but it works now.
> Magic seems was the Header entrys.
>
> Best regards
>
> Max
>
>
> server {
> listen 80 default_server;
> listen [::]:80 default_server;
> server_name _;
> return 301 https://$host$request_uri;
> }
>
> server {
> listen 443 ssl default_server;
> listen [::]:443 ssl default_server;
> ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
> ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH';
> ssl_certificate /etc/nginx/ssl/ca.crt;
> ssl_certificate_key /etc/nginx/ssl/ca.key;
>
>
> #Desn't really matter - everything is proxied
> root /var/www/html;
> index index.html;
> server_name _;
>
> location /{
> proxy_pass https://xxxxxxxx;
> rewrite ^/$ /vsphere-client/?csp permanent;
> }
>
> location /vsphere-client/{
> proxy_set_header Host $host;
> proxy_set_header X-Real-IP $remote_addr;
> proxy_pass https://xxxxxx;
> }
>
> }
Hello,
It's not working. Can you post your working config?
I've removed ""rewrite ^/$ /vsphere-client/?csp permanent;"" from ""location /"" so i can see the vcenter home page
I have vCenter 6; and it redirects me still to the private IP
I see this in firefox: location https://10.10.11.109/vsphere-client/UI.swf (my vcenter private IP)
type application/x-shockwave-flash
Maybe because of this location?
-------------------------------------------------------
> Ha i got it working. i not 100% understand it, but it works now.
> Magic seems was the Header entrys.
>
> Best regards
>
> Max
>
>
> server {
> listen 80 default_server;
> listen [::]:80 default_server;
> server_name _;
> return 301 https://$host$request_uri;
> }
>
> server {
> listen 443 ssl default_server;
> listen [::]:443 ssl default_server;
> ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
> ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH';
> ssl_certificate /etc/nginx/ssl/ca.crt;
> ssl_certificate_key /etc/nginx/ssl/ca.key;
>
>
> #Desn't really matter - everything is proxied
> root /var/www/html;
> index index.html;
> server_name _;
>
> location /{
> proxy_pass https://xxxxxxxx;
> rewrite ^/$ /vsphere-client/?csp permanent;
> }
>
> location /vsphere-client/{
> proxy_set_header Host $host;
> proxy_set_header X-Real-IP $remote_addr;
> proxy_pass https://xxxxxx;
> }
>
> }
Hello,
It's not working. Can you post your working config?
I've removed ""rewrite ^/$ /vsphere-client/?csp permanent;"" from ""location /"" so i can see the vcenter home page
I have vCenter 6; and it redirects me still to the private IP
I see this in firefox: location https://10.10.11.109/vsphere-client/UI.swf (my vcenter private IP)
type application/x-shockwave-flash
Maybe because of this location?