Support » Localhost Installs » Setting up SubDomain on Apache Server

  • Good afternoon-

    I have a private Ubuntu Server running Apache2 and mySQL; I have purchased the domain name “wecanfixthis.blog” from WordPress.com and am using their DNS servers to resolve my host name.

    I am attempting to set up a subdomain of wp.wecanfixthis.blog (opposed to wecanfixthis.blog/wp)

    I have gone through and configured the wp subdomain on my server, and have created an A and CNAME record on WordPress.com, but my subdomain still will not resolve.

    I am new to web-hosting, and suspect that it may be something simple, though I am not entirely sure.

    Any assistance would be greatly appreciated.

    -Randy

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Keith

    (@keithdriscoll)

    These forums are for the self hosted version of WordPress. You should request support here.

    wordpress.com vs wordpress.org.

    Excuse me Keith, examination of the details provided show that wordpress.com is merely the domain registrar, the site is being privately hosted on a Ubuntu server, you don’t do this with wordpress.com

    Randy, you need to get into the apache2 config docs, like this one:
    http://httpd.apache.org/docs/current/vhosts/
    Say that your website files are at: /var/www/html/wpwcft
    Then in the sites enabled config at (/etc/apache2/sites-enabled/001-local) you would have a block like:

    <VirtualHost *:80>
    DocumentRoot /var/www/html/wpwcft
    ServerName wp.wecanfixthis.blog
    </VirtualHost>

    At the same time, are you really sure you want to host a public facing website, very few people do this.

    • This reply was modified 6 months, 2 weeks ago by  RossMitchell.

    <VirtualHost *:80>
    DocumentRoot /var/www/wecanfixthisb.blog/wp
    ServerName wp.wecanfixthis.blog
    </VirtualHost>

    That is what I have…

    And maybe not, I may look into hosting, though I’d have to wait until I can transfer my domain name.

    At least until then, it would be nice to know that I could actually get this up and running.

    Your VirtualHost settings look reasonable.

    When I browse to: wp.wecanfixthis.blog
    I get a page that says:
    s is my SubDomain!
    When I browse to: wecanfixthis.blog
    I get a website.

    I’d have to wait until I can transfer my domain name.

    Not at all. Your domain name stays registered at wordpress.com, when you subscribe to hosting the hosting company will give you the nameserver settings required to map a name to the hosting on their computer, you login to your domain management account at wordpress.com and install these nameserver settings, after the names propagate through the domain name caches (up o a day), the name now maps to your hired hosting.

    it would be nice to know that I could actually get this up and running.

    Is the website at: http://wecanfixthis.blog also hosted on your Ubuntu PC ?
    Your subdomain http://wp.wecanfixthis.blog resolves to the same ip address, which would be good if you were hosting the top site, bad otherwise.
    What is the “VirtualHost” block for the top site ?
    Have you restarted the apache2 service since editing the apache2 config files, the config files are only scanned on startup.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Setting up SubDomain on Apache Server’ is closed to new replies.