<?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>Aleksandar Savic</title>
	<atom:link href="http://aleksandarsavic.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://aleksandarsavic.com</link>
	<description>simplicity is beautiful</description>
	<lastBuildDate>Mon, 08 Dec 2008 23:37:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How to install and use djbdns name server on Ubuntu 6.06 LTS</title>
		<link>http://aleksandarsavic.com/how-to-install-and-use-djbdns-name-server-on-ubuntu-606-lts/</link>
		<comments>http://aleksandarsavic.com/how-to-install-and-use-djbdns-name-server-on-ubuntu-606-lts/#comments</comments>
		<pubDate>Fri, 25 Jan 2008 21:43:19 +0000</pubDate>
		<dc:creator>Aleksandar</dc:creator>
				<category><![CDATA[Notes]]></category>
		<category><![CDATA[djbdns]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://aleksandarsavic.com/how-to-install-and-use-djbdns-name-server-on-ubuntu-606-lts/</guid>
		<description><![CDATA[I do not issue any guarantee that this will work for you!!!
btw. it's working for me :p ...]]></description>
			<content:encoded><![CDATA[<p>I do not issue any guarantee that this will work for you!!!<br />
btw. it&#8217;s working for me :p</p>
<pre>apt-get install build-essential</pre>
<p>Download patches:</p>
<pre>mkdir -p /usr/local/djb/patches
cd /usr/local/djb/patches
wget http://www.thedjbway.org/patches/djb_errno_patches.tgz
tar xfvz djb_errno_patches.tgz</pre>
<p>Install daemontools:</p>
<pre>mkdir -p /package
chmod 1755 /package
cd /package
wget  http://cr.yp.to/daemontools/daemontools-0.76.tar.gz
gunzip daemontools-0.76.tar
tar -xpf daemontools-0.76.tar
rm daemontools-0.76.tar
cd admin/daemontools-0.76
touch /etc/inittab
patch -p1 &lt; /usr/local/djb/patches/daemontools-0.76.errno.patch
package/install</pre>
<p>Install ucspi-tcp:<br />
Download the ucspi-tcp package to a temporary directory (example: /usr/src)</p>
<pre>cd /usr/src
wget http://cr.yp.to/ucspi-tcp/ucspi-tcp-0.88.tar.gz
tar xfvz ucspi-tcp-0.88.tar.gz
cd ucspi-tcp-0.88
patch -p1 &lt; /usr/local/djb/patches/ucspi-tcp-0.88.errno.patch
make
make setup check</pre>
<p>Install djbdns:<br />
Download the djbdns package to a temporary directory (example: /usr/src)</p>
<pre>cd /usr/src
wget http://cr.yp.to/djbdns/djbdns-1.05.tar.gz
gunzip djbdns-1.05.tar.gz
tar -xf djbdns-1.05.tar
cd djbdns-1.05
echo gcc -O2 -include /usr/include/errno.h &gt; conf-cc
make
make setup check</pre>
<p>Configuring name server:<br />
Make sure you replace 1.2.3.4 with the external IP address of your system&#8230;</p>
<pre>useradd tinydns
useradd dnslog
tinydns-conf tinydns dnslog /etc/tinydns 1.2.3.4
ln -s /etc/tinydns /service 

useradd dnscache
dnscache-conf dnscache dnslog /etc/dnscache 127.0.0.1
ln -s /etc/dnscache /service</pre>
<p>To use dnscache, replace the existing name servers in /etc/resolv.conf with 127.0.0.1, the IP address that dnscache is listening on&#8230;</p>
<pre>cp /etc/resolv.conf /etc/resolv.conf.backup
nano /etc/resolv.conf</pre>
<p>Replace content of resolv.conf with:</p>
<pre>nameserver 127.0.0.1</pre>
<p>For tinydns web based front end you can use vegadns.. For how to set up vegadns go to http://www.djbdnsrocks.org/single/vegadns.htm</p>
<p>&#8212;<br />
<a rel="nofollow" href="http://store.dwalliance.com/news/view_article.html?article_id=7576a92a47743b7cf5956bd2e4e45539">DW Alliance</a> / <a rel="nofollow" href="http://www.dalbjerg.nu/?p=72">Dalbjerg</a> / <a rel="nofollow" href="http://techkey.blogspot.com/2005/12/install-dns-server-in-corporate.html">TechKey</a></p>
]]></content:encoded>
			<wfw:commentRss>http://aleksandarsavic.com/how-to-install-and-use-djbdns-name-server-on-ubuntu-606-lts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nginx rewrite config for ArticleLive</title>
		<link>http://aleksandarsavic.com/nginx-rewrite-config-for-articlelive/</link>
		<comments>http://aleksandarsavic.com/nginx-rewrite-config-for-articlelive/#comments</comments>
		<pubDate>Tue, 10 Jul 2007 23:53:58 +0000</pubDate>
		<dc:creator>Aleksandar</dc:creator>
				<category><![CDATA[Notes]]></category>
		<category><![CDATA[articlelive]]></category>
		<category><![CDATA[nginx]]></category>

		<guid isPermaLink="false">http://aleksandarsavic.com/nginx-rewrite-config-for-articlelive/</guid>
		<description><![CDATA[Nginx rewrite rules for ArticleLive: if (!-e $request_filename) { rewrite ^/categories(.*)$ /categories.php?$1 last; rewrite ^/articles(.*)$ /articles.php?$1 last; rewrite ^/pages(.*)$ /pages.php?$1 last; rewrite ^/blogs(.*)$ /blogs.php?$1 last; rewrite ^/news(.*)$ /news.php?$1 last; rewrite ^/authors(.*)$ /authors.php?$1 last; rewrite ^/search(.*)$ /search.php?$1 last; rewrite ^/articlerss(.*)$ /articlerss.php?$1 last; rewrite ^/contact(.*)$ /contact.php?$1 last; rewrite ^/blogrss(.*)$ /blogrss.php?$1 last; rewrite ^/newsrss(.*)$ /newsrss.php?$1 last; break; }]]></description>
			<content:encoded><![CDATA[<p>Nginx rewrite rules for <a href="http://www.interspire.com/articlelive/">ArticleLive</a>:</p>
<pre>if (!-e $request_filename) {
rewrite  ^/categories(.*)$  /categories.php?$1  last;
rewrite  ^/articles(.*)$  /articles.php?$1  last;
rewrite  ^/pages(.*)$  /pages.php?$1  last;
rewrite  ^/blogs(.*)$  /blogs.php?$1  last;
rewrite  ^/news(.*)$  /news.php?$1  last;
rewrite  ^/authors(.*)$  /authors.php?$1  last;
rewrite  ^/search(.*)$  /search.php?$1  last;
rewrite  ^/articlerss(.*)$  /articlerss.php?$1  last;
rewrite  ^/contact(.*)$  /contact.php?$1  last;
rewrite  ^/blogrss(.*)$  /blogrss.php?$1  last;
rewrite  ^/newsrss(.*)$  /newsrss.php?$1  last;
break;
}</pre>
]]></content:encoded>
			<wfw:commentRss>http://aleksandarsavic.com/nginx-rewrite-config-for-articlelive/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Running XtraUpload Under Nginx</title>
		<link>http://aleksandarsavic.com/running-xtraupload-under-nginx/</link>
		<comments>http://aleksandarsavic.com/running-xtraupload-under-nginx/#comments</comments>
		<pubDate>Mon, 02 Jul 2007 18:50:44 +0000</pubDate>
		<dc:creator>Aleksandar</dc:creator>
				<category><![CDATA[Notes]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[xtraupload]]></category>

		<guid isPermaLink="false">http://aleksandarsavic.com/running-xtraupload-under-nginx/</guid>
		<description><![CDATA[Nginx rewrite rules for XtraUpload: if (!-e $request_filename) { # New Rewrite Rules for total site SEO rewrite ^/(.*)/(.*)_(.*)/(.*)_(.*)/(.*)_(.*)/(.*)_(.*)/(.*)_(.*)/index\.htm$ /$1.php?$2=$3&#38;$4=$5&#38;$6=$7&#38;$8=$9&#38;$10=$11 last; rewrite ^/(.*)/(.*)_(.*)/(.*)_(.*)/(.*)_(.*)/(.*)_(.*)/index\.htm$ /$1.php?$2=$3&#38;$4=$5&#38;$6=$7&#38;$8=$9 last; rewrite ^/(.*)/(.*)_(.*)/(.*)_(.*)/(.*)_(.*)/index\.htm$ /$1.php?$2=$3&#38;$4=$5$6=$7&#38; last; rewrite ^/(.*)/(.*)_(.*)/(.*)_(.*)/index\.htm$ /$1.php?$2=$3&#38;$4=$5 last; rewrite ^/(.*)/(.*)_(.*)/index\.htm$ /$1.php?$2=$3 last; # More New Rewrite Rules for total site SEO, with index.htm pagess at the end rewrite ^/(.*)/(.*)_(.*)/(.*)_(.*)/(.*)_(.*)/(.*)_(.*)/(.*)_(.*)/$ /$1.php?$2=$3&#38;$4=$5&#38;$6=$7&#38;$8=$9&#38;$10=$11 [...]]]></description>
			<content:encoded><![CDATA[<p>Nginx rewrite rules for <a href="http://xtrafile.com/">XtraUpload</a>:</p>
<pre>if (!-e $request_filename) {
# New Rewrite Rules for total site SEO
rewrite ^/(.*)/(.*)_(.*)/(.*)_(.*)/(.*)_(.*)/(.*)_(.*)/(.*)_(.*)/index\.htm$ /$1.php?$2=$3&amp;$4=$5&amp;$6=$7&amp;$8=$9&amp;$10=$11 last;
rewrite ^/(.*)/(.*)_(.*)/(.*)_(.*)/(.*)_(.*)/(.*)_(.*)/index\.htm$ /$1.php?$2=$3&amp;$4=$5&amp;$6=$7&amp;$8=$9 last;
rewrite ^/(.*)/(.*)_(.*)/(.*)_(.*)/(.*)_(.*)/index\.htm$ /$1.php?$2=$3&amp;$4=$5$6=$7&amp; last;
rewrite ^/(.*)/(.*)_(.*)/(.*)_(.*)/index\.htm$ /$1.php?$2=$3&amp;$4=$5 last;
rewrite ^/(.*)/(.*)_(.*)/index\.htm$ /$1.php?$2=$3 last;

# More New Rewrite Rules for total site SEO, with index.htm pagess at the end
rewrite ^/(.*)/(.*)_(.*)/(.*)_(.*)/(.*)_(.*)/(.*)_(.*)/(.*)_(.*)/$ /$1.php?$2=$3&amp;$4=$5&amp;$6=$7&amp;$8=$9&amp;$10=$11 last;
rewrite ^/(.*)/(.*)_(.*)/(.*)_(.*)/(.*)_(.*)/(.*)_(.*)/$ /$1.php?$2=$3&amp;$4=$5&amp;$6=$7&amp;$8=$9 last;
rewrite ^/(.*)/(.*)_(.*)/(.*)_(.*)/(.*)_(.*)/$ /$1.php?$2=$3&amp;$4=$5$6=$7&amp; last;
rewrite ^/(.*)/(.*)_(.*)/(.*)_(.*)/$ /$1.php?$2=$3&amp;$4=$5 last;
rewrite ^/(.*)/(.*)_(.*)/$ /$1.php?$2=$3 last;

# Old rewrite rules for Files
rewrite ^/file/(.*)/(.*)$ /index.php?p=download&amp;link=$1&amp;name=$2 last;
rewrite ^/files/(.*)/(.*)$ /index.php?p=download&amp;link=$1&amp;name=$2 last;
rewrite ^/files/(.*)$ /index.php?p=download&amp;hash=$1 last;
rewrite ^/download/(.*)$ /index.php?p=get&amp;file=$1 last;

# Old Rewrite rules for direct imaging
rewrite ^/imagedirect/(.*)$ /imagedirect.php?file=$1 last;
rewrite ^/thumb/(.*)$ /thumb.php?file=$1 last;
break;
}</pre>
]]></content:encoded>
			<wfw:commentRss>http://aleksandarsavic.com/running-xtraupload-under-nginx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nginx redirect www.example.com requests to example.com or vice versa</title>
		<link>http://aleksandarsavic.com/nginx-redirect-wwwexamplecom-requests-to-examplecom-or-vice-versa/</link>
		<comments>http://aleksandarsavic.com/nginx-redirect-wwwexamplecom-requests-to-examplecom-or-vice-versa/#comments</comments>
		<pubDate>Fri, 15 Jun 2007 15:52:45 +0000</pubDate>
		<dc:creator>Aleksandar</dc:creator>
				<category><![CDATA[Notes]]></category>
		<category><![CDATA[nginx]]></category>

		<guid isPermaLink="false">http://aleksandarsavic.com/nginx-redirect-wwwexamplecom-requests-to-examplecom-or-vice-versa/</guid>
		<description><![CDATA[Add following configuration directive if you want to redirect www.example.com to example.com server { server_name www.example.com; rewrite ^(.*) http://example.com$1 permanent; } server { server_name example.com; Put here your domain hosting configuration. } Add following configuration directive if you want to redirect example.com to www.example.com server { server_name example.com; rewrite ^(.*) http://www.example.com$1 permanent; } server { [...]]]></description>
			<content:encoded><![CDATA[<p>Add following configuration directive if you want to redirect www.example.com to example.com</p>
<pre>server {
    server_name  www.example.com;
    rewrite ^(.*) http://example.com$1 permanent;
}

server {
    server_name  example.com;
    Put here your domain hosting configuration.
}</pre>
<p>Add following configuration directive if you want to redirect example.com to www.example.com</p>
<pre>server {
    server_name  example.com;
    rewrite ^(.*) http://www.example.com$1 permanent;
}

server {
    server_name  www.example.com;
    Put here your domain hosting configuration.
}</pre>
]]></content:encoded>
			<wfw:commentRss>http://aleksandarsavic.com/nginx-redirect-wwwexamplecom-requests-to-examplecom-or-vice-versa/feed/</wfw:commentRss>
		<slash:comments>26</slash:comments>
		</item>
		<item>
		<title>Nginx and WordPress setup clean SEO friendly URLs</title>
		<link>http://aleksandarsavic.com/nginx-and-wordpress-setup-clean-seo-friendly-urls/</link>
		<comments>http://aleksandarsavic.com/nginx-and-wordpress-setup-clean-seo-friendly-urls/#comments</comments>
		<pubDate>Mon, 11 Jun 2007 15:48:22 +0000</pubDate>
		<dc:creator>Aleksandar</dc:creator>
				<category><![CDATA[Notes]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://aleksandarsavic.com/nginx-and-wordpress-setup-clean-seo-friendly-urls/</guid>
		<description><![CDATA[Open your nginx configuration file: # nano /etc/nginx/nginx.conf Locate your domain (example.com) virtual hosting configuration and before &#8220;location ~ \.php$ {&#8221; add following lines: if (!-e $request_filename) { rewrite ^(.*)$ /index.php?q=$1 last; break; } At the end your configuration should look as follows: server { server_name example.com; index index.php; root /var/www/example.com; if (!-e $request_filename) { [...]]]></description>
			<content:encoded><![CDATA[<p>Open your nginx configuration file:</p>
<pre># nano /etc/nginx/nginx.conf</pre>
<p>Locate your domain (example.com) virtual hosting configuration and before &#8220;location ~ \.php$ {&#8221; add following lines:</p>
<pre>if (!-e $request_filename) {
  rewrite  ^(.*)$  /index.php?q=$1  last;
  break;
}</pre>
<p>At the end your configuration should look as follows:</p>
<pre>server {
    server_name     example.com;
    index           index.php;
    root            /var/www/example.com;

    if (!-e $request_filename) {
      rewrite  ^(.*)$  /index.php?q=$1  last;
      break;
    }  

    location ~ .php$ {
       fastcgi_pass  localhost:9999;
       fastcgi_index index.php;
       fastcgi_param SCRIPT_NAME $fastcgi_script_name;
       fastcgi_param REQUEST_URI $request_uri;
       fastcgi_param DOCUMENT_URI $document_uri;
       fastcgi_param DOCUMENT_ROOT $document_root;
       fastcgi_param REMOTE_ADDR $remote_addr;
       fastcgi_param REMOTE_PORT $remote_port;
       fastcgi_param SERVER_ADDR $server_addr;
       fastcgi_param SERVER_PORT $server_port;
       fastcgi_param SERVER_NAME $server_name;
       fastcgi_param SCRIPT_FILENAME  /var/www/example.com$fastcgi_script_name;
       fastcgi_param QUERY_STRING $query_string;
       fastcgi_param REQUEST_METHOD $request_method;
       fastcgi_param CONTENT_TYPE $content_type;
       fastcgi_param CONTENT_LENGTH $content_length;
    }
}</pre>
<p>Save and close the file. Restart nginx:</p>
<pre># /etc/init.d/nginx restart</pre>
]]></content:encoded>
			<wfw:commentRss>http://aleksandarsavic.com/nginx-and-wordpress-setup-clean-seo-friendly-urls/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
	</channel>
</rss>

