Subdomain check list!

Hey…

So I set up a subdomain as I would a new domain (Ubuntu/Apache) and set an A-Record to point to it.

I'm wanting to create directplumb.perfectpixels.biz (perfectpixels.biz is already hosted)

Created A record "directplumb" points to my server IP.

VHOST:

# domain: directplumb.perfectpixels.biz
# public: /home/rob/public/directplumb.perfectpixels.biz/

 <virtualhost *:80=""># Admin email, Server Name (domain name), and any aliases
  ServerAdmin me@robhadfield.co.uk
  ServerName  directplumb.perfectpixels.biz
  ServerAlias  www.directplumb.perfectpixels.biz

  # Index file and Document Root (where the public files are located)
  DirectoryIndex index.html index.php
  DocumentRoot /home/rob/public/directplumb.perfectpixels.biz/public

  # Log file locations
  LogLevel warn
  ErrorLog  /home/rob/public/directplumb.perfectpixels.biz/log/error.log
  CustomLog /home/rob/public/directplumb.perfectpixels.biz/log/access.log combined</virtualhost> 

It appears to have resolved looking at the propagation checkers online and it pings fine too. I just get 'Server Not Found' in the browser though.

What have I missed? It's only been set up for about 4 hours but I don;t think that's the issue.

Any ideas or things I can check?

Rob

6 Replies

ARGH, It's working!!!

Sorry - must. be. patient. must. be. patient.

Jeez, what a n00b.

Yeh it's working.

Just wondering what server alias have you used on your main domain?

The main domain just has perfectpixels.biz and an alias of www.perfectpixels.biz

Why do you ask?

Because I used the same server alias as the main domain server alias. Now wondering if it is wrong

Hm, my understanding (what there is of it) is that the alias is there to catch URL variations.

EG: www.domain.com points to domain.com

I guess you don't really need an alias on a subdomain. I'm not sure if www.sub.domain.com would be caught?

@robhadfield:

Hm, my understanding (what there is of it) is that the alias is there to catch URL variations. I guess you don't really need an alias on a subdomain. I'm not sure if http://www.sub.domain.com would be caught?

Exactly this what I was thinking.

Can anyone confirm if server alias can make or break anything?

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct