Moving the webserver folder

Jump to First Reply
Posted:
in Genius Bar edited January 2014
A friend of mine is trying to figure out how to move the webserver folder from /Library/ to another location. Any ideas?

Comments

  • Reply 1 of 4
    The bigger question is: Why?



    If he/she really needs to move it, the answer is to look at the /etc/httpd/httpd.conf file and in there change DocumentRoot to where they need it to be. But I really think that whatever their problem is, there is a better solution (unless they are moving it to another drive and don't want to play with mount points).
     0Likes 0Dislikes 0Informatives
  • Reply 2 of 4
    cubedudecubedude Posts: 1,556member
    Quote:

    Originally posted by Karl Kuehn

    The bigger question is: Why?



    If he/she really needs to move it, the answer is to look at the /etc/httpd/httpd.conf file and in there change DocumentRoot to where they need it to be. But I really think that whatever their problem is, there is a better solution (unless they are moving it to another drive and don't want to play with mount points).




    I have no idea why he wants to do this, but he asked me and I had no idea. Hence I posted here. Thanks for the httpd.conf tip though.
     0Likes 0Dislikes 0Informatives
  • Reply 3 of 4
    ast3r3xast3r3x Posts: 5,012member
    I was wondering how to put an alias of my mp3s folder or something into my web server folder so that I can access them at school.
     0Likes 0Dislikes 0Informatives
  • Reply 4 of 4
    torifiletorifile Posts: 4,024member
    Quote:

    Originally posted by ast3r3x

    I was wondering how to put an alias of my mp3s folder or something into my web server folder so that I can access them at school.



    In the /etc/httpd/httpd.conf file, if you tell it to follow symlinks, you can. This is set by default. The key is to make a symlink (use cocktail) and change the permission of your Music folder (the original in your home directory) to be readable by the world.
     0Likes 0Dislikes 0Informatives
Sign In or Register to comment.