Welcome! Log In Create A New Profile

Advanced

Re: Regex for rewrite of subdomains

All files from this thread

File Name File Size   Posted by Date  
smime.p7s 6 KB open | download GreenGecko 02/14/2013 Read message
February 14, 2013 05:52PM
I'd take a look at using pattern matching in a map
( http://wiki.nginx.org/HttpMapModule ) and redirecting if the default
value isn't found? Maybe not the most effective, but simpler to
maintain...

Steve

On Thu, 2013-02-14 at 17:05 -0500, etrader wrote:
> I want to rewrite subdomains by adding a separate server for subdomains as
>
>
> server {
> server_name domain.com
> ...
> }
> server {
> server_name *.domain.com
> }
>
> but how I can I ass a rewrite rule int the second server to process
> subdomain requests as
>
> keyword.domain.com/query=some to
> domain.com/script.php?query=some&sub=keyword
>
> Posted at Nginx Forum: http://forum.nginx.org/read.php?2,236231,236231#msg-236231
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx

--
Steve Holdoway BSc(Hons) MIITP
http://www.greengecko.co.nz
Skype: sholdowa
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Attachments:
open | download - smime.p7s (6 KB)
Subject Author Posted

Regex for rewrite of subdomains

etrader February 14, 2013 05:05PM

Re: Regex for rewrite of subdomains Attachments

GreenGecko February 14, 2013 05:52PM

Re: Regex for rewrite of subdomains

Darren Pilgrim February 15, 2013 12:50AM

Re: Regex for rewrite of subdomains

Igor Sysoev February 15, 2013 01:22AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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