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
24
votes
3 answers

Names and maximum lengths of the parts of a URL

In this URL: http://www.subdomain.domainname.abc.xyz.com.us/directory/filename.extension What is the name of each part? What is maximum length of each part? e.g. subdomain, domain name, top-level domain…
hamid
  • 341
  • 1
  • 2
  • 5
22
votes
4 answers

How can I use a subdirectory instead of a subdomain?

I'm building a rails app that I'll host on Heroku at domain.com. And I'd like to use WordPress for the blog hosted on phpfog, but I don't want to use a subdomain like blog.domain.com. I'd instead prefer to use a subdirectory like domain.com/blog Its…
Eddie
  • 869
  • 1
  • 10
  • 17
22
votes
3 answers

how to use cookie-free domains (yslow)

I was trying to solve the problem with cookie-free, the yslow has suggested to create a subdomain. I did, but the yslow still "show" the problem. i didn't set the cookie´s domain in the page, cause i don't know how to do it. anyone know a tutorial…
Mario
  • 241
  • 1
  • 2
  • 6
22
votes
4 answers

Setting up a subdomain with Apache on Linux

I can't believe that I haven't done this before, but I would like a definitive answer so I'm all set going forward. I have an apache config file at /etc/apache2/sites-available/mysite which looks like this: ServerAdmin…
Darwin Tech
  • 18,449
  • 38
  • 112
  • 187
21
votes
9 answers

Sharing SESSION Variables Between Multiple Subdomains

I have a website www.example.com. That will have multiple subdomains that work with a single application or program. For an example, login.example.com will allow the user to log in to the site while system.example.com will allow the user to access…
21
votes
2 answers

Redirect any sub domain to a page on main domain

Just a quicky really. I want to be able to redirect anybody who types a subdomain.mydomain.com to be redirected to a page on my main domain. i.e If I typed: answers.mydomain.com I would be redirected to mydomain.com/suberror for instance. I would…
Andy
  • 3,600
  • 12
  • 53
  • 84
21
votes
8 answers

Testing subdomain constrained routes in Rails 3

I'm testing my Rails applications with Test::Unit. A problem I often come across is testing my application's routes for which I haven't found a solution yet. At the moment, I'm working on an application which uses Basecamp-style subdomains to…
Michael Trojanek
  • 1,813
  • 17
  • 15
21
votes
12 answers

Does a "blog" sub-domain help the pagerank of your main site?

I have my main application site https://drchrono.com, and I have a blog sub-domain under http://blog.drchrono.com. I was told by some bloggers that the blog sub-domain of your site helps the pagerank of your main site. Does traffic to your blog…
MikeN
  • 45,039
  • 49
  • 151
  • 227
21
votes
1 answer

How do you map a sub domain to a webapp on Tomcat 6 (including the root webapp)?

subject says it all. What I want is to map each sub domain to a webapp like: http://root.domain.com:8080 -> http://domain.com:8080/ http://manager.domain.com:8080 -> http://domain.com:8080/manager http://abc.domain.com:8080 ->…
Kawu
  • 13,647
  • 34
  • 123
  • 195
21
votes
2 answers

Set up custom subdomain for Jekyll Blog hosted in Github Pages

I created a Jekyll-powered blog and am hosting it with GitHub Pages. Now, I want to set up a subdomain (blog.example.com), but can't make it work. I have added a CNAME file with the text: blog.example.com. And I have added two A records in my…
alejorivera
  • 935
  • 1
  • 10
  • 25
21
votes
2 answers

How do I disable HTTPS on Heroku

I created a site and put it on Heroku. I then added a custom domain (e.g. "site.example.com") in the Heroku control panel and I pointed the DNS to my Heroku address. This works fine, but when I visit the site, I get a big browser warning, saying the…
am-rails
  • 1,463
  • 2
  • 16
  • 40
21
votes
1 answer

Rails route for api on subdomain

I want to make the API of my Rails app accessible through a subdomain (https://api.domain.com). I have the following routes defined: constraints :subdomain => 'api' do namespace :api, defaults: {format: 'json'} do scope module: :v1,…
smek
  • 1,669
  • 1
  • 17
  • 19
20
votes
4 answers

nginx server configuration: subdomain to folder

I migrated from Apache 2 to nginx and I've got problems to handly my subdomain control. What I want: When x.domain.tld is requested, internally rewrite to domain.tld/x The problem I've got is that nginx always redirects the page by telling the…
quotient7
  • 201
  • 1
  • 2
  • 3
20
votes
5 answers

Multiple subdomains with SSL under IIS

I currently need to have 2 subdomains under the same domain under SSL. Both subdomains (www and affiliate) are on the same IIS server, under the same IP, and each one has specified a host header value (www.mydomain.com and…
Daniel Magliola
  • 30,898
  • 61
  • 164
  • 243
20
votes
8 answers

Wildcard Subdomains

I know there have been a few threads on this before, but I have tried absolutely everything suggested (that I could find) and nothing has worked for me thus far... With that in mind, here is what I'm trying to do: First, I want to allow users to…
beaudeal
  • 203
  • 1
  • 3
  • 7