nginx rewrite question

Juergen Gotteswinter jg at internetx.de
Thu Jul 9 12:35:45 MSD 2009


Hello,

perhaps someone here could help me with the following problem. i got a 
domain justfornow.com which got a wildcard dns entry, and i need to 
redirect this domain to https. but i have to keep the first part of the 
domain, for example:

user calls http://try.justfornow.com nginx rewrites it to 
https://try.justfornow.com
user calls http://anything.justfornow.com nginx keeps the first part and 
rewrites it to https://anything.justfornow.com

thanks :)





More information about the nginx mailing list