In the Domain Name System (DNS) hierarchy, a subdomain is a domain that is part of a larger domain.[1]

learn more… | top users | synonyms (1)

20
votes
4answers
29k views

How do I redirect subdomains to a different port on the same server?

I have some subdomains I want to redirect to specific ports on the same server. Say I have dev.mydomain.com I want dev.mydomain.com to redirect to mydomain.com:8080 how do I do this with Apache ...
11
votes
3answers
7k views

Wildcard DNS and subdomains

Let'say that i've got the domain mydomain.com. I want that when any visitor goes to www.mydomain.com xyz.mydomain.com abc.mydomain.com asd.mydomain.com qwe.mydomain.com etc... the visitor will ...
31
votes
7answers
23k views

Wildcard SSL certificate for second-level subdomain

I'd like to know if any certificates support a double wildcard like *.*.example.com? I've just been on the phone with my current SSL provider (register.com) and the girl there said they don't offer ...
4
votes
3answers
3k views

Wildcard DNS, VirtualHosts on apache2, 404 for unused subdomains

On an Apache2 server linked to by a DNS that includes a wildcard entry, e.g. *.example.com, subdomains that are not defined as ServerNames in any VirtualHosts point to the first defined VirtualHost, ...
1
vote
3answers
3k views

Apache .htaccess trick to authenticate only once for all subdomains?

I'm using something like this in .htaccess file to restrict access to the website: AuthUserFile /some/directory/.passwd AuthGroupFile /dev/null AuthName EnterPassword AuthType Basic require ...
1
vote
0answers
1k views

Apache .htaccess trick to authenticate only once for all subdomains? [duplicate]

Possible Duplicate: Apache .htaccess trick to authenticate only once for all subdomains? I'm using something like this in .htaccess file to restrict access to the website: AuthUserFile ...
6
votes
3answers
775 views

Do I have to buy a second wildcard certificate for a subdomain?

We already have a wildcard certificate for *.mycompany.com. Our network has hosts that are only reachable internally. All of them belong to the internal.mycompany.com subdomain. There is a private ...
7
votes
2answers
12k 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: -- ...
3
votes
1answer
3k views

.htaccess - redirect non www to www and retain subdomains from redirecting

So, on my main domain 'domain.com' I created several subdomains from cPanel, like 'sub1.domain.com' and 'sub2.domain.com'. Their real location on server is in 'domain.com/sub1' and 'domain.com/sub2'. ...
10
votes
2answers
1k views

SSH home directory per subdomain

I'm wondering if it is possible to set different home directories for the same ssh user for each subdomain. So let's say you login with ssh myuser@example.com your home directory will be: ...
5
votes
1answer
1k views

Redirect all subdomains to subfolders

I'd like to add a rule so that all subdomains get redirected to a subfolder. For example: app1.example.com -> example.com/app1 app2.example.com -> example.com/app2 something.example.com -> ...
5
votes
4answers
3k views

How to set up a DNS to use a catch-all address?

This is not really a programming question, it's more about settings that I can alter visually. I have bought a domain and am wondering how I can get it work in such a way that everything before the ...
3
votes
2answers
3k views

How do I configure IIS 7 (discount asp.net) to point subdomains at application subdirectories?

I have an discount asp.net account, which uses IIS 7 and I want to configure subdomains to point at specific applications on the site. For instance: 's1.site.com' would run the application at ...
2
votes
2answers
3k views

Is there a way to forward a port based on subdomain? [duplicate]

Possible Duplicate: How to use DNS to redirect domain to specific port on my server Basically I want to have something like this: name1.mydomain.com:1234 -> my.internal.ip.address:10001 ...
1
vote
1answer
2k views

Pingdom error: “No delegation could be found at the parent” when analyzing subdomain

I have a subdomain dramarsarin.crimsonandcyan.com which i wanted to point to another server. I added an A record in the zone file for crimsonandcyan.com with the host 'dramarsarin' and pointed it to ...
1
vote
4answers
409 views

Adding dynamic subdomains to my webserver?

I'm trying to add a wildcard sub-domain system to my web server, but its still not working, These are the steps I took: I made a new file, vhost.conf, in the directory ...
0
votes
1answer
219 views

Create a Subdomain on AWS with Forwarding

My domain is registered through GoDaddy, but I am hosting the contents using Amazon S3. I would like to create a subdomain (beta.example.com) and forward it to an IP address that is of a local ...
0
votes
1answer
3k views

pfSense router gives DNS rebinding warning when accessing subdomains

I have just set up a router running pfSense on our network and forwarded the appropriate ports. I have a small web server running in my network, and a domain name pointing to our (WAN) IP. When ...
0
votes
1answer
213 views

Subdomains. How do you do development with subdomains?

I am currently building an web app which also utilizes websockets. (Rails for webserver and Nodejs for socket.io) I have structured my application to use subdomains to separate between connection to ...
0
votes
1answer
740 views

Redirect subdomain virtual host subdomains to path

I used Apache's virtual host for a ton of subdomains for greptweet.com, where each twitter username is a subdomain, like <username>.greptweet.com. Problem is ... subdomains can't have ...
0
votes
2answers
64 views

different hosting account, same URL?

Our client has a website at www.myclient.com. They want a new site created at www.myclient.com/newsite and for us to host it. Is it possible to have www.myclient.com hosted on one server/network and ...
14
votes
2answers
1k views

Are DNS records private information?

Assuming you wanted to create a subdomain that points to a private location (perhaps the location of a database, or the IP address of a computer you don't want people to attempt SSH-ing into), so you ...
8
votes
7answers
19k views

How do you have one IP address and many websites?

How can I have it where I have one IP address that sits on the Internet but many web names? For example, when a hosting company has a shared IP but I get unlimited domain names (along with everyone ...
8
votes
4answers
5k views

Is a wildcard DNS record bad practice?

I asked my hoster to add three subdomains all pointing to the IP of the A record. It seems he simply added a wildcard DNS record because any random subdomain resolves to my IP now. This is OK for me ...
6
votes
2answers
9k views

How many sub-domains can there be at most?

Is there a limit for number of subdomains like "*.domain.com"?
2
votes
1answer
720 views

Is it possible to configure Nginx to allow for new domains to be added without me having to add a VirtualHost for each?

I have a SaaS application wherein users can enter their domain names. The application uses the hostname of incoming requests to determine the account based on the domain they entered for their ...
2
votes
2answers
3k views

Redirecting to other internal servers based on sub domain

Here is my situation home network, windows machines, 1 external facing IP address (that allows port 80) 1 windows home server always on machine, planning on upgrading to WHS 2011 soon. several IP ...
2
votes
2answers
360 views

Automate creation of subdomain(xyz.serverfault.com)

What’s the best way to automate creation of subdomains (like Basecamp)? My requirement is somewhat similar to Basecamp where users request for a subdomain from a page and I create it for them from ...
2
votes
1answer
693 views

DNS configuration : sub-domains pointing to different IP

I would like to know if this type of domain and subdomain organisation for our school is feasable, and if so, how. We have 2 different servers, say SERVER1 and SERVER2 SERVER1 is for school-critical ...
0
votes
1answer
529 views

Wildcard on DocumentRoot for virtualhost

i use this config in apache2 for wildcard subdomain and works good : <VirtualHost *:80> DocumentRoot /var/www/ ServerName sumdomains.example.com ServerAlias *.example.com RewriteEngine ...
4
votes
3answers
3k views

nginx: redirect subfolder to subdomain

I'm trying to redirect a subfolder to a subdomain in nginx. I want http://example.com/~meow/ to be redirected to http://meow.example.com/. I tried the following: location ~ ^/\~meow/(.*)$ { ...
2
votes
1answer
5k views

How to setup a subdomain on nginx? [closed]

I have setup GitLab on my unbuntu ubuntu 12.04 lts server in following path /home/git/gitlab/. I am using nginx server. This is my gitlab status root@c27-76:/etc# sudo service gitlab status The ...
1
vote
2answers
559 views

Configure apache2 virtual host subdomain

I have configured apache2 virtual host with a sub domain in the following way: /etc/apache2/sites-available/website: <VirtualHost *> ServerName website.local ServerAlias sub.website.local ...
1
vote
2answers
352 views

Subdomain on apache

I'm looking at something like this: http://serverfault.com/questions/22632/multiple-domains-including-www-subdomain-on-apache And I'm too dumb to figure out how to get 1 subdomain to direct to 1 ...
0
votes
1answer
160 views

How can I run a second site in Azure while sharing the domain?

I have a site running on Azure built in ASP.NET MVC. Part of the site is effectively a marketing site with mostly static pages, the rest is the dashboard that our users log into to use the product. ...
8
votes
3answers
4k views

Second Level Subdomain DNS Wildcard

I need help setting up a second level subdomain. I have set up wildcard subdomains in the past with success, but I am having trouble with the DNS entry for this one. I need to do something like ...
3
votes
1answer
903 views

Apache mod-rewrite rule to change subdomain.domain.tld to domain.tld/subdomain

What would the rewrite rule be to change subdomain.domain.tld to domain.tld/subdomain? Or should I look at a VirtualServer directive to take subdomain.domain.tld and serve it from a DocRoot that ...
2
votes
1answer
644 views

Apache2 dynamic documentroot depending on URL

I have looked at setting up an Apache server. I want to run our site example.com on the server, as well as testing test.example.com. This I can setup by having two almost identical VirtualHost in ...
2
votes
4answers
4k views

DNS Subdomain delegation issue

(Updated the post with more detailed example) I have my domain: example.com setup at DNS provider 1. Provider 1 has nameservers: ns1.dns1.com ns2.dns1.com I want to delegate authority for ...
2
votes
3answers
2k views

Config Subdomain to point to heroku app

I have to host a subdomain of my domain to heroku app. For example abc.com points to a Hostgator account. I want to configure app.abc.com to heroku app. The domain is registered with godaddy. Can ...
2
votes
4answers
2k views

DNS not resolving for *some* people/locations

We created a new sub-domain (via A record) but it is not resolving for everyone. It's been working for me and some others for about a week, but others still cannot access the site. I don't think ...
1
vote
1answer
2k views

Subdomain Configuration on Ubuntu nginx Server

First of all, I'm sorry for my bad English. I'll try to explain my aim as much as possible. I'm using a 2 Core and 2 GB memory VPS with 1 dedicated ip address from Digital Ocean for my project. I'm ...
1
vote
3answers
1k views

How to configure bind for a private subdomain?

I am attempting to define a subdomain for a private network (RFC1918) behind a NAT firewall; let's call it priv.example.com. Normally, and from what I can gather on various websites, this could be ...
1
vote
1answer
2k views

How to point a subdomain to local server with dynamic IP

I see there are many related questions to this one, however the answers given seem to be a little vague for a novice like me. I've got a dedicated LAMP stack running Fedora 16 locally on my home ...
1
vote
1answer
90 views

Website on a Windows server have a subdomain on a Linux server?

I have a website zacharyhodge.com and I would like to have a subdomain for a blog at blog.zacharyhodge.com. Now, I enjoy working with Windows server-side technologies on my main site, but I would ...
1
vote
1answer
555 views

Localhost subdomains with Bind9

So, following this question here and a number of other questions about subdomains on localhost, we learned that /etc/hosts isn't capable of handling wildcard routes and we need a DNS system. Ok, I ...
1
vote
1answer
1k views

Redirect subdomain to subdomain on new domain

I own 2 domains sio-india.org and sio-india.com What i want to do is redirect all the subdomains from 1st domain to 2nd domain. eg. home.sio-india.org to home.sio-india.com but i dont want to ...
1
vote
1answer
508 views

Apache Rewrite to subdomain internally only

I searched web for several days but didn't found solution for my problem. Lets say I have a web application (written in Ruby on Rails with apache passenger mod) running at mydomain.com All I need is ...
0
votes
1answer
73 views

Nginx not catching subdomain

I have added a subdomain: http://vma.ottawakaraoke.com/ However it is serving back the root of an entirely different subdomain. Its serving up the content from http://summitent.ca/ - a totally ...
0
votes
1answer
439 views

Ghost subdomain in Apache with CentOS

I'm trying to set up Ghost the blogging platform on my CentOS (6.5, x64) server with Apache and... I think I mixed together my domain (www.example.com) with the Ghost subdomain (blog.example.com). I ...