[Nginx Config] rewrite host

CactO_o's nginx-forum at nginx.us
Thu Aug 20 16:37:10 MSD 2009

Hi all,

I test to rewrite the sub-domain in /etc/nginx/site-available/default and I would know if exist a function for add GET argument ?

For example :

if( $host ~* "(.*)\.*\.{2,4}" )
    addGet sd $1;

This code add "?sd=$1" or "&sd=$1" (if there are already arguments GET before or not)

If not exist how can I do that ? 

Thank you and sorry for my english (I'm french :p)

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,5030,5030#msg-5030

More information about the nginx mailing list