View Single Post
Old 18-03-2005, 18:37   #7
Richard M
Inactive
 
Join Date: Jun 2003
Location: Los Angeles, CA
Age: 47
Posts: 6,343
Richard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze array
Richard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze array
Re: server... feeling brave...

Quote:
Originally Posted by Dave Stones
Quote:
Originally Posted by Richard M
Just install Apache and in httpd.conf just set "Docroot" to whatever your media folder is.
Then open up http://addressofserver/ to view a directory listing.
sounds simple enough...

so if the IP is 10.0.0.100, it would be http://10.0.0.100 and it just works?

slight snag though... its set up as follows:

images (logical drive i: )
video (logical drive v: )
music (logical drive s: )
apps (logical drive f: )

is it simple enough to let it link to all of these, or is it better off having them all consolidated into one area?

*beware: novice at work*
There are two ways I can think of to do this, one uses aliases and the other uses Virtual Hosts. Both are configured in httpd.conf.

Code:
Alias /icons/ "C:/Apache2/icons/"

<Directory "C:/Apache2/icons">
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>
In this case, typing http://10.0.0.100/icons/ would display the contents of c:/apache2/icons.
This way is probably what you want to use.

Better example:

Code:
Alias /images/ "i:/"
<Directory "i:/">
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>
#########################
# And now the second one
#########################
Alias /videos/ "v:/"
<Directory "v:/">
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>
Richard M is offline   Reply With Quote