Rewrite rules for port 80 and 443;

David J. david at
Tue Dec 21 04:06:25 MSK 2010

How am I able to use the same rewrite rule for both port 80 and 443?

It seems like nginx complains if you try to run multiple sites on port 
443 with one cert?

The rewrite rule simple add www. to the domain should a person type the 
domain without it;

Obviously this rule applies using SSL as well;

I dont have solution for this;

Any help would be appreciated;

More information about the nginx mailing list