wildcard redirect
Edho P Arief
edhoprima at gmail.com
Wed Aug 12 17:23:04 MSD 2009
2009/8/12 Juergen Gotteswinter <jg at internetx.de>:
> but it loops :(
>
> heres the full part incl. ssl part
>
>
> server {
> listen xxx:80;
> server_name *.xxx.com;
>
> rewrite ^/(.*) https://login.xxx.com$request_uri permanent;
> }
>
>
>
> server {
> listen xxxxx:443;
> ssl on;
> ssl_protocols SSLv3 TLSv1;
> ssl_ciphers AES128-SHA:AES256-SHA:RC4-SHA:DES-CBC3-SHA:RC4-MD5;
> ssl_certificate /etc/nginx/ssl/www.xxx.com.crt;
> ssl_certificate_key /etc/nginx/ssl/www.xxx.com.key;
> ssl_session_cache shared:SSL:10m;
> ssl_session_timeout 10m;
>
>
> server_name _;
> location / {
> proxy_pass http://www.xxx.com;
> access_log off;
> proxy_set_header X-Real-IP $remote_addr;
> proxy_set_header Host $host;
> proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
> }
> }
>
>
>
>
http://asdf.xxx.com => https://login.xxx.com => (proxy)
http://www.xxx.com => https://login.xxx.com => (proxy)
http://www.xxx.com => etc
--
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
More information about the nginx
mailing list