
Here's the whole episode.
server.document-root = "/var/www/servers/[site]/pages"Make sure to modify the document root to wherever you keep your HTML files. You'll want to create the www user and www group or change these to an existing user.
server.port = 80
server.pid-file = "/var/run/lighttpd.pid"
server.username = "www"
server.groupname = "www"
mimetype.assign = (
".html" => "text/html",
".txt" => "text/plain",
".jpg" => "image/jpeg",
".png" => "image/png"
)
static-file.exclude-extensions = ( ".fcgi", ".php", ".rb", "~", ".inc" )
index-file.names = ( "index.html" )
#!/bin/shSave the above to /etc/rc.d/rc.lighttpd and change the permissions to allow execution (chmod u+x /etc/rc.d/rc.lighttpd).
# Copyright (c) 2007, Daniel de Kok
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
LIGHTTPD=/usr/local/sbin/lighttpd
PIDFILE=/var/run/lighttpd.pid
LIGHTTPD_OPTIONS="-f /etc/lighttpd/lighttpd.conf"
is_pidof() {
local STATE=$(ps -p $1 -o cmd= | grep "$2" > /dev/null ; echo $?)
return $STATE
}
lighttpd_start() {
echo "Starting lighttpd: $LIGHTTPD"
if [ -r $PIDFILE ] && is_pidof $(cat $PIDFILE) lighttpd ; then
echo "Already running!"
return
fi
$LIGHTTPD $LIGHTTPD_OPTIONS
}
lighttpd_stop() {
echo "Stopping lighttpd: $LIGHTTPD"
if [ -r $PIDFILE ] && is_pidof $(cat $PIDFILE) lighttpd ; then
kill $(cat $PIDFILE)
rm -f $PIDFILE
else
echo "Not running!"
fi
}
lighttpd_restart() {
lighttpd_stop
sleep 1
lighttpd_start
}
lighttpd_reload() {
kill -s HUP $(cat $PIDFILE)
}
case "$1" in
'start')
lighttpd_start
;;
'stop')
lighttpd_stop
;;
restart)
lighttpd_restart
;;
reload)
lighttpd_reload
;;
*)
echo "usage $0 start|stop|restart"
esac
if [ -x /etc/rc.d/rc.lighttpd ]; thenLikewise, to make it stop on shutdown, add this to /etc/rc.d/rc.local_shutdown (usually empty by default):
/etc/rc.d/rc.lighttpd start
fi
if [ -x /etc/rc.d/rc.lighttpd ]; then
/etc/rc.d/rc.lighttpd stop
fi
find /usr -name dotnet.pcI determined it was in /usr/local/lib/pkgconfig and simply added the path to the existing PKG_CONFIG_PATH environmental variable.
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/local/lib64/pkgconfig:/usr/lib64/pkgconfiginto your shell prompt.
# Add index.aspx and default.aspx to the list of files to check when aNext up, the configuration file needs some additions and alterations.
# directory is requested.
index-file.names += ( "index.aspx", "default.aspx" )
### The directory that contains your Mono installation.
var.mono_dir = "/usr/local/"
### A directory that is writable by the lighttpd process.
# This is where the log file, communication socket, and Mono's .wapi folder
# will be created.
# For a typical system-wide installation on Linux, use:
var.mono_shared_dir = "/tmp/"
### The path to the server to launch to handle FASTCGI requests.
# For ASP.NET 1.1 support use:
#var.mono_fastcgi_server = mono_dir + "bin/" + "fastcgi-mono-server"
# For ASP.NET 2.0 support use:
var.mono_fastcgi_server = mono_dir + "bin/" + "fastcgi-mono-server2"
### The root of your applications
# For apps installed under the lighttpd document root, use:
var.mono_fcgi_root = server.document-root
### Application map
# A comma separated list of virtual directory and real directory
# for all the applications we want to manage with this server. The
# virtual and real dirs. are separated by a colon.
var.mono_fcgi_applications = "/:."
server.modules = (This is a list of modules. I kept the ones not relevant commented out for now. Of course, many people will want to use some of them, particular rewrite, redirect, and alias. Either way, I prefer to keep things simple for now. Next change the line
# "mod_rewrite",
# "mod_redirect",
# "mod_alias",
"mod_access",
# "mod_cml",
# "mod_trigger_b4_dl",
# "mod_auth",
# "mod_status",
# "mod_setenv",
"mod_fastcgi",
# "mod_proxy",
# "mod_simple_vhost",
# "mod_evhost",
# "mod_userdir",
# "mod_cgi",
# "mod_compress",
# "mod_ssi",
# "mod_usertrack",
# "mod_expire",
# "mod_secdownload",
# "mod_rrdtool",
"mod_accesslog" )
toindex-file.names = ( "index.html" )
Beneath your new index file list, add the following:index-file.names = (
"index.xhtml", "index.html", "index.htm", "default.htm",
"index.php", "default.aspx", "index.aspx"
)
include "conf.d/mono.conf"
fastcgi.server = (
".aspx" => ((
"socket" => mono_shared_dir + "fastcgi-mono-server",
"bin-path" => mono_fastcgi_server,
"bin-environment" => (
"PATH" => "/bin:/usr/bin:" + mono_dir + "bin",
"LD_LIBRARY_PATH" => mono_dir + "lib:",
"MONO_SHARED_DIR" => mono_shared_dir,
"MONO_FCGI_LOGLEVELS" => "Standard",
"MONO_FCGI_LOGFILE" => mono_shared_dir + "fastcgi.log",
"MONO_FCGI_ROOT" => mono_fcgi_root,
"MONO_FCGI_APPLICATIONS" => mono_fcgi_applications
),
"max-procs" => 1,
"check-local" => "disable"
))
)
fastcgi.map-extensions = (
".asmx" => ".aspx",
".ashx" => ".aspx",
".asax" => ".aspx",
".ascx" => ".aspx",
".soap" => ".aspx",
".rem" => ".aspx",
".axd" => ".aspx",
".cs" => ".aspx",
".config" => ".aspx",
".dll" => ".aspx"
)
Asbury Park will remain G-rated.Really, why would anyone want prudish families around?
Deciding the seaside community popularized in song by Bruce Springsteen needed no more exposure, the City Council said no to topless sunbathing on the Eighth St. stretch of sand Wednesday without a vote.
...
Supporters said a topless beach would revitalize tourism.
But others worried it would scare away families recently returning to the once-famous resort.
During the summit, commentators took great pains to distinguish legitimate protesters from the anarchists who were bent on violence.The op-ed reads a lot like a screed from Fox News:
I’m afraid I can’t be quite so generous, for sometimes the two blended together.
I deeply appreciate the police. They didn’t initiate this, the protesters did. I’d be happy if the worst vandals amongst the protesters had to spend many weeks in jail.This is the power of mass media. The kind of authoritarian rhetoric found on CNN, Fox News, and right-wing tabloids, is now deeply ingrained in so-called conservative movement of an ostensible "progressive" country. Politically, Noam Chomsky and Michael Moore probably couldn't be more at odds, but in the minds of members of the 21st century authoritarian junta, they're the same thing.
I hope they get sued for the damage they’ve done and have to sell their entire Michael Moore DVD collections and their victim-affirming Noam Chomsky libraries.
To the Editor:In all fairness, Leonhardt makes something of a fair point. Alcohol probably does have a lot of social consequences. But those consequences, and their costs, are probably best dealt with locally, rather than through crushing federal taxes that go to nothing in particular. The same goes for other vices, like addiction to sugary meals such Captain Crunch.
In “Let’s Raise a Glass to Fairness” (Economic Scene, Dec. 26), David Leonhardt suggests that the argument for raising the federal tax on wine, unchanged at $1.07 a gallon since the early 1990s, is stronger than the argument for raising the tobacco tax. He points out all the ills associated with drinking abuse, including the some 17,000 Americans who die annually in alcohol-related traffic accidents.
It would seem that a far more appropriate tax to increase would be the federal gas tax, unchanged since 1993, at 18.4 cents a gallon.
Raising that tax would reflect all of the more than 42,000 traffic-related deaths each year, whether the result of drinking, fatigue, negligence or other causes. Irvin Dawid
Palo Alto, Calif., Dec. 26, 2007
Today many U.S. Catholics and Jews think like Protestants. They believe that religion is something we choose as individuals rather than inherit as communities, and they view it primarily in terms of faith rather than practice. None of this comes from either the Catholic brain of Aquinas or the Jewish mind of Maimonedes. The progenitor of this faith-based understanding of religion (who also happens to be the patron saint of religion rulings at the U.S. Supreme Court) is the American Protestant thinker William James, who famously defined religion as "the feelings, acts, and experiences of individual men in their solitude, so far as they apprehend themselves to stand in relation to whatever they may consider the divine.”— Do 6 Catholics + 3 Jews = 9 Protestants? by CNN religious sophist Stephen Prothero
The principle of leverage is the same for an investment trust as in the game of crack-the-whip. By the application of well-known physical laws, a modest movement near the point of origin is translated into a major jolt on the extreme periphery. In an investment trust leverage was achieved by issuing bonds, preferred stock, as well as common stock to purchase, more or less exclusively, a portfolio of common stocks. When the common stock so purchased rose in value, a tendency which was always assumed, the value of the bonds and preferred stock of the trust was largely unaffected. These securities had a fixed value derived from a specified return. Most or all of the gain from rising portfolio values was concentrated on the common stock of the investment trust which, as a result, rose marvelously.
Consider, by way of illustration, the case of an investment trust organized in early 1929 with a capital of $150 million — a plausible size by them. Let it be assumed, further, that a third of the capital was realized from the sale of bonds, a third from preferred stock, and the rest from the sale of the common stock. If this $150 million were invested, and if the securities so purchased showed a normal appreciate, the portfolio value would have increased by midsummer by about 50 per cent. The assets would be worth $225 million. The bonds and preferred stock woulds till be worth only $100 million; their earnings would not have increased, and they could claim no greater share of the assets in the hypothetical event of a liquidation of the company. The remaining $125 million, therefore, would underlie the value of the common stock of the trust. The latter, in other words, would have increased in asset value from $50 million to $125 million, or by 50 per cent in the value of the assets of the trust as a whole.
This was the magic of leverage, but this was not all of it. Were the common stock of the trust, which had so miraculously increased in value, held by still another trust with similar leverage, the common stock of that trust would get an increase of between 700 and 800 per cent from the original 50 per cent advance. And so forth. In 1929 the discovery of the wonders of the geometric series struck Wall Street with a force comparable to the invention of the wheel. There was a rush to sponsor investment trusts which would sponsor investment trusts, which would, in turn, sponsor investment trusts. The miracle of leverage, moreover, made this a relatively costless operation to the ultimate man behind all of the trusts. Having launched one trust and retained a share of the common stock, the capital gains from leverage made it relatively easy to swing a second and larger one which enhanced the gains and made possible and third and still bigger trust.
Facebook executives are due to meet the head of a British child protection agency in Washington to discuss safety measures on the social networking site.Here's an adult safety measure: if you're a "child protection agency," stay the hell out of politics. You waste time and effort coddling parents too damn lazy to make sure their children make sensible decisions about the online world. Panic buttons and other regulations are unlikely to help cure parental stupidity, and are more likely to just give sanctimonious thugs another opportunity to scream "pedophile!" at people who committed no harm.
It has been criticised by the Child Exploitation and Online Protection (Ceop) centre for not installing "panic buttons" on every page.
Ceop's director Jim Gamble said the matter was urgent after the murder of a teenager by a man she met on the site.