Archive for November 29th, 2012

Disable server side includes (SSI) in Apache on Debian GNU / Linux to Improve minor Apache performance

Thursday, November 29th, 2012

Disalable Apache Server-side includes on debian Linux disable SSI for better performance and security
By default Apache deb installable binary on Debian GNU / Linux is shipped with Apache version  (Apache 2.2.16-6+squeeze6) is configured to be able to process Server Side Include (SSIs) scripts.

For those who don't know what is a Server-Side Includes it a way giving  possibility for inclusion through .shtml or even .html files (if configured) to dynamically include and process external scripts. Most admins should have already seen SSI scripts, but it is possible they don't even know it is SSI. An example code from an SSI script looks something like:

<!--#include file="footer.html" -->

<!--#exec cgi="/cgi-bin/foo.cgi" --> <!--#exec cmd="ls -l" -->

As of time of writting (on Debian stable codename Squeeze – and I guess the unstable one too).

In Debian.BG one of my previous employment companies SSI was used on a few website Projects;  However nowadays SSI's are not so popular as they used to be and many websites using mostly PHP for a programming backend don't use / need the Server Side Includes at all. Thus it is recommended on such servers where SSIs aren't used and not planned by company to be used in short future to disable SSI  (.shtml) support completely. As the popular saying says "less is more" – having enabled SSI hanging their is simply a waste of Apache resources and just another hanging unused feature from security stand point is not good.

 SSI .shtml support in Debian is enabled via /etc/apache2/mods-available/mime.conf, not  through apache2.conf because of the modular Apache Debian build structure.

Thus to disable server-side parsing on Debian (and I guess other debian derivatives);

  • Edit /etc/apache2/mods-available/mime.conf

vim /etc/apache2/mods-available/mime.conf

  • Look for file section:

#
# Filters allow you to process content before it is sent to the client.
#
# To parse .shtml files for server-side includes (SSI):
# (You will also need to add "Includes" to the "Options" directive.)
#
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
 

  • Comment out .shtml mime directives to:

#
# Filters allow you to process content before it is sent to the client.
#
# To parse .shtml files for server-side includes (SSI):
# (You will also need to add "Includes" to the "Options" directive.)
#
##AddType text/html .shtml
##AddOutputFilter INCLUDES .shtml

  •   Apply changes, with the usual apache restart:

debian:~# apache2ctl -k restart

Don't expect that disabling SSI will give a great boost to the webserver but it will definitely, do a minor performance improvement. This should be noticable on  Webserver hosts (using apache2-mpm-prefork) with thousands of Apache forks, on a little home Webserver perf change is unnoticeable.

 

Constipation God’s punishment for our gluttony – My thoughts on Spiritual Reason for Constipation

Thursday, November 29th, 2012

Constipation God punishment for our gluttony, God's judgement on man
Some people might argue me but recently and over the last years, I had thoughts over the  so common nowadays problem of constipation. I think constipation  is God judgement on our increasingly gluttony self-love instead love for others, ungodliness  and our multiple sins.

I'm deriving this conclusion from my personal experience with constipation, every-time I over ate forced by my gluttony (partially forced by the over filling from everywhere with marketing to eat),  I get constipated. Constipation is one of the worst experience one can get and probably there is no person on earth who didn't experienced this in a stage of his earthly life. Probably half of the world is suffering from this terrible problem at least few times a year, where the frequency of constipation around people tends to be increasing with every consequential year.
Most of people from western world countries are in a number of times suffering more compared to less developed countries.

Main reason for increased constipation percentage in the western world (in my view) is the bad quality of half-artificually produced vegetables and fruits. Many of which grows as you should know grows in laboratories like places in order to do a cost saving for the companies. Due to the marketing hype and fuzz that took over westerners, many as a trick use the "green product" labeling just to make you convince their product, where in reality the product is far from green.

I think, God allowed the poisons which we hold in our hearts to materialize in our food as a punishment for our lack of repentance.

The hyper consumption that is ruling over western europe model is trying to spread itself in the less developed countries as well, while maybe a  billion of peoples all around the world are on the edge to die from hunger. In the west all businesses are trying to restructure themselves to more green friendly / (more green), whether parallel with that the same 'environment concerned businesses' are stimulating people to over consume through their marketing departments. Tell me isn't that one huge hypocrisy? How comes on one place a company talks about any efficiency if its fruits are inefficiency (over consumption)?

In the past days people consumed much less than today and less varied foods, still most of them were more heatlthy and many of them lived to an older age compared to know (this is a fact that one can learn not from the fake company statistics on the internet  trying to all the time show that the age barrier is increasing, this can be learned from our grandmothers and grandfathers and a bit of staring into history).

"Seed Companies" like Monsanto are already dominating the markets and killing the little farmers, so every next day, less and less of original God blessed plant seeds is left on earth. And even those who still are trying to be individual middle and little farmers are forced to buy already a genetically or hybrid modified seeds so a lot of the grown vegetables or fruits  is not grown through God blessed and given original food fondamential but some kind of 'human laboratory altered' plants. Most people and companies doesn't care if the seed is blessed or not by God or what kind of seed or food it is due to the fact they have long ago rejected God and do operate all their life with no God in their mind, but with the only goal for more and more pleasure and self-fulfillment of interests. It is sad really our bodies are constipated but it all starts from our soul constipation, we don't develop our souls in God's knowledge of good but advance instead in the "constipation" of  evil.

But constipation is not so bad in reality and it can be seen as a blessing from God as all pain makes us re-think over life and our deeds. Thus I believe though many might argue me, Constipation is just another of God's innumerous mercies over man to turn us to repentance and prayer.

But I think still there hope as long as each of us tries to be good or develop for good and pray to God, I believe all can be changed our soul and body constipation can be removed through God's power and mercy – only we have to strive for it ….