[Nginx Config] rewrite host
Edho P Arief
edhoprima at gmail.com
Tue Aug 25 18:03:39 MSD 2009
On Thu, Aug 20, 2009 at 7:37 PM, CactO_o's<nginx-forum at nginx.us> wrote:
> 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 ?
>
rewrite?
--
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
More information about the nginx
mailing list