Help with Web Sharing in X!

Discussion in 'Mac Help/Tips' started by iapple, May 24, 2002.

  1. iapple macrumors regular

    Oct 31, 2001
    I've figured out that if you put folders in the "Sites" folder in the Home folder in OS X, that you can acccess it via Web Sharing.
    http://IP address/~username/

    BUT! How do you limit people from accessing it? Is there a way to require a password for people that visit my server in a SIMPLE way, preferably without a lot of typing in Terminal. (I'm NOT a unix guy, I'm just a GUI guy;) )

    I'd really appreciate your help!
  2. arn macrumors god


    Staff Member

    Apr 9, 2001
    Re: Help with Web Sharing in X!

    There isn't a real easy gui way...

    there's a few unix/script ways... but it might be a bit much to get into right here... I'm not even sure it's easily enabled on the Mac OS X version of apache (htaccess).

  3. iapple thread starter macrumors regular

    Oct 31, 2001
    Ok, thanks any way... I'll just shut it off when I don't want anyone accessing it...

    It is pretty exciting to be able to set up a server, just by copying stuff to the "Sites" folder, and connecting to the internet though!
  4. j763 macrumors 6502a

    Nov 25, 2001
    Champaign, IL, USA
    OK, although you said you don't like the terminal -- setting up and configuring a web server pretty much requires it... so far anyways.

    You can restrict access by editing your Apache config file. You can find its location by typing in httpd -V in a new terminal window, then running a sudo pico on its location.

    This is all a bit complex to go into here, but I'd really recommend that you take a look at the Apache Web Server series at MacDevCenter.Com. Check it out for more info.

    Also, if you didn't know already, you can place your HTML files in the /Library/WebServer/Documents directory instead of ~/Sites... This will mean that your site will be located at http://IPADDRESS/ -- you won't need ~user/ again...

Share This Page