Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

jashsayani

macrumors 6502
Original poster
Feb 7, 2009
299
130
Redwood City, CA
I have Web Sharing enabled on my Mac mini. Now, I want to be able to access my Music folder (/Users/Jash/Music) using Web sharing (/localhost/Music). How do I do this ??

Creating an alias did not work...


Do I have to add the additional folder in httpd.conf ? If so, what do I have to add and where?

Thanks.
 

illegalprelude

macrumors 68000
Mar 10, 2005
1,583
120
Los Angeles, California
im a little confused on what your trying to accomplish. Are you just trying to access the music of your iTunes on another computer? Or are you trying to access it when you are not home.
 

jashsayani

macrumors 6502
Original poster
Feb 7, 2009
299
130
Redwood City, CA
im a little confused on what your trying to accomplish. Are you just trying to access the music of your iTunes on another computer? Or are you trying to access it when you are not home.

I am trying to access the music folder via web sharing on another Mac on the WiFi network....
 

myjay610

macrumors regular
Jan 6, 2008
131
0
You'll either have to:
1) Move all of your music into the current folder that Apache (web server) is looking for files in (probably not best option)

or

2) Change the web root
open 'terminal' application
type 'cd /etc/apache2'
type 'ls'
edit the httpd.conf file
find the line that starts with 'DocumentRoot'
and change the absolute path to the music folder
now you should be able to do http://localhost or http://IPaddress or http://computername.local and it will show up.

Make sure to restart web sharing in system prefs
 

jashsayani

macrumors 6502
Original poster
Feb 7, 2009
299
130
Redwood City, CA
You'll either have to:
1) Move all of your music into the current folder that Apache (web server) is looking for files in (probably not best option)

or

2) Change the web root
open 'terminal' application
type 'cd /etc/apache2'
type 'ls'
edit the httpd.conf file
find the line that starts with 'DocumentRoot'
and change the absolute path to the music folder
now you should be able to do http://localhost or http://IPaddress or http://computername.local and it will show up.

Make sure to restart web sharing in system prefs


Hi,

I don't think I can completely change the location to Music folder as I have other sites on the computer.

I think, it would be best to Create an alias. How do I do this ??

Do I need to enable alias in apache ?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.