1
vote
1answer
221 views

Nginx Auto Domain Redirection

I'm trying to setup Nginx config to auto redirect any domain/subdomain pointed(CNAME) to my static subdomain(site.domain.com) to a respective directory inside /var/www. The directory will be named ...
1
vote
1answer
126 views

Converting from Nginx to apache rewrite rules

I am trying to set up a site which uses code cloned from http://usesthis.com/ My site is at http://hackingtheuniversity.net/ You'll see that each interview post on the site, uses the following URL ...
4
votes
2answers
6k views

Wildcard vhosts on Nginx

I've just installed Nginx on my server and am extremely happy with the results, however I still cannot figure out how to insert wildcard virtual hosts. This is the [directory] structure I'd like: -- ...
1
vote
2answers
4k views

Wildcard records with Nginx to handle custom domains

Here's my 4, going on 5 hour problem: I've set up a WordPress multisite instance that's going to be handling sites at domain.com, subdomain.domain.com and customdomain.com. There will be N number of ...
3
votes
2answers
3k views

Nginx: Forward all Subdomains

My code doesn't work with second level tld's like domain.co.uk Here is my conf: # add www. if ($host ~ ^(?!www)) { rewrite ^/(.*)$ http://www.$host/$1 permanent; } # remove subdomain ...
2
votes
2answers
4k views

How would you set up wildcard subdomains with nginx and tornado web server?

How would someone go about setting up wildcard sub-domains with the suggested Tornado deployment? Specifically for SaaS apps that would allow users to have http://username.example.com/ As well as ...