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)

33
votes
5answers
48k 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 ...
44
votes
7answers
37k 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 valid-...
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 /some/...
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 ...
10
votes
2answers
20k 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: -- ...
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 -> ...
2
votes
1answer
4k 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 ...
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 name2....
1
vote
1answer
52 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 ...
0
votes
1answer
267 views

Redirect all subdomains to main domain with HTTPS without a wildcard cert (nginx)

I have a domain name with a main site and a few vhosts. I want all sites (main and vhosts) to only be accessible through HTTPS (using HSTS), and I want non-existing subdomains to be redirected to the ...
0
votes
2answers
73 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 ...
15
votes
7answers
38k 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 ...
13
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 ...
12
votes
6answers
11k 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 ...
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, ...
6
votes
2answers
13k views

How many sub-domains can there be at most?

Is there a limit for number of subdomains like "*.domain.com"?
2
votes
1answer
920 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 account,...
2
votes
1answer
744 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 ...
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 ...
1
vote
1answer
918 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
6k 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
17k 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 ...
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/(.*)$ { ...
4
votes
4answers
339 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 ...
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 ...
2
votes
1answer
933 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 ...
1
vote
2answers
581 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
355 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 ...
3
votes
1answer
972 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
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
127 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
606 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
2k 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
117 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 => https://en....
1
vote
1answer
519 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 ...
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 ...
0
votes
2answers
2k views

SSL and domain masking

Ok, my scenario is interesting. What I want to do is create multiple subdomains for a give url. For example subdomain1.domain.com and subdomain2.domain.com. I plan to buy an SSL certificate that ...
0
votes
3answers
452 views

How to test new nameserver before to make it live [duplicate]

Possible Duplicate: Testing nameserver configuration using it I'm thinking of changing from my hosting provider nameservers to Route53 (Amazon's distributed nameserver) for several reasons. I'...
0
votes
1answer
106 views

Need help configuring apache with 3 different hostnames that support wildcard subdomains

I have a single physical server. I need to set it up so i can have 3 different domains on it. Each one of these domains needs to be able to support wildcard sub-domains. (.example.com,.example2.com,*....
0
votes
1answer
599 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 ...
0
votes
2answers
852 views

Assigning subdomain to a subfolder of ASP.NET application

I have an ASP.NET Web Application running at http://www.mydomain.com. We want to set up http://company.mydomain.com and point it to a subfolder of the ASP.NET application. When we do this, we get ...
0
votes
0answers
115 views

NginX ProxyPass only works via subdomain not domain.com/path

I currently am working on configuring an nginx reverse proxy for the esxi html5 web client. I have seen two reported working configs. There is this one: server { listen 443 ssl; server_name ...
0
votes
2answers
142 views

Create a sub-domain using Amazon AWS vs Creating the sub-domain from within the server - What's the difference?

I have an instance on Amazon AWS (Ubuntu server). I want to create a sub-domain for my website: tools.example.com for people in the office I work in, and build tools (using PHP) so employees can ...
0
votes
2answers
47 views

How to route requests through router based on domain names?

Assuming a setup as seen below, is it possible to route requests for e.g. subdomain1.domain.com to Server 1, subdomain2.domain.com to Server 2, another seconddomain.com to Server 2 etc. without ...