httpd.conf config question

Discussion in 'Apache' started by a_user, Feb 10, 2008.

  1. #1
    Hi All,

    A little new to Apache but here is what I am trying to do.

    I have a sub domain called forums.abc123.com (fictitious). I want users to hit the forums when they type that url. When users type www.abc123.com however i want them to go to the main web site.

    I am guessing this is in directory linking in the httpd.conf file but Im not exactly sure how to accomplish this. I know how to make a specific directory the default but not splitting two like this.

    Your assistance is greatly appreciated.

    Thanks
     
    a_user, Feb 10, 2008 IP
  2. gate2vn

    gate2vn Peon

    Messages:
    809
    Likes Received:
    33
    Best Answers:
    1
    Trophy Points:
    0
    #2
    Read about virtual_hosts part in apache config. Then you can create sub-domain yourself :)
     
    gate2vn, Feb 10, 2008 IP
  3. buldozerceto

    buldozerceto Active Member

    Messages:
    1,137
    Likes Received:
    43
    Best Answers:
    0
    Trophy Points:
    88
    #3
    Or put this in .htaccess
    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTP_HOST} ^forums.*
    RewriteRule ^(.*)$ /forums/1$
     
    buldozerceto, Feb 10, 2008 IP
  4. EGS

    EGS Notable Member

    Messages:
    6,078
    Likes Received:
    438
    Best Answers:
    0
    Trophy Points:
    290
    #4
    What control panel are you using?
     
    EGS, Feb 10, 2008 IP