<?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"
	>
<channel>
	<title>Comments on: HOWTO: Lighttpd with SSL, Rails, PHP and MySQL on OSX 10.4 (Tiger)</title>
	<atom:link href="http://www.foliosus.com/2006/04/04/howto-lighttpd-with-ssl-rails-php-and-mysql-on-osx-104-tiger/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.foliosus.com/2006/04/04/howto-lighttpd-with-ssl-rails-php-and-mysql-on-osx-104-tiger/</link>
	<description>Plants, food and web design</description>
	<pubDate>Wed, 23 Jul 2008 23:32:06 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: g.</title>
		<link>http://www.foliosus.com/2006/04/04/howto-lighttpd-with-ssl-rails-php-and-mysql-on-osx-104-tiger/#comment-16520</link>
		<dc:creator>g.</dc:creator>
		<pubDate>Fri, 21 Mar 2008 17:21:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.foliosus.com/2006/04/04/howto-lighttpd-with-ssl-rails-php-and-mysql-on-osx-104-tiger/#comment-16520</guid>
		<description>PS: "man launchd.plist" gives you all the keys that are possible to use in a plist that goes into one of the Lauch* folders</description>
		<content:encoded><![CDATA[<p>PS: &#8220;man launchd.plist&#8221; gives you all the keys that are possible to use in a plist that goes into one of the Lauch* folders</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: g.</title>
		<link>http://www.foliosus.com/2006/04/04/howto-lighttpd-with-ssl-rails-php-and-mysql-on-osx-104-tiger/#comment-16519</link>
		<dc:creator>g.</dc:creator>
		<pubDate>Fri, 21 Mar 2008 17:18:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.foliosus.com/2006/04/04/howto-lighttpd-with-ssl-rails-php-and-mysql-on-osx-104-tiger/#comment-16519</guid>
		<description>Thanks for this very concise primer, just what I was searching for. Made it very easy to set this up on 10.4.11
A note: 
The "Program" key seems to be at least unnecessary - in my version launchd even refuses to run the file on startup if it's present.
I noticed you cannot chroot/chown a process if you start it with launchd - you have to set the owner in the plist file.

You can start/stop lighttpd with launchd too: just type
&#62; launchctl load /Library/LaunchDaemons/
to load the new plist files you put there, then start lighttpd with
&#62; launchctl start net.lighttpd
stop it with
&#62; launchctl stop net.lighttpd
same works with net.lighttpd_ssl of course 

for reference here's my plist file minus the header:
&#60;plist version=&#34;1.0&#34;&#62;
&#60;dict&#62;
        &#60;key&#62;Label&#60;/key&#62;
        &#60;string&#62;net.lighttpd_ssl&#60;/string&#62;
        &#60;key&#62;ProgramArguments&#60;/key&#62;
        &#60;array&#62;
                &#60;string&#62;/usr/local/sbin/lighttpd&#60;/string&#62;
                &#60;string&#62;-f/etc/lighttpd/lighttpd_ssl.conf&#60;/string&#62;
                &#60;string&#62;-D&#60;/string&#62;
        &#60;/array&#62;
        &#60;key&#62;UserName&#60;/key&#62;
        &#60;string&#62;www&#60;/string&#62;
        &#60;key&#62;GroupName&#60;/key&#62;
        &#60;string&#62;www&#60;/string&#62;
&#60;/dict&#62;
&#60;/plist&#62;</description>
		<content:encoded><![CDATA[<p>Thanks for this very concise primer, just what I was searching for. Made it very easy to set this up on 10.4.11<br />
A note:<br />
The &#8220;Program&#8221; key seems to be at least unnecessary - in my version launchd even refuses to run the file on startup if it&#8217;s present.<br />
I noticed you cannot chroot/chown a process if you start it with launchd - you have to set the owner in the plist file.</p>
<p>You can start/stop lighttpd with launchd too: just type<br />
&gt; launchctl load /Library/LaunchDaemons/<br />
to load the new plist files you put there, then start lighttpd with<br />
&gt; launchctl start net.lighttpd<br />
stop it with<br />
&gt; launchctl stop net.lighttpd<br />
same works with net.lighttpd_ssl of course </p>
<p>for reference here&#8217;s my plist file minus the header:<br />
&lt;plist version=&quot;1.0&quot;&gt;<br />
&lt;dict&gt;<br />
        &lt;key&gt;Label&lt;/key&gt;<br />
        &lt;string&gt;net.lighttpd_ssl&lt;/string&gt;<br />
        &lt;key&gt;ProgramArguments&lt;/key&gt;<br />
        &lt;array&gt;<br />
                &lt;string&gt;/usr/local/sbin/lighttpd&lt;/string&gt;<br />
                &lt;string&gt;-f/etc/lighttpd/lighttpd_ssl.conf&lt;/string&gt;<br />
                &lt;string&gt;-D&lt;/string&gt;<br />
        &lt;/array&gt;<br />
        &lt;key&gt;UserName&lt;/key&gt;<br />
        &lt;string&gt;www&lt;/string&gt;<br />
        &lt;key&gt;GroupName&lt;/key&gt;<br />
        &lt;string&gt;www&lt;/string&gt;<br />
&lt;/dict&gt;<br />
&lt;/plist&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brent Miller</title>
		<link>http://www.foliosus.com/2006/04/04/howto-lighttpd-with-ssl-rails-php-and-mysql-on-osx-104-tiger/#comment-8782</link>
		<dc:creator>Brent Miller</dc:creator>
		<pubDate>Wed, 28 Nov 2007 15:44:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.foliosus.com/2006/04/04/howto-lighttpd-with-ssl-rails-php-and-mysql-on-osx-104-tiger/#comment-8782</guid>
		<description>Naisi: It's my own. :+)</description>
		<content:encoded><![CDATA[<p>Naisi: It&#8217;s my own. :+)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: naisioxerloro</title>
		<link>http://www.foliosus.com/2006/04/04/howto-lighttpd-with-ssl-rails-php-and-mysql-on-osx-104-tiger/#comment-8781</link>
		<dc:creator>naisioxerloro</dc:creator>
		<pubDate>Wed, 28 Nov 2007 15:40:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.foliosus.com/2006/04/04/howto-lighttpd-with-ssl-rails-php-and-mysql-on-osx-104-tiger/#comment-8781</guid>
		<description>Hi. 
Good design, who make it?</description>
		<content:encoded><![CDATA[<p>Hi.<br />
Good design, who make it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam</title>
		<link>http://www.foliosus.com/2006/04/04/howto-lighttpd-with-ssl-rails-php-and-mysql-on-osx-104-tiger/#comment-2062</link>
		<dc:creator>Adam</dc:creator>
		<pubDate>Tue, 22 May 2007 16:42:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.foliosus.com/2006/04/04/howto-lighttpd-with-ssl-rails-php-and-mysql-on-osx-104-tiger/#comment-2062</guid>
		<description>Thanks for the instructions. This was a big help in getting me up and running.  Mongrel has some good info on Lighttpd/Mongrel deployment as well at: http://mongrel.rubyforge.org/docs/lighttpd.html</description>
		<content:encoded><![CDATA[<p>Thanks for the instructions. This was a big help in getting me up and running.  Mongrel has some good info on Lighttpd/Mongrel deployment as well at: <a href="http://mongrel.rubyforge.org/docs/lighttpd.html" rel="nofollow">http://mongrel.rubyforge.org/docs/lighttpd.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brent Miller</title>
		<link>http://www.foliosus.com/2006/04/04/howto-lighttpd-with-ssl-rails-php-and-mysql-on-osx-104-tiger/#comment-1630</link>
		<dc:creator>Brent Miller</dc:creator>
		<pubDate>Thu, 26 Apr 2007 04:11:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.foliosus.com/2006/04/04/howto-lighttpd-with-ssl-rails-php-and-mysql-on-osx-104-tiger/#comment-1630</guid>
		<description>Ulf: I don't remember having to run launchtcl; I think that I rebooted my box, which did the trick.  However, it was so long ago, that I can't really say.

In any case, you're welcome for the config file; I'm glad it's helpful to someone other than me.</description>
		<content:encoded><![CDATA[<p>Ulf: I don&#8217;t remember having to run launchtcl; I think that I rebooted my box, which did the trick.  However, it was so long ago, that I can&#8217;t really say.</p>
<p>In any case, you&#8217;re welcome for the config file; I&#8217;m glad it&#8217;s helpful to someone other than me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ulf</title>
		<link>http://www.foliosus.com/2006/04/04/howto-lighttpd-with-ssl-rails-php-and-mysql-on-osx-104-tiger/#comment-1606</link>
		<dc:creator>Ulf</dc:creator>
		<pubDate>Tue, 24 Apr 2007 23:42:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.foliosus.com/2006/04/04/howto-lighttpd-with-ssl-rails-php-and-mysql-on-osx-104-tiger/#comment-1606</guid>
		<description>Thanks for the great sample config file! The best I found on Google...

One thing about launchd: You probably have to run the command "sudo launchctl load /Library/LaunchDaemons/net.lighttpd.plist" for launchd to recognize the new plist file, though.</description>
		<content:encoded><![CDATA[<p>Thanks for the great sample config file! The best I found on Google&#8230;</p>
<p>One thing about launchd: You probably have to run the command &#8220;sudo launchctl load /Library/LaunchDaemons/net.lighttpd.plist&#8221; for launchd to recognize the new plist file, though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matte</title>
		<link>http://www.foliosus.com/2006/04/04/howto-lighttpd-with-ssl-rails-php-and-mysql-on-osx-104-tiger/#comment-97</link>
		<dc:creator>Matte</dc:creator>
		<pubDate>Tue, 17 Oct 2006 20:47:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.foliosus.com/2006/04/04/howto-lighttpd-with-ssl-rails-php-and-mysql-on-osx-104-tiger/#comment-97</guid>
		<description>Thanks for your tutorial! It's what I was looking since many many days ago.

Lighttpd rocks! I love it</description>
		<content:encoded><![CDATA[<p>Thanks for your tutorial! It&#8217;s what I was looking since many many days ago.</p>
<p>Lighttpd rocks! I love it</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mic Pringle</title>
		<link>http://www.foliosus.com/2006/04/04/howto-lighttpd-with-ssl-rails-php-and-mysql-on-osx-104-tiger/#comment-12</link>
		<dc:creator>Mic Pringle</dc:creator>
		<pubDate>Tue, 16 May 2006 07:19:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.foliosus.com/2006/04/04/howto-lighttpd-with-ssl-rails-php-and-mysql-on-osx-104-tiger/#comment-12</guid>
		<description>Hi Brent,

Thanks for that mate, you sorted it.

For some reason I assumed userdir.include-user = ("username") was some sort of internal variable which picked up the current username. Doh !!

All working now :-)

Once again, fantastic tutorial mate ... I just need to figure out how to compile in the GD part of PHP and I've got an exact copy of my Apache setup, but instead using Lighttpd and including Rails, 5 star ... great stuff.

Thanks again.

Mic</description>
		<content:encoded><![CDATA[<p>Hi Brent,</p>
<p>Thanks for that mate, you sorted it.</p>
<p>For some reason I assumed userdir.include-user = (&#8221;username&#8221;) was some sort of internal variable which picked up the current username. Doh !!</p>
<p>All working now <img src='http://www.foliosus.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Once again, fantastic tutorial mate &#8230; I just need to figure out how to compile in the GD part of PHP and I&#8217;ve got an exact copy of my Apache setup, but instead using Lighttpd and including Rails, 5 star &#8230; great stuff.</p>
<p>Thanks again.</p>
<p>Mic</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brent Miller</title>
		<link>http://www.foliosus.com/2006/04/04/howto-lighttpd-with-ssl-rails-php-and-mysql-on-osx-104-tiger/#comment-11</link>
		<dc:creator>Brent Miller</dc:creator>
		<pubDate>Mon, 15 May 2006 17:21:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.foliosus.com/2006/04/04/howto-lighttpd-with-ssl-rails-php-and-mysql-on-osx-104-tiger/#comment-11</guid>
		<description>Mic,

What is the exact code you used in &lt;span class="code"&gt;lighttpd_shared.conf&lt;/span&gt;?  To access &lt;span class="code"&gt;http://yourserver/~Mic/&lt;/span&gt; it should look like this:

&lt;pre class="code"&gt;userdir.basepath = "/Users/"
userdir.path = "Sites"
userdir.include-user = ("Mic") # only allow requests for this user (optional)
&lt;/pre&gt;

The third line is optional, and allows you to whitelist users.  You can include as many users as you want, each with their own &lt;span class="code"&gt;userdir.include-user&lt;/span&gt; statement.  If you omit all of those statements, then access is allowed for all users.

The other possibility is that you don't have a &lt;span class="code"&gt;/Users/Mic/Sites/index.html&lt;/span&gt; file, and so even though lighty is looking in the right place there is nothing for it to serve.

Binding to port 3500 shouldn't make a difference, as long as the rest of the configuration is the same, so that's not the problem.

Does this help?</description>
		<content:encoded><![CDATA[<p>Mic,</p>
<p>What is the exact code you used in <span class="code">lighttpd_shared.conf</span>?  To access <span class="code"><a href="http://yourserver/~Mic/" rel="nofollow">http://yourserver/~Mic/</a></span> it should look like this:</p>
<pre class="code">userdir.basepath = "/Users/"
userdir.path = "Sites"
userdir.include-user = ("Mic") # only allow requests for this user (optional)
</pre>
<p>The third line is optional, and allows you to whitelist users.  You can include as many users as you want, each with their own <span class="code">userdir.include-user</span> statement.  If you omit all of those statements, then access is allowed for all users.</p>
<p>The other possibility is that you don&#8217;t have a <span class="code">/Users/Mic/Sites/index.html</span> file, and so even though lighty is looking in the right place there is nothing for it to serve.</p>
<p>Binding to port 3500 shouldn&#8217;t make a difference, as long as the rest of the configuration is the same, so that&#8217;s not the problem.</p>
<p>Does this help?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mic Pringle</title>
		<link>http://www.foliosus.com/2006/04/04/howto-lighttpd-with-ssl-rails-php-and-mysql-on-osx-104-tiger/#comment-10</link>
		<dc:creator>Mic Pringle</dc:creator>
		<pubDate>Mon, 15 May 2006 16:58:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.foliosus.com/2006/04/04/howto-lighttpd-with-ssl-rails-php-and-mysql-on-osx-104-tiger/#comment-10</guid>
		<description>Hi,

Great tutorial, it's exactly what I've been looking for.

It seems I can get everything working except for being able to access the user folders, by this I mean http://localhost:3500/~Mic/ ... which just gives a 404 error. 

All other requests work, including PHP on the standard doc root set in server.document-root ... just not when I try to get to the users folder.

Any ideas !?

I have bound the server to port 3500 just because I wanted to test against Apache, I will swop over eventually, but need to get this working first.

Thanks

Mic</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Great tutorial, it&#8217;s exactly what I&#8217;ve been looking for.</p>
<p>It seems I can get everything working except for being able to access the user folders, by this I mean <a href="http://localhost:3500/~Mic/" rel="nofollow">http://localhost:3500/~Mic/</a> &#8230; which just gives a 404 error. </p>
<p>All other requests work, including PHP on the standard doc root set in server.document-root &#8230; just not when I try to get to the users folder.</p>
<p>Any ideas !?</p>
<p>I have bound the server to port 3500 just because I wanted to test against Apache, I will swop over eventually, but need to get this working first.</p>
<p>Thanks</p>
<p>Mic</p>
]]></content:encoded>
	</item>
</channel>
</rss>
