Hi all, This is my nginx config: <code> upstream identityserver { server 1.2.3.4:44341; } location /identityserver/ { proxy_pass http://identityserver/; proxy_redirect off; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;by rocklee44 - How to...
This also doesn't work : server { listen 192.168.0.19:80; # we serve both http and https listen 192.168.0.19:443 default_server ssl; server_name *.mydomain.com; ssl_certificate ssl_certificate_key if ($host = abc.mydomain.com) {set $test A;} if ($scheme = http) {set $test "${test}B";} if ($test = AB) { return 301 https://$host$requestby rocklee44 - How to...
I tried remove "default_server" at listen entry , still not work, anyone get same problem ?by rocklee44 - How to...
Hi all, My environment : Centos 6.9 + rh-nginx18-nginx-1.8.1-1.el6.x86_64 . I have wildcard certificate for domain *.mydomain.com , server accepts both http and https requests server { listen 192.168.0.19:80; # we serve both http and https listen 192.168.0.19:443 default_server ssl; server_name *.mydomain.com; ssl_certificate ssl_certificatby rocklee44 - How to...
Hello ? Anyone gets same problem ?by rocklee44 - How to...
Hi all, This is my environment : CentOS release 6.4 (Final) , nginx-1.8.1-1.el6.ngx.x86_64 nginx -V nginx version: nginx/1.8.1 built by gcc 4.4.7 20120313 (Red Hat 4.4.7-16) (GCC) built with OpenSSL 1.0.1e-fips 11 Feb 2013 TLS SNI support enabled I have 2 web sites : website1 (multi sub domain abc.website1.com , xyz.website1.com) and website2 (single domain website2.com) , this is nginby rocklee44 - How to...
it works fine if I change return 301 https://$server_name$request_uri; ==> return 301 https://$host$request_uri; My proxy_params : proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;by rocklee44 - How to...
I'm using Nginx-1.8.1-1.el6.ngx.x86_64 on Centos 6.4 64 bit, here what I tried : user nginx; worker_processes 8; error_log /var/log/nginx/error.log warn; pid /var/run/nginx.pid; events { worker_connections 1024; } http { include /etc/nginx/mime.types; default_type application/octet-stream; charset utf-8; log_format main '$remote_addrby rocklee44 - How to...
Hi all, Here my case: I have wildcard certificate for *.domain.com . What I want : - http requests to domain.com or *.domain.com are redirect to https - https requests to domain.com are passed to directory homesite port 82 - https request to management.domain.com are passed to directory management port 82 - https request to site1.domain.com , site2.domain.com , anythings.domain.com , ... (*by rocklee44 - How to...
Hi all, I'm using Nginx 1.8 build from source , Centos 6.4 64 bit, when I try to gzip_type directive in my virtualhost.conf I got error, I cannot restart Nginx: <code> # if congiguration is : gzip on; gzip_comp_level 9; gzip_min_length 1024; gzip_types text/plain text/css application/xml application/javascript image/jpeg image/x-icon image/gif image/png video/jpeg image/bmp image/tifby rocklee44 - How to...
Oh sorry I missed that, thank you very much, I excluded parameters are available as part of commercial subscription and my Nginx works properly now.by rocklee44 - How to...
I can bypass " open() "/opt/nginx/conf/proxy_params" failed (2: No such file or directory) in /opt/nginx/site-enabled/proxy.conf:8" by creating /opt/nginx/conf/proxy_params : <code> proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; client_max_body_size 100M; client_body_buffer_size 1mby rocklee44 - How to...
Hi all, I'm Nginx newbie, I read Beginer & Wiki Guide and I want to compile Nginx from source. My Nginx server will work as Web server + Caching + Reverse Proxy (load balancing) , my server Centos 6.4 64 bit. I downloaded Nginx 1.8.0 from here : http://nginx.org/download/nginx-1.8.0.tar.gz , then I compiled it with option: <code> ./configure --prefix=/opt/nginx --sbin-path=/opt/nginxby rocklee44 - How to...