<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Mac OS X 10.5: Web Sharing &#8211; &#8220;Forbidden 403&#8243; on http://localhost/~username</title>
	<atom:link href="http://techtrouts.com/mac-os-x-105-web-sharing-forbidden-403-on-httplocalhostusername/feed/" rel="self" type="application/rss+xml" />
	<link>http://techtrouts.com/mac-os-x-105-web-sharing-forbidden-403-on-httplocalhostusername/</link>
	<description>Doin' the dev dance o/</description>
	<lastBuildDate>Fri, 05 Mar 2010 23:59:53 +0100</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.3</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Mwandha Mufumbiro</title>
		<link>http://techtrouts.com/mac-os-x-105-web-sharing-forbidden-403-on-httplocalhostusername/comment-page-1/#comment-117</link>
		<dc:creator>Mwandha Mufumbiro</dc:creator>
		<pubDate>Fri, 05 Mar 2010 23:59:53 +0000</pubDate>
		<guid isPermaLink="false">http://techtrouts.com/mac-os-x-105-web-sharing-forbidden-403-on-httplocalhostusername/#comment-117</guid>
		<description>your post is exceptional after timewasting in searches i got to your solution and believe me you it works magic.</description>
		<content:encoded><![CDATA[<p>your post is exceptional after timewasting in searches i got to your solution and believe me you it works magic.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark A Sanderson</title>
		<link>http://techtrouts.com/mac-os-x-105-web-sharing-forbidden-403-on-httplocalhostusername/comment-page-1/#comment-105</link>
		<dc:creator>Mark A Sanderson</dc:creator>
		<pubDate>Wed, 13 Jan 2010 22:02:45 +0000</pubDate>
		<guid isPermaLink="false">http://techtrouts.com/mac-os-x-105-web-sharing-forbidden-403-on-httplocalhostusername/#comment-105</guid>
		<description>Thanks for all the help here.    I checked all the points and my Mac personal website STILL didn&#039;t work.

Disclaimer in order, I do code for a living and I &quot;bent&quot; my environment a bit more than I should.   After I checked all the pointers above, my site still didn&#039;t work.   Ultimately, I did figure it out.

Here&#039;s the check list I&#039;d follow:

1.  Make sure httpd.conf  switch is configured properly with 

AllowOverride None
Order allow,deny
Allow from all

2.  Make sure your personal user ID config file .conf is configrued in the same manner:

AllowOverride None
Order allow,deny
Allow from all

3.  Then make sure your user directory is set to &quot;Read Only&quot; for &quot;everyone&quot;.   At first, this faked me out because I didn&#039;t want everyone to have read only access.   However I then made a new ID to see how that was setup.   As it turns out, making your ~ user ID home set in that manner isn&#039;t a problem because it only affects your Sites and Public subdirectories.   All other subdirectories are set to &quot;no access&quot;

Once that was set properly... all works fine again.

Good Luck</description>
		<content:encoded><![CDATA[<p>Thanks for all the help here.    I checked all the points and my Mac personal website STILL didn&#8217;t work.</p>
<p>Disclaimer in order, I do code for a living and I &#8220;bent&#8221; my environment a bit more than I should.   After I checked all the pointers above, my site still didn&#8217;t work.   Ultimately, I did figure it out.</p>
<p>Here&#8217;s the check list I&#8217;d follow:</p>
<p>1.  Make sure httpd.conf  switch is configured properly with </p>
<p>AllowOverride None<br />
Order allow,deny<br />
Allow from all</p>
<p>2.  Make sure your personal user ID config file .conf is configrued in the same manner:</p>
<p>AllowOverride None<br />
Order allow,deny<br />
Allow from all</p>
<p>3.  Then make sure your user directory is set to &#8220;Read Only&#8221; for &#8220;everyone&#8221;.   At first, this faked me out because I didn&#8217;t want everyone to have read only access.   However I then made a new ID to see how that was setup.   As it turns out, making your ~ user ID home set in that manner isn&#8217;t a problem because it only affects your Sites and Public subdirectories.   All other subdirectories are set to &#8220;no access&#8221;</p>
<p>Once that was set properly&#8230; all works fine again.</p>
<p>Good Luck</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mootoh</title>
		<link>http://techtrouts.com/mac-os-x-105-web-sharing-forbidden-403-on-httplocalhostusername/comment-page-1/#comment-99</link>
		<dc:creator>mootoh</dc:creator>
		<pubDate>Mon, 23 Nov 2009 00:50:00 +0000</pubDate>
		<guid isPermaLink="false">http://techtrouts.com/mac-os-x-105-web-sharing-forbidden-403-on-httplocalhostusername/#comment-99</guid>
		<description>Thanks for this tip.

I recommend to use &quot;Allow from localhost&quot; instead of &quot;Allow from all&quot; if you want to see the site only from your computer, because giving an access to the computer in the network could bring some troubles.</description>
		<content:encoded><![CDATA[<p>Thanks for this tip.</p>
<p>I recommend to use &#8220;Allow from localhost&#8221; instead of &#8220;Allow from all&#8221; if you want to see the site only from your computer, because giving an access to the computer in the network could bring some troubles.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: aadfaas</title>
		<link>http://techtrouts.com/mac-os-x-105-web-sharing-forbidden-403-on-httplocalhostusername/comment-page-1/#comment-88</link>
		<dc:creator>aadfaas</dc:creator>
		<pubDate>Wed, 04 Nov 2009 09:51:04 +0000</pubDate>
		<guid isPermaLink="false">http://techtrouts.com/mac-os-x-105-web-sharing-forbidden-403-on-httplocalhostusername/#comment-88</guid>
		<description>What worked for me was changing my username.conf so that it read like this:


    Options Indexes Multiviews
    AllowOverride None
    Order allow,deny
    Allow from all
</description>
		<content:encoded><![CDATA[<p>What worked for me was changing my username.conf so that it read like this:</p>
<p>    Options Indexes Multiviews<br />
    AllowOverride None<br />
    Order allow,deny<br />
    Allow from all</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom Boutell</title>
		<link>http://techtrouts.com/mac-os-x-105-web-sharing-forbidden-403-on-httplocalhostusername/comment-page-1/#comment-87</link>
		<dc:creator>Tom Boutell</dc:creator>
		<pubDate>Tue, 03 Nov 2009 00:59:10 +0000</pubDate>
		<guid isPermaLink="false">http://techtrouts.com/mac-os-x-105-web-sharing-forbidden-403-on-httplocalhostusername/#comment-87</guid>
		<description>Yes, the Sites folder does have to be readable and executable by &#039;_www&#039; and the sensible way to set that up on a personal machine is to make it readable and executable by everyone.

But it is not true that it cannot be writable by everyone. It&#039;s certainly not true that making it writable by everyone will cause Apache to refuse to work on Linux systems also as Carlos suggested. If that were true frameworks like Symfony that generate .php files on the fly and reuse them for performance reasons later would not work. 

There might be a system somewhere that refuses to work when it sees that the document root is writable, but I just tested this in Snow Leopard and it&#039;s fine there.</description>
		<content:encoded><![CDATA[<p>Yes, the Sites folder does have to be readable and executable by &#8216;_www&#8217; and the sensible way to set that up on a personal machine is to make it readable and executable by everyone.</p>
<p>But it is not true that it cannot be writable by everyone. It&#8217;s certainly not true that making it writable by everyone will cause Apache to refuse to work on Linux systems also as Carlos suggested. If that were true frameworks like Symfony that generate .php files on the fly and reuse them for performance reasons later would not work. </p>
<p>There might be a system somewhere that refuses to work when it sees that the document root is writable, but I just tested this in Snow Leopard and it&#8217;s fine there.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Olivier</title>
		<link>http://techtrouts.com/mac-os-x-105-web-sharing-forbidden-403-on-httplocalhostusername/comment-page-1/#comment-84</link>
		<dc:creator>Olivier</dc:creator>
		<pubDate>Sun, 25 Oct 2009 15:10:14 +0000</pubDate>
		<guid isPermaLink="false">http://techtrouts.com/mac-os-x-105-web-sharing-forbidden-403-on-httplocalhostusername/#comment-84</guid>
		<description>yes ! thanks to everybody, but specially to Lt Hammer Says (19).
My home directory was not readable for all. That was my problem. !</description>
		<content:encoded><![CDATA[<p>yes ! thanks to everybody, but specially to Lt Hammer Says (19).<br />
My home directory was not readable for all. That was my problem. !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lt. Hammer</title>
		<link>http://techtrouts.com/mac-os-x-105-web-sharing-forbidden-403-on-httplocalhostusername/comment-page-1/#comment-80</link>
		<dc:creator>Lt. Hammer</dc:creator>
		<pubDate>Sat, 10 Oct 2009 13:24:03 +0000</pubDate>
		<guid isPermaLink="false">http://techtrouts.com/mac-os-x-105-web-sharing-forbidden-403-on-httplocalhostusername/#comment-80</guid>
		<description>Modifying the httpd.conf file should be a last resort. 
Try Greg&#039;s method first. If that doesn&#039;t work, Get Info on your home folder. In the &quot;Ownership and...&quot; pane, click the lock and authenticate if necessary. Give &quot;everyone&quot; &quot;read-only&quot; access. Leave the &#039;Ignore ownership...&#039; box unchecked. I have FileVault on. I assume it should work with FV off. Good Luck : ^ })</description>
		<content:encoded><![CDATA[<p>Modifying the httpd.conf file should be a last resort.<br />
Try Greg&#8217;s method first. If that doesn&#8217;t work, Get Info on your home folder. In the &#8220;Ownership and&#8230;&#8221; pane, click the lock and authenticate if necessary. Give &#8220;everyone&#8221; &#8220;read-only&#8221; access. Leave the &#8216;Ignore ownership&#8230;&#8217; box unchecked. I have FileVault on. I assume it should work with FV off. Good Luck : ^ })</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: solak</title>
		<link>http://techtrouts.com/mac-os-x-105-web-sharing-forbidden-403-on-httplocalhostusername/comment-page-1/#comment-76</link>
		<dc:creator>solak</dc:creator>
		<pubDate>Fri, 18 Sep 2009 21:18:19 +0000</pubDate>
		<guid isPermaLink="false">http://techtrouts.com/mac-os-x-105-web-sharing-forbidden-403-on-httplocalhostusername/#comment-76</guid>
		<description>This shell script will do the whole task. Just give it the usernames on the command line.
You may have to repair the line breaks or formatting if the forum software mangles the text in its effort to be helpful.


#! /bin/sh
# Create web sharing conf file for the users specified as command-line parameters.
echo
for name in $*
do
	if [ -n &quot;$name&quot; ] ; then
		echo creating $name.conf
		cat &gt; /tmp/$name$$.conf &lt;&lt; END

Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all

END
		sudo mv /tmp/$name$$.conf /etc/apache2/users/$name.conf
		sudo chown root:wheel /etc/apache2/users/$name.conf
	fi
done

echo
echo &quot;Restarting apache webserver.&quot;
sudo httpd -k restart
echo &quot;Done.&quot;</description>
		<content:encoded><![CDATA[<p>This shell script will do the whole task. Just give it the usernames on the command line.<br />
You may have to repair the line breaks or formatting if the forum software mangles the text in its effort to be helpful.</p>
<p>#! /bin/sh<br />
# Create web sharing conf file for the users specified as command-line parameters.<br />
echo<br />
for name in $*<br />
do<br />
	if [ -n "$name" ] ; then<br />
		echo creating $name.conf<br />
		cat &gt; /tmp/$name$$.conf &lt;&lt; END</p>
<p>Options Indexes MultiViews<br />
AllowOverride None<br />
Order allow,deny<br />
Allow from all</p>
<p>END<br />
		sudo mv /tmp/$name$$.conf /etc/apache2/users/$name.conf<br />
		sudo chown root:wheel /etc/apache2/users/$name.conf<br />
	fi<br />
done</p>
<p>echo<br />
echo &#8220;Restarting apache webserver.&#8221;<br />
sudo httpd -k restart<br />
echo &#8220;Done.&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Barrett</title>
		<link>http://techtrouts.com/mac-os-x-105-web-sharing-forbidden-403-on-httplocalhostusername/comment-page-1/#comment-70</link>
		<dc:creator>John Barrett</dc:creator>
		<pubDate>Wed, 19 Aug 2009 04:44:24 +0000</pubDate>
		<guid isPermaLink="false">http://techtrouts.com/mac-os-x-105-web-sharing-forbidden-403-on-httplocalhostusername/#comment-70</guid>
		<description>Thanks so much I just got a replacement for my macbook pro, and was gong crazy trying to figure out why in the world was the localhost/~myusername not working, and thanks to you I can play with the localhost again.

I searched for about 2 hours on Google, but could not find the information.

Thanks so much, your rock dude!
Johnny</description>
		<content:encoded><![CDATA[<p>Thanks so much I just got a replacement for my macbook pro, and was gong crazy trying to figure out why in the world was the localhost/~myusername not working, and thanks to you I can play with the localhost again.</p>
<p>I searched for about 2 hours on Google, but could not find the information.</p>
<p>Thanks so much, your rock dude!<br />
Johnny</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paddy</title>
		<link>http://techtrouts.com/mac-os-x-105-web-sharing-forbidden-403-on-httplocalhostusername/comment-page-1/#comment-48</link>
		<dc:creator>Paddy</dc:creator>
		<pubDate>Thu, 26 Feb 2009 19:35:33 +0000</pubDate>
		<guid isPermaLink="false">http://techtrouts.com/mac-os-x-105-web-sharing-forbidden-403-on-httplocalhostusername/#comment-48</guid>
		<description>brilliant works great thanks again!</description>
		<content:encoded><![CDATA[<p>brilliant works great thanks again!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
