GIDForums  

Go Back   GIDForums > Web Hosting Forums > Apache Web Server Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 07-Nov-2003, 17:26
mkyb14 mkyb14 is offline
New Member
 
Join Date: Nov 2003
Location: San Diego, CA
Posts: 12
mkyb14 is an unknown quantity at this point

sharing files on other HD


is it possible to share for example a mp3's folder on a different HD? apache is installed on c:\ and my other HD e:\ has my mp3's....and i was wanting to like the two so that i can share my folder for access.... but making shortcuts and other things i've tried don't work... proly because i'm a nub anyone have this problem or know how to grant apache access to the e:\drive please tell me
  #2  
Old 08-Nov-2003, 00:14
JdS's Avatar
JdS JdS is offline
Senior Member
 
Join Date: Aug 2001
Location: KUL, Malaysia
Posts: 3,371
JdS will become famous soon enough

Apache's mod alias


Hello mkyb14,

I can't say I really understand your question but I will guess;

Let's say you browse your 'site' by typing http://localhost/ in the address bar of your browser. The 'site' documents are somewhere on your C:\ drive right?

Let's say you want to be able to type http://localhost/mp3/ and get to your mp3 collection (which is on the E:\ drive).

You can do this easily... by enabling apache's mod alias and setting it up to handle this situation: here is an example - http://www.desilva.biz/forum/showthr...=2849#post2849

Reply here if you still have questions.
  #3  
Old 08-Nov-2003, 15:23
mkyb14 mkyb14 is offline
New Member
 
Join Date: Nov 2003
Location: San Diego, CA
Posts: 12
mkyb14 is an unknown quantity at this point

contd...


ok so i read your reply and did the following.
added this to my confg...at the end where the other ifmodules are..... but there was no "<IfModule mod_alias.c>" listed in my confg. so i made sure that the module was inthe list at the beginning which it was...and added this...

<IfModule mod_alias.c>
Alias /mp3s/ "E:/Mp3s/"
<Directory "E:/Mp3s/">
Options Indexes FollowSymlinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</IfModule>

then i tryed going to my website and adding localhost ....and nothing.... is there something that i'm missing.... and could if be the fact that i'm using Apache/2.0.45 ?
  #4  
Old 09-Nov-2003, 00:41
JdS's Avatar
JdS JdS is offline
Senior Member
 
Join Date: Aug 2001
Location: KUL, Malaysia
Posts: 3,371
JdS will become famous soon enough
Try:
Code:
<IfModule mod_alias.c> Alias /mp3s/ "E:/Mp3s/" <Directory "E:/Mp3s"> Options Indexes FollowSymlinks MultiViews AllowOverride None Order allow,deny Allow from all </Directory> </IfModule>
n.b. the ending slash was removed in line 3 of the example.

After you make that little change, try to 'view' a mp3 file directly e.g.
http://localhost:8080/mp3s/example.mp3

I haven't actually installed Apache 2+ on Windows yet so I wouldn't be able to tell you what if anything, is different.
  #5  
Old 10-Nov-2003, 04:24
mkyb14 mkyb14 is offline
New Member
 
Join Date: Nov 2003
Location: San Diego, CA
Posts: 12
mkyb14 is an unknown quantity at this point

you da man


thanks man, i've been trying to do that for a while... now all i gotta do is take all the damn spaces out of the folder and file names so that i can link to them with out windows throwing a hissy fit booya
  #6  
Old 10-Nov-2003, 04:30
JdS's Avatar
JdS JdS is offline
Senior Member
 
Join Date: Aug 2001
Location: KUL, Malaysia
Posts: 3,371
JdS will become famous soon enough
Actually... you don't need to change the folder names (the ones with spaces in them). Which Windows are you using?
  #7  
Old 10-Nov-2003, 04:34
mkyb14 mkyb14 is offline
New Member
 
Join Date: Nov 2003
Location: San Diego, CA
Posts: 12
mkyb14 is an unknown quantity at this point

oh crap


ok so i can view the folder that contains all the other ones that i have organized my music into....ex:/mp3s/ .... but when i click on a folder after that i get denied .. ex: /mp3s/A .... is there a way around this.... the folder is shared and permissions are granted for users.....any idea?
  #8  
Old 10-Nov-2003, 04:47
JdS's Avatar
JdS JdS is offline
Senior Member
 
Join Date: Aug 2001
Location: KUL, Malaysia
Posts: 3,371
JdS will become famous soon enough
I am sorry, I don't quite understand your problem. Also, which Windows are you using?
  #9  
Old 10-Nov-2003, 15:19
mkyb14 mkyb14 is offline
New Member
 
Join Date: Nov 2003
Location: San Diego, CA
Posts: 12
mkyb14 is an unknown quantity at this point

windows XP pro


using windows XP PRO...... and to make the problem simplier.... i can view my "mp3s" folder but not the folders with in it... see i have organized it like so.
folder - mp3s > then it has A- Z folders with all music sorted by artist.

it can't list the sub folders.... is there a way to do this....
socal.homeunix.org
make sure if you visit it you use the last "/" because it won't load unless you do
  #10  
Old 11-Nov-2003, 04:01
Allowee's Avatar
Allowee Allowee is offline
Regular Member
 
Join Date: May 2003
Location: The Netherlands
Posts: 339
Allowee has a spectacular aura about
Clicking those links/folders end up at a 404 Not Found.

That means you can check your error.log file and then you will be able to see where it looked, and didn't found the folder.

It will help if you could paste a bit of the error log so we can see if the alias is actually working like it should.
__________________
Pastebin
PHP Documentation Site
Allowee's Blog http://allowee.net
 
 

Recent GIDBlogAccepted for Ph.D. program by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
gxx linker accepts only 7 object files danielxs66 C++ Forum 1 12-Dec-2003 10:27
How to create batch files without DOS box? rhino1616 Web Design Forum 3 18-Aug-2003 11:00
any one knows about the address of the deleted files in FAT shaam C++ Forum 1 09-Aug-2003 17:18
Dedicated to JDS who does not like flash files jrobbio Open Discussion Forum 9 15-Feb-2003 04:24
publishing Drirector/Shockwave files ...? darrin Web Design Forum 1 04-Oct-2002 18:21

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 13:43.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.