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)

30
votes
5answers
45k 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 transparently redirect to mydomain.com:8080 and I want to ...
11
votes
3answers
8k 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 ...
41
votes
7answers
34k 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 ...
1
vote
3answers
4k 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 ...
10
votes
2answers
18k 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: -- ...
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
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 ...
9
votes
4answers
10k 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
3answers
1k 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 ...
2
votes
2answers
6k views

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

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
2k 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
4k 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
4k 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
47 views

Fix missing ssl-cert for subdomain www. using redirect or similar

We're using setup with an nginx on one machine and (currently) one application server on apache in the back. For multiple domains we got ssl certs, but only for the domain itself. So without ...
1
vote
1answer
3k 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
437 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
513 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
246 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
796 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
71 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
7answers
34k 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 ...
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 ...
6
votes
2answers
12k views

How many sub-domains can there be at most?

Is there a limit for number of subdomains like "*.domain.com"?
2
votes
1answer
896 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
4k 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
363 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
736 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 ...
1
vote
1answer
860 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 ...
6
votes
1answer
5k views

DKIM and SPF for a subdomain

I manage a VPS on Linode accessed through subdomain.example.com and I need to send email from this subdomain. I can't set any TXT records in Linode DNS manager because the name servers for example.com ...
5
votes
4answers
16k views

Redirect subdomain.example.org to somethingelse.com hidden to the user?

I'm not knowledgeable at all about C-NAMES, A-RECORDS, name servers and the like, so just bear with me on this one: I want to redirect subdomain.example.org to another domain somethingelse.com. I do ...
5
votes
2answers
959 views

Hosting wildcard domains such as *.mydomain.com on Windows Azure without using redirections

I have an ASP.NET MVC app which offers wildcard domains to my users to personalize their login urls. I'd like to host this on Windows Azure. But is it possible to keep the wildcard domains? I've ...
4
votes
4answers
335 views

Is a wildcard SSL required for a single subdomain?

A typical SSL cert is based on a common name for the domain (domain.com) sometimes (www.domain.com) as well. I understand what a wildcard cert is used for (*.domain.com) and it would/should validate ...
4
votes
3answers
4k 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/(.*)$ { ...
3
votes
1answer
7k 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 ...
2
votes
1answer
3k 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
2answers
572 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
354 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
234 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
5k 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
963 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
2answers
2k views

bind9 not forwarding to subdomain NS

I'm running bind9 on Ubuntu 10.04, managing the (LAN)domain lan.group04.org - see the following zone file lan.group04.org. IN SOA dns.lan.group04.org. admin.lan.group04.org. ( 2006081401 28800 ...
2
votes
1answer
890 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
5k 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
3k 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
102 views

nginx / ssl: Always redirect to one of two https subdomains [duplicate]

My webserver supports the following two subdomains: https://www.example.com https://en.example.com I want to create my nginx config so that: http://en.example.com$request_uri => ...
1
vote
1answer
2k views

Subdomain Configuration on Ubuntu nginx Server

I have a 2 core, 2 GB RAM VPS with a dedicated IP address from Digital Ocean for my project. I'm using nginx as a webserver, MySQL as a database server and bind as a DNS server. My project is a free ...