<?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: Configuring virtual hosts in Apache</title>
	<atom:link href="http://diymacserver.com/installing-apache/configuring-virtual-hosts-in-apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://diymacserver.com</link>
	<description></description>
	<lastBuildDate>Mon, 08 Mar 2010 15:55:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Greg</title>
		<link>http://diymacserver.com/installing-apache/configuring-virtual-hosts-in-apache/comment-page-1/#comment-5545</link>
		<dc:creator>Greg</dc:creator>
		<pubDate>Fri, 16 Oct 2009 06:55:56 +0000</pubDate>
		<guid isPermaLink="false">http://diymacserver.com/installing-apache/configuring-virtual-hosts-in-apache/#comment-5545</guid>
		<description>For those seaching for a solution to the &quot;You don’t have permission to access /&quot; problem, if your site folder is under your user folder (i.e. ~ or /Users/loginname/), then it is probably because apache runs as user _www in group _www and it doesn&#039;t have access to your user directory.  See a discussion here:  http://www.macosxhints.com/article.php?story=200906100223537</description>
		<content:encoded><![CDATA[<p>For those seaching for a solution to the &#8220;You don’t have permission to access /&#8221; problem, if your site folder is under your user folder (i.e. ~ or /Users/loginname/), then it is probably because apache runs as user _www in group _www and it doesn&#8217;t have access to your user directory.  See a discussion here:  <a href="http://www.macosxhints.com/article.php?story=200906100223537" rel="nofollow">http://www.macosxhints.com/article.php?story=200906100223537</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luc Marivoet</title>
		<link>http://diymacserver.com/installing-apache/configuring-virtual-hosts-in-apache/comment-page-1/#comment-4928</link>
		<dc:creator>Luc Marivoet</dc:creator>
		<pubDate>Fri, 07 Aug 2009 16:34:25 +0000</pubDate>
		<guid isPermaLink="false">http://diymacserver.com/installing-apache/configuring-virtual-hosts-in-apache/#comment-4928</guid>
		<description>Hi Richard,

Obtained all my DNS entries but when I try to reach my website no go. I arrive at my router and all specific ports are open. When I start websharing I can see the standard webpages. www.idsmac.net -&gt; 88.197.156.73 (my router). Fowarded port 80 and 25 to my mac.
Any clue ?</description>
		<content:encoded><![CDATA[<p>Hi Richard,</p>
<p>Obtained all my DNS entries but when I try to reach my website no go. I arrive at my router and all specific ports are open. When I start websharing I can see the standard webpages. <a href="http://www.idsmac.net" rel="nofollow">http://www.idsmac.net</a> -&gt; 88.197.156.73 (my router). Fowarded port 80 and 25 to my mac.<br />
Any clue ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thom Fogie</title>
		<link>http://diymacserver.com/installing-apache/configuring-virtual-hosts-in-apache/comment-page-1/#comment-1497</link>
		<dc:creator>Thom Fogie</dc:creator>
		<pubDate>Sat, 23 Aug 2008 03:20:07 +0000</pubDate>
		<guid isPermaLink="false">http://diymacserver.com/installing-apache/configuring-virtual-hosts-in-apache/#comment-1497</guid>
		<description>Craig, 
Perhaps you are experiencing a &quot;problem&quot; with Apache&#039;s directory default  &quot;Order deny,allow&quot; and &quot;Deny from all&quot; clauses which are rather restrictive. (~line 177)

In order to get around that, (even though the file owner/permission all were set to reasonable access levels) I had to specify each virtual host&#039;s directory directive to allow access from a URL. Something like: 

&lt;code&gt;
    VirtualHost testsite.local

        ServerName testsite.local
        DocumentRoot /Users/Shared/www/testsite/htdocs
        
        # now set access permissions for DocumentRoot
        Directory /Users/Shared/www/testsite/htdocs
            AllowOverride FileInfo
            Order allow,deny
            Allow from all
        /Directory

    /VirtualHost
&lt;/code&gt;


See the documentation before you jump in there: &lt;a href=&quot;http://httpd.apache.org/docs/2.2/mod/core.html#directory&quot; rel=&quot;nofollow&quot;&gt;http://httpd.apache.org/docs/2.2/mod/core.html#directory&lt;/a&gt;

HTH</description>
		<content:encoded><![CDATA[<p>Craig,<br />
Perhaps you are experiencing a &#8220;problem&#8221; with Apache&#8217;s directory default  &#8220;Order deny,allow&#8221; and &#8220;Deny from all&#8221; clauses which are rather restrictive. (~line 177)</p>
<p>In order to get around that, (even though the file owner/permission all were set to reasonable access levels) I had to specify each virtual host&#8217;s directory directive to allow access from a URL. Something like: </p>
<p><code><br />
    VirtualHost testsite.local</p>
<p>        ServerName testsite.local<br />
        DocumentRoot /Users/Shared/www/testsite/htdocs</p>
<p>        # now set access permissions for DocumentRoot<br />
        Directory /Users/Shared/www/testsite/htdocs<br />
            AllowOverride FileInfo<br />
            Order allow,deny<br />
            Allow from all<br />
        /Directory</p>
<p>    /VirtualHost<br />
</code></p>
<p>See the documentation before you jump in there: <a href="http://httpd.apache.org/docs/2.2/mod/core.html#directory" rel="nofollow">http://httpd.apache.org/docs/2.2/mod/core.html#directory</a></p>
<p>HTH</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard</title>
		<link>http://diymacserver.com/installing-apache/configuring-virtual-hosts-in-apache/comment-page-1/#comment-1405</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Thu, 14 Aug 2008 08:45:56 +0000</pubDate>
		<guid isPermaLink="false">http://diymacserver.com/installing-apache/configuring-virtual-hosts-in-apache/#comment-1405</guid>
		<description>Craig, I&#039;m sorry you feel this way. The logfiles are located where you configured them in httpd.conf or your virtual server config. Default value is /var/log/httpd/.

Because Mac is unix based security/permissioning is a bit more restrictive/controlable than a windows box. You have to make sure that the apache user (usually _www) at least has read access to the files/directory you want to use.</description>
		<content:encoded><![CDATA[<p>Craig, I&#8217;m sorry you feel this way. The logfiles are located where you configured them in httpd.conf or your virtual server config. Default value is /var/log/httpd/.</p>
<p>Because Mac is unix based security/permissioning is a bit more restrictive/controlable than a windows box. You have to make sure that the apache user (usually _www) at least has read access to the files/directory you want to use.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Craig</title>
		<link>http://diymacserver.com/installing-apache/configuring-virtual-hosts-in-apache/comment-page-1/#comment-1404</link>
		<dc:creator>Craig</dc:creator>
		<pubDate>Thu, 14 Aug 2008 03:30:22 +0000</pubDate>
		<guid isPermaLink="false">http://diymacserver.com/installing-apache/configuring-virtual-hosts-in-apache/#comment-1404</guid>
		<description>*sigh*

I&#039;m getting &quot;Forbidden

You don&#039;t have permission to access / on this server.&quot;

Where does Apache store its logs so I can figure out what&#039;s going on?

I swear...on an XP box, I had Apache, MySQL, PHP, and Perl all installed and functional in less than 90 minutes.  So far, I have ~8 hours on this stupid Mac and I&#039;m only 30% done.  Somehow that seems very, very wrong.</description>
		<content:encoded><![CDATA[<p>*sigh*</p>
<p>I&#8217;m getting &#8220;Forbidden</p>
<p>You don&#8217;t have permission to access / on this server.&#8221;</p>
<p>Where does Apache store its logs so I can figure out what&#8217;s going on?</p>
<p>I swear&#8230;on an XP box, I had Apache, MySQL, PHP, and Perl all installed and functional in less than 90 minutes.  So far, I have ~8 hours on this stupid Mac and I&#8217;m only 30% done.  Somehow that seems very, very wrong.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard</title>
		<link>http://diymacserver.com/installing-apache/configuring-virtual-hosts-in-apache/comment-page-1/#comment-1321</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Thu, 31 Jul 2008 19:14:18 +0000</pubDate>
		<guid isPermaLink="false">http://diymacserver.com/installing-apache/configuring-virtual-hosts-in-apache/#comment-1321</guid>
		<description>Graig, you are correct. My mistake, I&#039;ve corrected it.</description>
		<content:encoded><![CDATA[<p>Graig, you are correct. My mistake, I&#8217;ve corrected it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Craig</title>
		<link>http://diymacserver.com/installing-apache/configuring-virtual-hosts-in-apache/comment-page-1/#comment-1318</link>
		<dc:creator>Craig</dc:creator>
		<pubDate>Thu, 31 Jul 2008 03:36:16 +0000</pubDate>
		<guid isPermaLink="false">http://diymacserver.com/installing-apache/configuring-virtual-hosts-in-apache/#comment-1318</guid>
		<description>I&#039;m a bit confused...perhaps there&#039;s an error, here:

You state that the site contents will reside in 
/Library/WebServer/Documents/site1.com

Then later you point the vhost DocumentRoot to
/Library/Apache2/htdocs/site1.com

Why are those different?  Shouldn&#039;t they both be the same?</description>
		<content:encoded><![CDATA[<p>I&#8217;m a bit confused&#8230;perhaps there&#8217;s an error, here:</p>
<p>You state that the site contents will reside in<br />
/Library/WebServer/Documents/site1.com</p>
<p>Then later you point the vhost DocumentRoot to<br />
/Library/Apache2/htdocs/site1.com</p>
<p>Why are those different?  Shouldn&#8217;t they both be the same?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard</title>
		<link>http://diymacserver.com/installing-apache/configuring-virtual-hosts-in-apache/comment-page-1/#comment-1200</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Sun, 20 Jul 2008 13:49:03 +0000</pubDate>
		<guid isPermaLink="false">http://diymacserver.com/installing-apache/configuring-virtual-hosts-in-apache/#comment-1200</guid>
		<description>Depends on how you installed apache. 

For the default installation it is &quot;sudo apachectl restart&quot;

For the DIY installation it is &quot;sudo /usr/local/apache2/bin/apachectl restart&quot;</description>
		<content:encoded><![CDATA[<p>Depends on how you installed apache. </p>
<p>For the default installation it is &#8220;sudo apachectl restart&#8221;</p>
<p>For the DIY installation it is &#8220;sudo /usr/local/apache2/bin/apachectl restart&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bulbous</title>
		<link>http://diymacserver.com/installing-apache/configuring-virtual-hosts-in-apache/comment-page-1/#comment-1195</link>
		<dc:creator>Bulbous</dc:creator>
		<pubDate>Sun, 20 Jul 2008 01:57:48 +0000</pubDate>
		<guid isPermaLink="false">http://diymacserver.com/installing-apache/configuring-virtual-hosts-in-apache/#comment-1195</guid>
		<description>Possibly stupid question -- how do I restart apache on the mac?  

I tried service httpd restart -- but got 
service: unrecognized command: restart

similarly, 

service httpd start
 returns
service: failed to start the &#039;httpd&#039; service</description>
		<content:encoded><![CDATA[<p>Possibly stupid question &#8212; how do I restart apache on the mac?  </p>
<p>I tried service httpd restart &#8212; but got<br />
service: unrecognized command: restart</p>
<p>similarly, </p>
<p>service httpd start<br />
 returns<br />
service: failed to start the &#8216;httpd&#8217; service</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard</title>
		<link>http://diymacserver.com/installing-apache/configuring-virtual-hosts-in-apache/comment-page-1/#comment-888</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Sat, 10 May 2008 06:33:55 +0000</pubDate>
		<guid isPermaLink="false">http://diymacserver.com/installing-apache/configuring-virtual-hosts-in-apache/#comment-888</guid>
		<description>There are 2 possible solutions:

use: NameVirtualHost *:80

or if you&#039;ve got a hostname from your dyndns service

NameVirtualHost yourname.dyndns.org

</description>
		<content:encoded><![CDATA[<p>There are 2 possible solutions:</p>
<p>use: NameVirtualHost *:80</p>
<p>or if you&#8217;ve got a hostname from your dyndns service</p>
<p>NameVirtualHost yourname.dyndns.org</p>
]]></content:encoded>
	</item>
</channel>
</rss>
