<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Web Developer</title>
	<atom:link href="/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.esecure.cc</link>
	<description>PHP AJAX MySQL SEO</description>
	<lastBuildDate>Tue, 21 Feb 2012 14:43:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Server monitoring &amp; snmpd in messages log</title>
		<link>http://www.esecure.cc/server-monitoring-snmpd-in-messages-log/</link>
		<comments>http://www.esecure.cc/server-monitoring-snmpd-in-messages-log/#comments</comments>
		<pubDate>Tue, 21 Feb 2012 14:43:16 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[SysAdmin]]></category>

		<guid isPermaLink="false">http://www.esecure.cc/?p=163</guid>
		<description><![CDATA[After installing monitoring host to track performance of our boxes and report any load / accessibility issues I noticed that SNMP daemon on monitored machines is filling up the logs with messages: snmpd[5082]: Connection from UDP: Several connections every minute &#8230; <a href="/server-monitoring-snmpd-in-messages-log/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>After installing monitoring host to track performance of our boxes and report any load / accessibility issues I noticed that SNMP daemon on monitored machines is filling up the logs with messages:</p>
<p>snmpd[5082]: Connection from UDP:</p>
<p>Several connections every minute gets out /var/logs/messages file grow very very fast with nothing important rather that monitoring host is connecting to the machine to gather its data.</p>
<p>echo OPTIONS=\”-LS 5 d -Lf /dev/null -p /var/run/snmpd.pid -a\” &gt;&gt;/etc/snmp/snmpd.options &amp;&amp; service snmpd restart</p>
<p>fixes it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.esecure.cc/server-monitoring-snmpd-in-messages-log/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Have you seen Messi?</title>
		<link>http://www.esecure.cc/have-you-seen-messi/</link>
		<comments>http://www.esecure.cc/have-you-seen-messi/#comments</comments>
		<pubDate>Thu, 28 Apr 2011 03:29:10 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Sports]]></category>

		<guid isPermaLink="false">http://www.esecure.cc/?p=160</guid>
		<description><![CDATA[I was just watching a compilation of this guy's goals for Barcelona. This dude never makes mistakes, its crazy! 2:0 with Real Madrid, and the second goal he went through the wall of four defenders and defeated the goal keeper, WTF! definitely worth the money they pay him :) Too bad did not help Argentina beat Germans in last World Cup. <a href="/have-you-seen-messi/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I was just watching a compilation of this guy&#8217;s goals for Barcelona. This dude never makes mistakes, its crazy! 2:0 with Real Madrid, and the second goal he went through the wall of four defenders and defeated the goal keeper, WTF! definitely worth the money they pay him <img src='/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Too bad did not help Argentina beat Germans in last World Cup.</p>
<p>Anyways, its been long time since I&#8217;ve seen THAT skill.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.esecure.cc/have-you-seen-messi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Thank you Rachel Maddow</title>
		<link>http://www.esecure.cc/thank-you-rachel-maddow/</link>
		<comments>http://www.esecure.cc/thank-you-rachel-maddow/#comments</comments>
		<pubDate>Tue, 12 Apr 2011 04:10:28 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Politics]]></category>

		<guid isPermaLink="false">http://www.esecure.cc/?p=150</guid>
		<description><![CDATA[I would like to thank Rachel for excellent source of information and eduction at the same time with a smack of political debate her show is. Its very hard to find a "news" program in US, rather than policial agenda here they broadcast flagged as "news". Most of us realize than there are conservative and liberal media and they all have "their own news" story. Kinda about the same thing, but somehow ends up reported different on other channels.

Some news channels I've seen promote nothing but their political agenda, still branding it as "news".

So, whats really a news nowadays? Something somebody did that made you angry and you can fire back starting off political debate? Or something different? Like something that we should all listen and learn for common good, not let our civilization fall into ruins.

I think real "news" pay vey important role in social connected society. Even "little" reported bad can spark a revolution. A revolution can die, if not supported and reported as "news".

Rachel you not only touch important topics, but make them exciting for others, probably because it obviously truly excites you :) But you can pass it on. Stories we could never hear anywhere - like last super secret CIA operation to protect loose nukes. Nobody knows whats really going on out there, but you deliver fact and only fact applying your take as a logic explanation. Instead of mean propaganda pushed by others as "news channels". <a href="/thank-you-rachel-maddow/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I would like to thank Rachel for excellent source of information and eduction at the same time with a smack of political debate her show is. Its very hard to find a &#8220;news&#8221; program in US, rather than policial agenda here they broadcast flagged as &#8220;news&#8221;. Most of us realize than there are conservative and liberal media and they all have &#8220;their own news&#8221; story. Kinda about the same thing, but somehow ends up reported different on other channels.</p>
<p>Some news channels I&#8217;ve seen promote nothing but their political agenda, still branding it as &#8220;news&#8221;.</p>
<p>So, whats really a news nowadays? Something somebody did that made you angry and you can fire back starting off political debate? Or something different? Like something that we should all listen and learn for common good, not let our civilization fall into ruins.</p>
<p>I think real &#8220;news&#8221; pay vey important role in social connected society. Even &#8220;little&#8221; reported bad can spark a revolution. A revolution can die, if not supported and reported as &#8220;news&#8221;.</p>
<p>Rachel you not only touch important topics, but make them exciting for others, probably because it obviously truly excites you <img src='/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  But you can pass it on. Stories we could never hear anywhere &#8211; like last super secret CIA operation to protect loose nukes. Nobody knows whats really going on out there, but you deliver fact and only fact applying your take as a logic explanation. Instead of mean propaganda pushed by others as &#8220;news channels&#8221;.</p>
<p>I learn a lot, I watch everyday (thanks for excellent podcast). For my 14 hour day of work I cannot grab a live broadcast, but unlike some other of my favorite shows, yours I have always ready on my cell to watch before I fall asleep. Pleasure&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.esecure.cc/thank-you-rachel-maddow/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mktime date range: last week, last month</title>
		<link>http://www.esecure.cc/mktime-date-range-last-week-last-month/</link>
		<comments>http://www.esecure.cc/mktime-date-range-last-week-last-month/#comments</comments>
		<pubDate>Sat, 29 Jan 2011 00:54:03 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.esecure.cc/?p=132</guid>
		<description><![CDATA[Cannot believe you have to do extensive search on google for this. Ended up writing myself. $this_week_fr  = mktime(0, 0, 0, date('n'), date('j'),   date('Y')) - ((date('N')-1)*3600*24); $last_week_fr  = mktime(0, 0, 0, date('n'), date('j')-6, date('Y')) - (date('N')*3600*24); $last_week_to  = mktime(24,0, &#8230; <a href="/mktime-date-range-last-week-last-month/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Cannot believe you have to do extensive search on google for this. Ended up writing myself.</p>
<pre class="brush:php">
$this_week_fr  = mktime(0, 0, 0, date('n'), date('j'),   date('Y')) - ((date('N')-1)*3600*24);
$last_week_fr  = mktime(0, 0, 0, date('n'), date('j')-6, date('Y')) - (date('N')*3600*24);
$last_week_to  = mktime(24,0, 0, date('n'), date('j'),   date('Y')) - (date('N')*3600*24)-86400;
$this_month_fr = mktime(0, 0, 0, date('n'),   1, date('Y'));
$last_month_fr = mktime(0, 0, 0, date('n')-1, 1, date('Y'));
$last_month_to = mktime(0, 0, 0, date('n'),   0, date('Y'));
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.esecure.cc/mktime-date-range-last-week-last-month/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nexus S</title>
		<link>http://www.esecure.cc/nexus-s/</link>
		<comments>http://www.esecure.cc/nexus-s/#comments</comments>
		<pubDate>Mon, 10 Jan 2011 15:55:50 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Android]]></category>

		<guid isPermaLink="false">http://www.esecure.cc/?p=129</guid>
		<description><![CDATA[I've seen many posts on the internet people sharing their experience of getting of the hook of AT&#038;T. I think Apple with their great product which definitely iPhone is, is hurting a lot lately because AT&#038;T predatory plans. Its the same reason people move away from iPhone like mine. Not iPhone itself, but because AT&#038;T charges and plan restrictions OS X may loose its dominant position on mobile market.  <a href="/nexus-s/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>So I got Nexus S with Gingerbread. I think this is as close as it gets to iPhone OS X functionality right now. Still needs two three more releases to iron the edges and fix annoying bugs, but close enough to actually make conscious decision to make a switch.</p>
<p>I&#8217;ve seen many posts on the internet people sharing their experience of getting of the hook of AT&amp;T. I think Apple with their great product which definitely iPhone is, is hurting a lot lately because AT&amp;T predatory plans. Its the same reason people move away from iPhone like mine. Not iPhone itself, but because AT&amp;T charges and plan restrictions OS X may loose its dominant position on mobile market.</p>
<p>I like Nexus S, but theres few little things here and there that bug me. I hope Samsung can look at few of them and fix in next release as I notice Im not the only one complaining.</p>
<h3>Location on power button</h3>
<p>If you take in consideration that most quick operation you perform on your phone would be with your thumb while holding the handset on the palm of your hand, the button should be located lower (close to middle) so thumb actually can reach it in this position.</p>
<h3>Buttons / screen sensitivity</h3>
<p>Specially annoying in full screen video player mode. The screen will react/turn off on any accidental touch. I think there should be a delay added to power button and home, menu buttons while in player mode to make sure user really wanted to use them at that moment. Same goes to accidental touch screen triggers. I dont recall iPhone would ever react to &#8220;non human&#8221; touch, like clothing, USB cable etc. Nexus S does.</p>
<h3>Software for front camera support</h3>
<p>Shame on Skype for not supporting it yet on Android. Come on.</p>
<h3>Launcher bugs</h3>
<p>Gets stocked sometimes on main screen, does not react to swipes to left right. Same happens to my friend, so must be system issue. Did not experience this with Froyo before.</p>
<h3>Wifi</h3>
<p>Definitely gone worst comparing to G2. Checked too with WiFi Analyser &#8211; shows right there. Theres many posts about low power chip already on the internet. Samsung &#8211; &#8220;Who does that shit man?&#8221; as Mike Tayson would say.</p>
<p>That&#8217;s what comes to my head right now. Other than that its a good phone, with good OS. There&#8217;s functionality you dont get iPhone and AT&amp;T or would otherwise be charged &#8211; like create WiFi hot spot, so Im not switching back.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.esecure.cc/nexus-s/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I want Gingerbread!</title>
		<link>http://www.esecure.cc/i-want-gingerbread/</link>
		<comments>http://www.esecure.cc/i-want-gingerbread/#comments</comments>
		<pubDate>Wed, 22 Dec 2010 18:30:49 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Brainfarts]]></category>

		<guid isPermaLink="false">http://www.esecure.cc/?p=124</guid>
		<description><![CDATA[Well turns out Im not the only one googling for Gingerbread, but it looks like getting OS updates with Android isn't as smooth ride like with iPhone. Im a coder so I understand hardware compatibility issues, ble ble ble. Fuck that man, dont give me that bullshit. Dudes, you want to create a platform that supposed to beat iPhones OSX ass, keep up with the reality! Do you expect people to wait for handset manufacturer to approve and mod each new OS version, then go through the same with the carrier. Who are you kidding. That will take months if ever happens. Bottom line is that if you have an Android device you are stuck with what you have now.  <a href="/i-want-gingerbread/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Few weeks ago I switched form AT&amp;T to Tmobile, and dropped iPhone for G2. Got through some tough time to get used to Android, and now they count me in as a fan and supporter of that mobile OS.</p>
<p>Few days ago Nexus S came up with Android 2.3 Gingerbread and I started googling for OS update for my G2. Gingerbread brings lots of cool features I already got used to with my iPhone &#8211; like simple copy &amp; paste for example. So I want my Gingerbread update.</p>
<p>As ex iPhone user Im used to consider an update the minute it comes up. Actually everybody who uses hacked iPhones, consider waiting a bit until jailbreak comes up for latest OS <img src='/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Well turns out Im not the only one googling for Gingerbread. It looks like getting OS updates with Android isn&#8217;t as smooth ride as it is with an iPhone. Im a coder so I understand hardware compatibility issues, ble ble ble. Fuck that man! Dont give me that bullshit. Dudes, you want to create a platform that supposed to beat iPhones OSX ass, keep up with the reality! Do you expect people to wait for handset manufacturer to approve and mod each new OS version, then go through the same with the carrier. Who are you kidding? That will take months if ever happens. Bottom line is that if you have an Android device you are stuck with what you have now. I get chicken skin when I read Android forums and people saying &#8220;well, a month wait is not that much&#8230;&#8221;. WTF! Its faster to return old phone and get a new one!</p>
<p>They should really coordinate new OS releases with yes/no answer on each device that runs Android on day one. Will be updated or no, and if yes, here&#8217;s the link. How do you expect to compete with OSX? The way it is right now its ridiculous. Fuck waiting, Im already considering changing the phone to Nexus S. Bye bye HTC. You will give me a Xmas present by handing an OS update a month after its release day. Too late, tooooo fucking late.</p>
<p>I dont take any bull crap about hardware compatibility and OS mods. It should be coordinated process. On release day I expect to have an SMS on my cell with link to system update, or &#8220;sorry, will not happen &#8211; buy new phone&#8221;, thats bottom line. Cannot deliver? &#8211; dont use fucking Google logo on handsets that you sell!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.esecure.cc/i-want-gingerbread/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS VPN setup</title>
		<link>http://www.esecure.cc/centos-vpn-setup/</link>
		<comments>http://www.esecure.cc/centos-vpn-setup/#comments</comments>
		<pubDate>Tue, 21 Dec 2010 21:28:01 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[SysAdmin]]></category>

		<guid isPermaLink="false">http://www.esecure.cc/?p=119</guid>
		<description><![CDATA[Quick guide to setup VPN in CentOS (my platform i386): wget http://poptop.sourceforge.net/yum/stable/rhel5/i386/pptpd-1.3.4-2.rhel5.i386.rpm rpm -ivh pptpd-1.3.4-2.rhel5.i386.rpm nano /etc/pptpd.conf Go to the end of the file where you can see examples of localip and remoteip. Below them add your own values for &#8230; <a href="/centos-vpn-setup/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Quick guide to setup VPN in CentOS (my platform i386):</p>
<ul>
<li>wget http://poptop.sourceforge.net/yum/stable/rhel5/i386/pptpd-1.3.4-2.rhel5.i386.rpm</li>
<li>rpm -ivh pptpd-1.3.4-2.rhel5.i386.rpm</li>
<li>nano /etc/pptpd.conf</li>
</ul>
<p>Go to the end of the file where you can see examples of localip and remoteip. Below them add your own values for localip and remoteip.</p>
<p><code>localip 10.0.1.201<br />
remoteip 10.0.1.10-100</code></p>
<p>In the above, 10.0.0.201 will be used for the ppp interface and 10.0.0.10 &#8211; 10.0.0.100 will be assigned to the clients.</p>
<p><span style="font-size: 14px; line-height: 16px;"> </span></p>
<ul>
<li>nano /etc/ppp/options.pptpd</li>
</ul>
<p><span style="font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; line-height: 13px; font-size: 11px;">ms-dns 208.67.222.222</span></p>
<p>Thats all you need to change in the options.pptpd file. Next you will need to edit the file /etc/ppp/chap-secrets to add usernames and passwords for your <em>clients</em>. You need to enter the usernames and passwords in the following format.</p>
<p><code># Secrets for authentication using CHAP<br />
# client server secret IP addresses<br />
username pptpd password *</code></p>
<p><code> </code></p>
<p><strong>IP Forwarding and Firewall Rules</strong></p>
<p>Now we need to enable IP forwarding. So open the file /etc/sysctl.conf and set ‘net.ipv4.ip_forward’ to .</p>
<p><code>net.ipv4.ip_forward = 1</code></p>
<p>To make the changes to sysctl.conf take effect, use the following command.</p>
<p><code>sysctl -p</code></p>
<p>iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE<br />
iptables -A INPUT -i eth0 -p tcp &#8211;dport 1723 -j ACCEPT<br />
iptables -A INPUT -i eth0 -p gre -j ACCEPT<br />
iptables -A FORWARD -i ppp+ -o eth0 -j ACCEPT<br />
iptables -A FORWARD -i eth0 -o ppp+ -j ACCEPT</p>
<p>service pptpd start</p>
]]></content:encoded>
			<wfw:commentRss>http://www.esecure.cc/centos-vpn-setup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Acer Aspire One CentOS 5 &#8211; network problem</title>
		<link>http://www.esecure.cc/acer-aspire-one-centos-5-network-problem/</link>
		<comments>http://www.esecure.cc/acer-aspire-one-centos-5-network-problem/#comments</comments>
		<pubDate>Sat, 04 Dec 2010 21:25:23 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[SysAdmin]]></category>

		<guid isPermaLink="false">http://www.esecure.cc/?p=112</guid>
		<description><![CDATA[Acer Aspire One running CentOS 5, network card problem solved with rpm -Uvh kmod-atl1e-1.0.1.9-2.el5.elrepo.i686.rpm module-init-tools-3.3-0.pre3.1.60.el5.elrepo.i386.rpm
This post explains where to download necessary files from and how to install them. <a href="/acer-aspire-one-centos-5-network-problem/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Recently I got small Acer Aspire One for around $300 to use as my local linux router/testing box. It came with preinstalled Windows 7, which I never ever started once &#8211; just booted straight from external USB CD drive to install CentoOS 5.</p>
<p>Everything went through well, except it did not recognize properly neither wired network card and wireless interface. I did some quick research and everything seems to point to different network driver that CentOS comes with that you need to disable:</p>
<p><strong>blacklist r8169</strong> in your <strong>/etc/modprobe.d/blacklist</strong> file.</p>
<p>but then most sites point to install r8101, which did not help in my case. So I checked whats on board with lspci, and turns our I have different network chip: AR8132</p>
<p>In that case you need to download atl1e driver from: <a href="http://elrepo.org/linux/elrepo/el5/i386/RPMS/" target="_blank">http://elrepo.org/linux/elrepo/el5/i386/RPMS/</a></p>
<p>during install mine popup conflict with module-init-tools. No worries, all you need to do is to download additional file from the same repo module-init-tools-3.3-0.pre3.1.60.el5.elrepo.i386.rpm and install them both together:</p>
<pre>rpm -Uvh kmod-atl1e-1.0.1.9-2.el5.elrepo.i686.rpm module-init-tools-3.3-0.pre3.1.60.el5.elrepo.i386.rpm</pre>
<p>after reboot the eth0 is up! Now time to connect wireless, which seems to be recognized but does not want to join my protected wireless network and bring up screen resolution to something more than 800&#215;600. I&#8217;ll post updates once I get this going.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.esecure.cc/acer-aspire-one-centos-5-network-problem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lighttpd mod rewrite with file exists condition</title>
		<link>http://www.esecure.cc/lighttpd-mod-rewrite-with-file-exists-condition/</link>
		<comments>http://www.esecure.cc/lighttpd-mod-rewrite-with-file-exists-condition/#comments</comments>
		<pubDate>Wed, 24 Nov 2010 19:33:05 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[SysAdmin]]></category>

		<guid isPermaLink="false">http://www.esecure.cc/?p=107</guid>
		<description><![CDATA[You know apache conditional re-writing rules, like: 

RewriteCond %{REQUEST_FILENAME} !-s

How do you do it with lighttpd? Seems that the guys did not wanted to have a take on it for some performance reasons, but its also a condition rule that many PHP framework cannot live without. 

Yes you can redirect everything to PHP and then handle it there, but then essentially you everything needs to be handle by PHP - even static files and headers and and and and becomes a headache. <a href="/lighttpd-mod-rewrite-with-file-exists-condition/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>You know apache conditional re-writing rules, like:</p>
<p>RewriteCond %{REQUEST_FILENAME} !-s</p>
<p>How do you do it with lighttpd? Seems that the guys did not wanted to have a take on it for some performance reasons, but its also a condition rule that many PHP framework cannot live without.</p>
<p>Yes you can redirect everything to PHP and then handle it there, but then essentially you everything needs to be handle by PHP &#8211; even static files and headers and and and and becomes a headache.</p>
<p>So my findings at this point to achieve the <strong>rewrite all but not if file exists</strong> goal is something like this:</p>
<pre class="php">url.rewrite-if-not-file = (
    ".*?\?(.*)" =&gt; "index.php?$1",
    "(.*)" 	=&gt; "index.php"
)
server.error-handler-404 = "index.php"</pre>
<p>So Im aware of -if-not-file, but that seems to work only like kinda detector for file extension, does not really check if the file exists in file system. I found also <a href="http://lmmrtech.com/lighttpd_mod_rewrite_with_file_exists_check" target="_blank">that mod</a> for mod_rewrite.c, re-compiled my lighttpd with it, but did not seem to make any difference than regular <b>url.rewrite-if-not-file</b>. Maybe its an old patch for previous version oflighttpd? I use latest one 1.4.28.</p>
<p>Finally with my code above you get all requests passed to php except files that exists in filesystem. Request for a file will be handled by 404 handler and gets to PHP as well eventually. Not super pretty &#8211; but seems to work <img src='/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.esecure.cc/lighttpd-mod-rewrite-with-file-exists-condition/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lighttpd &amp; Apache on the same port 80</title>
		<link>http://www.esecure.cc/lighttpd-apache-on-the-same-port-80/</link>
		<comments>http://www.esecure.cc/lighttpd-apache-on-the-same-port-80/#comments</comments>
		<pubDate>Tue, 23 Nov 2010 04:51:41 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[SysAdmin]]></category>

		<guid isPermaLink="false">http://www.esecure.cc/?p=102</guid>
		<description><![CDATA[Recently one of the domains I host got under DOS attack fire. Im talking serious traffic that the box could not handle and apache pumped up 99% CPU. Well its time for an upgrade there I thought, and turned to my hosting company to get new one. 

In the meantime I tried to handle the situation and installed mod_evasive with APF firewall to put DROP rules for incoming IPs. Anyways it seemed not to make much difference in my case, so I ended up crawling site into static html and putting it on my CDN for now.  <a href="/lighttpd-apache-on-the-same-port-80/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Recently one of the domains I host got under DOS attack fire. Im talking serious traffic that the box could not handle and apache pumped up 99% CPU. Well its time for an upgrade there I thought, and turned to my hosting company to get new box setup.</p>
<p>In the meantime I tried to handle the situation and installed mod_evasive with APF firewall to put DROP rules for incoming IPs. Anyways it seemed not to make much difference in my case, so I ended up crawling site into static html and putting it on CDN for now.</p>
<p>I went through some different setups with Apache, pointing back and forth DNS from CDN to my box, but even on new Xeon 3GHz it was not enough to deal with the situation. I got CPU under control, but there were too many apache instances running making all other vhosts dead.</p>
<p>Hmm, I have to move all those vhosts to new box, so maybe its a good time to look into other web servers than apache? I run lighttpd on other boxes I manage and never had any problems, so I ended up migrating WordPress blogs to lighttpd. Still I have many other vhosts that simply cannot be migrated easy now because of .htaccess usage.</p>
<p>So can I run lighttpd and apache on the same box and both on port 80? Yes, I can. I setup apache to listen on some specific IP addresses and lighttpd on other ones.</p>
<p><strong>Apache:</strong> Listen <span style="line-height: 15px; font-size: 13px;">184.154.89.117</span>:80</p>
<p><strong>Lighttpd:</strong> <span style="line-height: 15px; font-size: 13px;">server.bind = &#8220;184.154.89.118&#8243;</span></p>
<div id="_mcePaste"><span style="line-height: 16px; font-size: 14px;">From what I can see lighttpd handles everything faster and much smoother. </span></div>
]]></content:encoded>
			<wfw:commentRss>http://www.esecure.cc/lighttpd-apache-on-the-same-port-80/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced

Served from: www.esecure.cc @ 2012-05-20 19:03:54 -->
