[resolved] Subdomain using other applications other than WP (2 posts)

  1. bugsmi0
    Posted 9 years ago #

    Why does wordpress not allow a subdomain to exist intstead it shows the main domain root is there a way around this ?

    i want to put wp in the site root and a completely different program in the subdomain

    is this possible ?

  2. experts8
    Posted 9 years ago #

    assume you use Apache, it is rather simple. Say, if you want a /var/www/html/subDomain1 to hold your subDomain programs, you can set up two virtual hosts in httpd.conf
    1. 'subDomain1.yourdomain.com' to have /var/www/html/subDomain1 as its DocumentRoot
    2. 'www.yourdomain.com' to have '/var/www/html/wordpress' as its DocumentRoot

    In other words, wordpress isn't self-aware, but relies on Apache to direct requests to it.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.