Subdomain is a domain which is a part of a larger domain. For example, 'sub.example.com' is subdomain of 'example.com' domain.
Questions tagged [subdomain]
5761 questions
29
votes
7 answers
It is safe to use lvh.me instead of localhost for testing?
I wonder whether is safe to use lvh.me instead of localhost when developing locally, since lvh.me must be resolved and the IP may change over time.
The goal of using lvh.me is to be able to handle subdomains, since localhost does not have top level…

Josu Goñi
- 1,178
- 1
- 10
- 26
28
votes
5 answers
Best way for allowing subdomain session cookies using Tomcat
By default tomcat will create a session cookie for the current domain.
If you are on www.example.com, your cookie will be created for www.example.com (will only work on www.example.com). Whereas for example.com it will be created for .example.com…

Andrew Ingram
- 5,160
- 2
- 25
- 37
28
votes
2 answers
MVC 3 Subdomain Routing
Possible Duplicate:
Is it possible to make an ASP.NET MVC route based on a subdomain?
In asp.net MVC 3 site i'd like to create online stores for users.
Any store that is created by user should have a URL like "shopname.mydomain.com".
I tried some…

Bahtiyar Özdere
- 543
- 1
- 7
- 11
28
votes
2 answers
Problems with SSL and multi level subdomains
I have a wildcard SSL from Godaddy. When I go here:
https://conciergelive.conciergeliveapp.com/users_session/new
Everything is fine. But when I go here:
https://es.conciergelive.conciergeliveapp.com/users_session/new
I get a security alert. I need…

Binary Logic
- 2,562
- 7
- 31
- 39
28
votes
2 answers
Different name servers for different subdomains
Let's say I have a website example.com which I bought via a common domain registry nomcheap.com.
I want all traffic to a specific subdomain app.example.com to go to name server ns1.appserver.com so I can serve a specific user app.
I also want all…

openwonk
- 14,023
- 7
- 43
- 39
28
votes
2 answers
How to test sub-domains on my localhost on a mac?
I have set up a web application on I am running it on my localhost. That is - http://127.0.0.1:8000/. I have set up sub-domains as well. For example, going to http://blog.127.0.0.1:8000/ should take me to the blog part. However, my browser does not…

darkhorse
- 8,192
- 21
- 72
- 148
27
votes
7 answers
Redirect 'myapp.com' to 'www.myapp.com' in rails without using htaccess?
Using Morph Labs' Appspace to deploy a site means no automated way to redirect 'myapp.com' to 'www.myapp.com' (and no access to .htacess).
Is there an in-rails way to do this? Would I need a plugin like subdomain-fu?
More specifically, I'm trying to…

Allan L.
- 396
- 3
- 10
27
votes
3 answers
redirect all subdomains from http to https
I redirect all http requests for my subdomain to https by using following code.
ServerName subdomain.example.com
Redirect 302 / https://subdomain.example.com
Now my problem is how do I do it for all…

Super Engineer
- 1,966
- 1
- 13
- 21
27
votes
1 answer
Apache Multiple Sub Domains With One IP Address
This has probably been asked but I can't find a straight answer, or the ones I found don't work.
I have one domain mydomain.com, resolving to an IP; let's call it 8.8.8.8. The DNS settings also point two subdomains to that IP address with an A…

Jongosi
- 2,305
- 1
- 28
- 31
27
votes
1 answer
Why are some websites spread across www2, www3 sub-domains whilst others manage scaling without it?
I know it's to do with having a variety of load balancing servers, but why do some sites make use of differently named "www" sub domains (www2.somesite.com, www3.somesite.com etc) where as other can be perfectly massive without doing this - ie all…

Ray
- 3,468
- 8
- 26
- 27
26
votes
3 answers
Wildcard for second level subdomain
AWS Certificate manager isn't allowing me to add a 2 level wildcard domain name, which would match x.a.example.com, y.b.example.com etc.
Is there a workaround for this? (instead of creating *.a.example.com, *.b.example.com etc)

Avery235
- 4,756
- 12
- 49
- 83
25
votes
1 answer
How to create a subdomain and how do they work?
I would like to create a subdomain off of my main domain for accessing my raspberry pi at home. My domain register company charges £10 for every subdomain so I thought there might be an easier (and cheaper) way of creating one. It would also help if…

Marmstrong
- 1,686
- 7
- 30
- 54
25
votes
4 answers
How to make subdomain user accounts in a webapp
I am looking to allow users to control of subdomain of an app I am toying with, much like Basecamp where it is customusername.seework.com.
What is required on the DNS end to allow these to be created dynamically and be available instantly.
And how…

Caleb Elston
- 575
- 1
- 9
- 9
24
votes
8 answers
Should I default my website to www.foo or not?
Notice how the default domain for stackoverflow is http://stackoverflow.com and if you try to goto http://www.stackoverflow.com it bounces you to http://stackoverflow.com ?
What is the reason for this? Not the tech reason (as in the http code, etc)…

Pure.Krome
- 84,693
- 113
- 396
- 647
24
votes
1 answer
connecting SSL to subdomain
I have an SSL assigned to my main domain and I'm wondering if I can use the SSL to my sub-domain!! I frankly tried it out, but it shows warning page saying that this page is not safe or so on. Is there a solution to this so I can use the SSL on my…

Digital site
- 4,431
- 12
- 48
- 72