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

iapple

macrumors regular
Original poster
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!
 
Re: Help with Web Sharing in X!

Originally posted by iapple

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!


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).

arn
 
Originally posted by arn



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).

arn

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!
 
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...
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.