ckruijntjens Wrote:
-------------------------------------------------------
> i am using this configuration.
>
> server {
> listen 80;
> server_name webmail.ckruijntjens.nl;
> return 301 https://$server_name$request_uri/webapp;
> }
>
>
> server {
> listen 443 http2;
> server_name webmail.ckruijntjens.nl;
> location / {
>
> #location ~* .(jpg|jpeg|png|gif|ico|css|js)$ {
> #expires 365d;
> #}
> proxy_ssl_session_reuse off;
> proxy_pass https://192.168.2.8;
> 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_redirect off;
> proxy_ssl_server_name on;
> proxy_ssl_verify off;
>
> }
> }
>
>
> What am i trying to achive is that when i enter
> https://webmail.ckruijntjens.nl it also redirects me to the
> proxy_pass.
>
> Now it shows me the welcome page from where the proxy is running nginx and not the proxy_pass machine?.