Local redirects with Apache2 (Win32)

Discussion in 'Windows Desktop Systems' started by Glaanieboy, Sep 22, 2003.

  1. Glaanieboy

    Glaanieboy Moderator

    Messages:
    2,626
    Location:
    The Netherlands
    I had once installed Windows 2000 with IIS5. I formatted the lot because it became sluggish, but leaving my inetpub folder alone (which are installed on a secondary partition). I installed Windows XP Pro instead, but installed Apache 2.0 with it. Now I want Apache to redirect to the E:\inetpub\wwwroot folder, instead of the C:\apache2\htdocs folder, when someone types in my IP-address (I am on a local network). I just can't make out what to change in the httpd.conf file, the manual isn't much help either (for me), it's a little bit too difficult where to search.
     
  2. Glaanieboy

    Glaanieboy Moderator

    Messages:
    2,626
    Location:
    The Netherlands
    *cough* ;)
     
  3. Khayman

    Khayman I'm sorry Hal... Political User Folding Team

    Messages:
    5,518
    Location:
    England
    In Apache 1 its the "DocumentRoot" line in httpd.conf (line 322 on mine), don't know if its the same for Apache 2
     
  4. Glaanieboy

    Glaanieboy Moderator

    Messages:
    2,626
    Location:
    The Netherlands
    Yeah found that too, but it was very confusing. I will try that when I am back at school tomorrow.
     
  5. Glaanieboy

    Glaanieboy Moderator

    Messages:
    2,626
    Location:
    The Netherlands
    I have f00ked the httpd.conf file up 4 times now, but I still can't get it to work. I looked at the Apache Manual, searched on google, tried everything that is within my power. Help me!
     
  6. Glaanieboy

    Glaanieboy Moderator

    Messages:
    2,626
    Location:
    The Netherlands
    OK, I found out I had to use "Alias /download D:/inetpub/wwwroot" to allow users to connect to http://<ip>/download. Phew.