1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Development Apache DocumentRoot Aliases

Discussion in 'Software' started by Fusen, 31 May 2005.

  1. Fusen

    Fusen New Member

    Joined:
    17 Jan 2004
    Posts:
    351
    Likes Received:
    0
    I'm trying to set up an alias with my Document Root using apache 2.0.54 win32

    I've got

    DocumentRoot "C:/Program Files/Apache Group/Apache2/htdocs"
    Alias /stats "C:/Program Files/Wolfenstein - Enemy Territory/etpro/html"

    which seems to work but the problem is its denying me access as it needs a <directory> allowances set up which is where I'm stuck as the example they give is using a nix path which ahs no spaces but with my setup

    <Directory />
    Options FollowSymLinks
    AllowOverride None
    </Directory>

    <Directory "C:/Program Files/Wolfenstein - Enemy Territory/etpro/html">
    Order allow,deny
    Allow from all
    </Directory>

    doesn't work and I'm guessing because of the spaces all it does is deny me everytime, any ideas?
     
  2. Highland3r

    Highland3r New Member

    Joined:
    25 Jul 2003
    Posts:
    7,553
    Likes Received:
    16
    Add %20 instead of spaces? Though windows isnt white space sensitive (bar dos) so should be ok...?
     
  3. Bruno_me

    Bruno_me Fake-ad‎min

    Joined:
    30 Mar 2003
    Posts:
    1,136
    Likes Received:
    1
    change that to
    <Directory /stats>

    and see what happens
     
  4. Fusen

    Fusen New Member

    Joined:
    17 Jan 2004
    Posts:
    351
    Likes Received:
    0

    tried that already but still

    Forbidden

    You don't have permission to access /stats/ on this server.
     
  5. Fusen

    Fusen New Member

    Joined:
    17 Jan 2004
    Posts:
    351
    Likes Received:
    0
    didn't seem to work either :/

    the example they give is

    Alias /image /ftp/pub/image
    <Directory /ftp/pub/image>
    Order allow,deny
    Allow from all
    </Directory>
     
  6. Fusen

    Fusen New Member

    Joined:
    17 Jan 2004
    Posts:
    351
    Likes Received:
    0
    nevermind got it sorted now, I askef in #apache on freenode and they told me what was up, I needed to have options +indexes to the allowance part ;D
     

Share This Page