Results 1 to 3 of 3

Thread: Apache Web server Help?

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2002
    Location
    Lexington, SC
    Posts
    586

    Apache Web server Help?

    Well I couldn't find a forum better than this one to post this on. I can't even find any apache only web forums so I figured I would ask you guys since I'm sure some of you have worked with apache before.

    I have apache 2.0 running on a Red Hat Linux 8.1 server box. I want to be able to direct two web address to the box but have them go to different websites (Virtual hosting). I have the domain names and dns all set up but I cannot figure out how to make apache seperate the two web address and send them to the correct folder.

    My websites are www.sbmostwanted.com and www.thechosenguild.com If you go to either one of them you will see they go to the same page. But I have what I thought is a virtual host set up for sbmostwanted.com to go to a different folder.

    Any help or links to something on how to do this would be greatly appreciated.

  2. #2
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    This is how I would do it.
    Now I might mention I've never used Apache before, so this might be totally stupid.

    But anyway, I would write a small index.htm page and looks at the current browser address.
    If the address is www.sbmostwanted.com then forward the browser to www.sbmostwanted.com/site1

    On the other hand, if the current browser address is www.thechosenguild.com then forward the browser to www.thechosenguild.com/site2


    Now this could be easily acheived using a piece of javascript.
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2002
    Location
    Lexington, SC
    Posts
    586
    yeah it could be done like that. But I dont want that redirect delay when anyone goes to a site of mine. And plus I just think thats plain out tacky.

    Thanks for the idea though. I'm still looking for a way to set it up in apache to do it correctly.. I know it can be done just done know how.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width