OK guys. So here's the situation. I am running OSX Mountain Lion 10.8.2.
I have gone under system preferences, then to sharing. I turned on web
sharing, which started the web Apache http daemon service built into the OS
by default out of the box. The problem is, even after enabling the root
user account which for liability reasons I am not on list going to reveal
how to do, I still cannot see under /etc/apache any type of httpd.conf file
that I can edit in Text Edit like I would do on Unix/Linux. I know that one
for 20 bucks in the app store can get the server extention add-ons, but why
do that only for a GUI front end interface? Sure it makes things like
setting up dns routing, port mascing, IP cloning etc. more easy, but...
Basically, I only need to really make two changes. By default, the web
daemon is set to be user specific. This means if I want to access a file
over the web http service, I must go to:
http://IPAddress/~UserName
IE: http://192.168.1.11/~chris
Then, basically I can access from there anything inside
/MacintoshHD/Users/chris/Sites, such as index.html
So my question is, I want to change the directive within the conf file so
that instead of it being user specific, it is system-wide. This way instead
of going to an address formatted like above, I could instead jsut go to:
http://IPAddress
and that's it. no /~UserName at the end. The only problem is, in doing
this, if I make the service system wide, then I'd also suspect I'd have to
somehow change the HTDocs location so that there would be one global system
wide directory where all web files would go. Then I'd probably have to
chmod the thing and set not just the owner and the group, but also everyone
else to RW, read/write.
chmod 666 /MacintoshHD/Users/chris/PathToWebFiles/*
So really, I need to knwo A, where is the conf file, B, how to change those
two directives in the file.
Chris.
<--- Mac Access At Mac Access Dot Net --->
To reply to this post, please address your message to [email protected]
You can find an archive of all messages posted to the Mac-Access forum at
either the list's own dedicated web archive:
<http://mail.tft-bbs.co.uk/pipermail/mac-access/index.html>
or at the public Mail Archive:
<http://www.mail-archive.com/[email protected]/>.
Subscribe to the list's RSS feed from:
<http://www.mail-archive.com/[email protected]/maillist.xml>
As the Mac Access Dot Net administrators, we do our very best to ensure that
the Mac-Access E-Mal list remains malware, spyware, Trojan, virus and
worm-free. However, this should in no way replace your own security strategy.
We assume neither liability nor responsibility should something unpredictable
happen.
Please remember to update your membership preferences periodically by visiting
the list website at:
<http://mail.tft-bbs.co.uk/mailman/listinfo/mac-access/options/>