Welcome! Log In Create A New Profile

Advanced

Problem with wildcard of domain in nginx and in https

January 14, 2015 04:34AM
I have a domain.com and i can redirecto to other subdomains but not domain.com in https, my configuration is the following :

server {
listen 80;
server_name www.domain.com;
rewrite ^/(.*) https://www.domain.com/$1 permanent;
}

server {
listen 80;
server_name m.domain.com;

## redirect http to https ##
rewrite ^/(.*) https://m.domain.com/$1 permanent;
}

server {
listen 443 ssl spdy;

server_name www.domain.com;

...
}

server {
listen 443 ssl spdy;

server_name domain.com;

...
}

server {
listen 443 ssl spdy;

server_name www.domain.com;

...
}

server {
listen 443 ssl spdy;

server_name m.domain.com;

...
}
Subject Author Posted

Problem with wildcard of domain in nginx and in https

ramsoft75 January 14, 2015 04:34AM

Re: Problem with wildcard of domain in nginx and in https

ramsoft75 January 14, 2015 04:43AM

Re: Problem with wildcard of domain in nginx and in https

Axel January 14, 2015 04:48AM

Re: Problem with wildcard of domain in nginx and in https

ramsoft75 January 14, 2015 05:30AM

Re: Problem with wildcard of domain in nginx and in https

Steve Wilson January 14, 2015 05:44AM

Re: Problem with wildcard of domain in nginx and in https

ramsoft75 January 14, 2015 05:46AM

Re: Problem with wildcard of domain in nginx and in https

foboss January 14, 2015 05:54AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 187
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