Welcome! Log In Create A New Profile

Advanced

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: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
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: 71
Record Number of Users: 6 on August 08, 2016
Record Number of Guests: 386 on August 02, 2016
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready