Welcome! Log In Create A New Profile

Advanced

Regex for rewrite of subdomains

All files from this thread

File NameFile Size Posted byDate 
smime.p7s6 KBopen | downloadGreenGecko02/14/2013Read message
February 14, 2013 05:05PM
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
SubjectAuthorPosted

Regex for rewrite of subdomains

etraderFebruary 14, 2013 05:05PM

Re: Regex for rewrite of subdomains Attachments

GreenGeckoFebruary 14, 2013 05:52PM

Re: Regex for rewrite of subdomains

Darren PilgrimFebruary 15, 2013 12:50AM

Re: Regex for rewrite of subdomains

Igor SysoevFebruary 15, 2013 01:22AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 101
Record Number of Users: 7 on March 06, 2014
Record Number of Guests: 229 on August 01, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready