Questions tagged [subdomain]

Subdomain is a domain which is a part of a larger domain. For example, 'sub.example.com' is subdomain of 'example.com' domain.

5761 questions
86
votes
5 answers

What are the allowed characters in a subdomain?

What characters are you allowed to use in a subdomain? Example: for someSub.example.com the someSub portion. I know you can use letters, numbers, and hyphens, but what about other characters? Can _ (underscore) be used?
somerandomdude
  • 871
  • 1
  • 6
  • 3
85
votes
3 answers

Virtualhost For Wildcard Subdomain and Static Subdomain

I have an odd situation where I want to have the URLs app1.example.com, example.com and *.example.com all using a different virtual host. This is what I have (excluding example.com because it just makes it messier). ServerName…
Dave
  • 1,658
  • 3
  • 17
  • 19
84
votes
3 answers

Multiple GitHub Pages and custom domains via DNS

I want to have one user page and multiple project pages hosted by GitHub Pages but available under ONE custom domain (with subdomains for each GitHub Pages repository, of course). So my goals are as follows: One user page…
Florian Wolters
  • 3,820
  • 5
  • 35
  • 55
82
votes
1 answer

Nginx subdomain configuration

I have nginx acting as a reverse proxy to apache. I now need to add a new subdomain that will serve files from another directory, but at the same time I want all location and proxy_pass directives that I have for the default host to apply to the…
Thomas
  • 4,641
  • 13
  • 44
  • 67
80
votes
6 answers

Amazon S3: Static Web Sites: Custom Domain or Subdomain

Amazon.com just announced that one can host static web sites in a S3 bucket. I went to their setup page at http://docs.amazonwebservices.com/AmazonS3/latest/dev/index.html?WebsiteHosting.html and created a bucket for my static web site, and it…
Jay Godse
  • 15,163
  • 16
  • 84
  • 131
80
votes
6 answers

nginx - two subdomain configuration

I'm new to Nginx and I'm trying to get subdomains working. What I would like to do is take my domain (let's call it example.com) and add: sub1.example.com, sub2.example.com, and also have www.example.com available. I know how to do this with…
ColLeslieHapHapablap
  • 1,045
  • 2
  • 9
  • 12
79
votes
4 answers

How to set up subdomains on IIS 7

I have a website sitting on an IIS 7 server: WWW.example.COM I would like to create several sub domains that looks like SUBDOMAIN1.example.COM I created an IIS website and I set the bindings to be http, port 80, the ip address of my server, and…
Tal Cohen
  • 1,043
  • 1
  • 8
  • 10
79
votes
5 answers

HTML5 localStorage size limit for subdomains

HTML5's localStorage databases are usually size-limited — standard sizes are 5 or 10 MB per domain. Can these limits be circumvented by subdomains (e.g. example.com, hack1.example.com and hack2.example.com all have their own 5 MB databases)? And is…
Chuck
  • 234,037
  • 30
  • 302
  • 389
68
votes
4 answers

Should I use an A record or a CNAME for a wildcard subdomain?

Some people are saying use an A record and others a CNAME for a catch all subdomain. Which should I use and why?
Igor K
  • 1,261
  • 3
  • 13
  • 19
66
votes
6 answers

How can I configure multiple sub domains in Express.js or Connect.js

I am used to working on httpd ( Apache ) which provides a way to configure subdomains which is mapped to a directory. How can I do the same thing in Connect.js/Express.js ? I see that the only thing that I have is routes which I am not sure how I…
Raks
  • 1,723
  • 3
  • 18
  • 26
64
votes
5 answers

What does Rails 3 session_store domain :all really do?

Updated question to make it more clear I understand that you can set the domain of your session_store to share sessions between subdomains like this: Rails.application.config.session_store :cookie_store, :key => '_my_key', :domain =>…
Nader
  • 5,493
  • 4
  • 33
  • 31
64
votes
4 answers

SSL Multilevel Subdomain Wildcard

I bought a wildcard certificate for *.example.com. Now, I have to secure *.subdomain.example.com. Is it possible to create a sub-certificate for my wildcard-certificate? If it is, how I can do this?
Attrachii
  • 673
  • 1
  • 5
  • 4
63
votes
4 answers

Can HTML5 databases and localStorage be shared across subdomains?

I am attempting to share data across subdomains using Safari. I would like to use an HTML5 database (specifically localStorage as my data is nothing but key-value pairs). However, it seems as though data stored to example.com can not be accessed…
Sebastian Celis
  • 12,185
  • 6
  • 36
  • 44
62
votes
4 answers

Rails rspec set subdomain

I am using rSpec for testing my application. In my application controller I have a method like so: def set_current_account @current_account ||= Account.find_by_subdomain(request.subdomains.first) end Is it possible to set the request.subdomain…
RailsSon
  • 19,897
  • 31
  • 82
  • 105
57
votes
2 answers

Wildcard subdomains with dnsmasq

I have a device that is already mapped to domain.tld. I now want to create a wildcard for all subdomains *.domain.tld so that they are mapped to the ip of domain.tld, too. How do I do this with dnsmasq?
danb
  • 573
  • 1
  • 4
  • 5