<?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>Fly together Forever 比翼恒飞 &#187; Linux</title>
	<atom:link href="http://www.liucougar.net/blog/archives/category/linux/feed" rel="self" type="application/rss+xml" />
	<link>http://www.liucougar.net/blog</link>
	<description></description>
	<lastBuildDate>Fri, 19 Feb 2010 21:27:35 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9-rare</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>librsvg does not support underlined text in svg</title>
		<link>http://www.liucougar.net/blog/archives/166</link>
		<comments>http://www.liucougar.net/blog/archives/166#comments</comments>
		<pubDate>Fri, 02 Jan 2009 23:49:39 +0000</pubDate>
		<dc:creator>liucougar</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.liucougar.net/blog/?p=166</guid>
		<description><![CDATA[It is well known that Firefox (even the latest 3.x) does not support text-decoration=&#8221;underline&#8221; on text elements in SVG. However, it bites me hard when I found out imagemagick does not support that either when rastering svg to pixel images.
After digging around, (by looking at the ebuild file) I found out that imagemagick is actually [...]]]></description>
			<content:encoded><![CDATA[<p>It is <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=317196" target="_blank">well known</a> that Firefox (even the latest 3.x) does not support <strong>text-decoration=&#8221;underline&#8221;</strong> on text elements in SVG. However, it bites me hard when I found out imagemagick does not support that either when rastering svg to pixel images.</p>
<p>After digging around, (by looking at the <a href="http://gentoo-portage.com/media-gfx/imagemagick" target="_blank">ebuild</a> file) I found out that imagemagick is actually making use of librsvg to do the heavy lifting when dealing with svg files.</p>
<p>librsvg is part of gnome-base packages (as can be seen in <a href="http://gentoo-portage.com/gnome-base/librsvg" target="_blank">gentoo portage</a>). Looking at the source code, I figured that it makes use of <a href="http://www.pango.org/" target="_blank">pango</a> to render text.</p>
<p>From the days of working on <a href="http://www.scim-im.org/" target="_blank">SCIM</a> project, I know for sure that pango is more than capable of rendering text with underlines. So there must be something missing in librsvg to render it. It turns out that, while the svg parser implemented in librsvg does indeed look for text-decoration, and recoganize underline (among strikethrough and overline), it is not actually making use of these parsed info to render the text.</p>
<p>After a bit of tracing the code, I found out how to patch it: the trick is just to add a pango underline attribute to the text layout, and everything else is taken care of by pango.</p>
<p>This bug is <a href="http://bugzilla.gnome.org/show_bug.cgi?id=566365" target="_blank">reported</a> to upstream, and hopefully it will be merged there soon. The patch is available in that bug report, so you can grab it if you can&#8217;t wait. The patch also fixes a bug which is discovered after the underline problem is fixed: when a underlined text has stroke set, the stroke is rendered in wrong position.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.liucougar.net/blog/archives/166/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Convert VirtualBox image (vdi) to VMWare (vmdk)</title>
		<link>http://www.liucougar.net/blog/archives/118</link>
		<comments>http://www.liucougar.net/blog/archives/118#comments</comments>
		<pubDate>Fri, 19 Dec 2008 07:05:48 +0000</pubDate>
		<dc:creator>liucougar</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://liucougar.scim-im.org/blog/?p=118</guid>
		<description><![CDATA[Due to better 64bit support, we decided to use VMWare instead of VirtualBox. To prevent of installing a gentoo to a VMWare image, I decided to convert the already working virtualbox image (a vdi file) to VMWare (vmdk).

Qemu-img is the command line tool for this task, using the following line, I can get a vmdk:


qemu-img [...]]]></description>
			<content:encoded><![CDATA[Due to better 64bit support, we decided to use VMWare instead of VirtualBox. To prevent of installing a gentoo to a VMWare image, I decided to convert the already working virtualbox image (a vdi file) to VMWare (vmdk).

Qemu-img is the command line tool for this task, using the following line, I can get a vmdk:


<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;">qemu-img convert <span style="color: #660033;">-O</span> vmdk gentoo32.vdi gentoo32.vmdk</pre></div></div>



However, this vmdk is not recognized by VMWare 6.5. I guess it has something to do with the fact that the original vdi file is using dynamic sizing (the file contains a 5G partition, and it only has 1.9G data, so the real size for the vdi file is about 2.1G): the converted vmdk is 1.9G, and VMWare reports that it has 2.1G total size.When booting with this image, VMWare fails to read any data from the virtual disk.

After tried another time with the above approach, which also failed, it seems I have to find another way.

Luckily, VirtualBox comes with a command line tool called vboxmanage, which can do all sorts of operations on vdi files, including converting vdi to raw disk image, so let&#8217;s try that:


<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;">vboxmanage internalcommands converttoraw gentoo32.vdi gentoo32.raw</pre></div></div>



The above command will generate a 5G gentoo32.raw file. Then use qemu-img:


<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;">qemu-img convert <span style="color: #660033;">-O</span> vmdk gentoo32.raw gentoo32.vmdk</pre></div></div>



To convert the raw file to vmdk. The resulting vmdk file is also 1.9G, but this time VMWare recognize it just fine (reporting its real size as 5G).

After changing the root device from <code>/dev/sda1</code> to <code>/dev/hda1</code>, this image can boot just fine in VMWare, with one exception: the network interface eth0 can not be started. More inspecting reveals that &#8220;udev renames network interface eth0 to eth1&#8243;. This is caused by the fact that one of the default gentoo udev rule (<code>/etc/udev/rules.d/75-persistent-net-generator.rules</code>) will write another rule file which saves the MAC address for each NIC, and sure enough, the MAC address for the NIC in VirtualBox is different from that of VMWare. However, this is very easy to fix, once you know where the generated udev rule is:

Open <code>/etc/udev/rules.d/70-persistent-net.rules</code> and remove all rules in this file, save and reboot, eth0 won&#8217;t be renamed to eth1 any more.]]></content:encoded>
			<wfw:commentRss>http://www.liucougar.net/blog/archives/118/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Reverse proxy cherrypy with Apache/Nginx</title>
		<link>http://www.liucougar.net/blog/archives/91</link>
		<comments>http://www.liucougar.net/blog/archives/91#comments</comments>
		<pubDate>Sun, 07 Dec 2008 04:45:56 +0000</pubDate>
		<dc:creator>liucougar</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[dojo]]></category>

		<guid isPermaLink="false">http://www.liucougar.net/blog/?p=91</guid>
		<description><![CDATA[For the past several months, I am developing frontend against a bare cherrypy server which also serves all static files, like javascripts/images etc. Without building frontend code (so there are lots of small js files to load), it takes more than 20 seconds to reload the unbuilt frontend application I am working on (which is [...]]]></description>
			<content:encoded><![CDATA[<p>For the past several months, I am developing frontend against a <em>bare</em> cherrypy server which also serves all static files, like javascripts/images etc. Without building frontend code (so there are lots of small js files to load), it takes more than 20 seconds to reload the unbuilt frontend application I am working on (which is the main driver behind my hacking on <a href="/blog/archives/89">dojo.reload</a>).</p>

<h3>Use Apache as proxy server</h3>
<p>Today I decided to shield an apache proxy server in front of the cherrypy server to off load all static files serving duties from the latter, in the hope of speeding up reloading speed of the app.</p>

<p>The apache proxy should be setup so that it directly serves any files under /debug and /release, all other requests are dynamic and should be handled by cherrypy server. In addition, our backend app sometimes use HTTP redirects to direct client to a new page. In Apache configuration file, all this can be achieved by:</p>


<div class="wp_syntax"><div class="code"><pre class="apache apache" style="font-family:monospace;"><span style="color: #00007f;">ProxyPassMatch</span> ^/(?:debug|release)/.* !
<span style="color: #00007f;">ProxyPass</span> / http://127.0.0.1:<span style="color: #ff0000;">8000</span>/
&nbsp;
<span style="color: #00007f;">ProxyPassReverse</span> / http://127.0.0.1:<span style="color: #ff0000;">8000</span>/
&nbsp;
<span style="color: #00007f;">Alias</span> /debug /var/www/htdocs
<span style="color: #00007f;">Alias</span> /release /var/www/htdocs/release</pre></div></div>




<p>Note: the <code>/debug</code> directory is the unbuilt frontend code, while the <code>/release</code> points to the built frontend code (by default, dojo will put the built version under release directly as peer of dojo dir).</p>
<p>With the above settings, cherrypy is nicely sitting behind the Apache server without worrying about any static files, and the reloading time of the unbuilt frontend code now reduces to about 4 seconds, which is a dramatic improvement.</p>

<h3>Try nginx instead</h3>
<p><a href="http://nginx.net/">nginx</a> is normally considered to be a faster reverse proxy server than apache, so I want to give it a try. </p>
<p>In nginx configuration file, proxy_pass is used to pass the request to a backend server, while it does not use proxy_pass_reverse, instead the equivalent in nginx is proxy_redirect directive. As long as your host domain name is properly set up, the following nginx directive is equavalent to the above apache directive:</p>


<div class="wp_syntax"><div class="code"><pre class="apache apache" style="font-family:monospace;"><span style="color: #00007f;">location</span> /debug/ {
    <span style="color: #00007f;">alias</span> /var/www/htdocs;
}
<span style="color: #00007f;">location</span> /release/ {
    <span style="color: #00007f;">alias</span> /var/www/htdocs/release;
}
<span style="color: #00007f;">location</span> / {
    <span style="color: #00007f;">proxy_pass</span> http://127.0.0.1:<span style="color: #ff0000;">8000</span>;
    <span style="color: #00007f;">proxy_redirect</span> default;
}</pre></div></div>



<p>More info on proxy_redirect can be found in official <a href="http://wiki.codemongers.com/NginxHttpProxyModule#proxy_redirect">documentation</a>.</p>

<h3>Impression of Nginx compared to Apache</h3>
<p>While I don&#8217;t want to do any thorough comparsion of the two reverse proxy servers, I just tried each of them several times and monitors the net panel output in firebug. It seems, nginx delievers more consistent performance: for the same page, apache sometimes deliver it in 1 second, sometimes in 4 seconds, while nginx always delivers it in 1 second. Thus I guess I will just keep using nginx at least for now.</p>]]></content:encoded>
			<wfw:commentRss>http://www.liucougar.net/blog/archives/91/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>latest rsync incompatible with EC2 kernel</title>
		<link>http://www.liucougar.net/blog/archives/83</link>
		<comments>http://www.liucougar.net/blog/archives/83#comments</comments>
		<pubDate>Thu, 24 Jan 2008 22:26:25 +0000</pubDate>
		<dc:creator>liucougar</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.liucougar.net/blog/archives/83</guid>
		<description><![CDATA[
I just noticed that re-bundling in EC2 instance is not working. Google told me that it is due to the  
incompatibility between latest rsync and relatively old kernel used by EC2 (2.6.16).
In the  
thread about this issue, 5 possible workarounds are presented. However, none of them are easy under gentoo without messing up [...]]]></description>
			<content:encoded><![CDATA[
<p>I just noticed that re-bundling in EC2 instance is not working. Google told me that it is due to the  
<a href="http://developer.amazonwebservices.com/connect/thread.jspa?messageID=75989">incompatibility</a> between latest rsync and relatively old kernel used by EC2 (2.6.16).</p>
<p>In the  
<a href="http://developer.amazonwebservices.com/connect/thread.jspa?messageID=75989">thread</a> about this issue, 5 possible workarounds are presented. However, none of them are easy under gentoo without messing up with ebuild/emerge. I found another way, and you don&#8217;t need to regenerate the configure file for rsync at all, all you need is to comment the following line in the config.h file (which is generated after you run the configure script):</p>
<p>#define HAVE_LUTIMES 1</p>
<p>then make and make install, all should be fine now.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.liucougar.net/blog/archives/83/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Dynamic dns setup for gentoo EC2 AMI</title>
		<link>http://www.liucougar.net/blog/archives/80</link>
		<comments>http://www.liucougar.net/blog/archives/80#comments</comments>
		<pubDate>Sat, 22 Dec 2007 23:23:49 +0000</pubDate>
		<dc:creator>liucougar</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.liucougar.net/blog/archives/80</guid>
		<description><![CDATA[
If you are using a dns service provider with dynamic dns support, and using a gentoo based EC2 AMI, then you may find 
this script to be useful. It can update the IP address for a specified domain name whenver the gentoo AMI is booted.
To use this script, just extract the file, and place ec2.conf [...]]]></description>
			<content:encoded><![CDATA[
<p>If you are using a dns service provider with dynamic dns support, and using a gentoo based EC2 AMI, then you may find 
<a href="content:2007/12/dyndnsec2tar.bz2">this script</a> to be useful. It can update the IP address for a specified domain name whenver the gentoo AMI is booted.</p>
<p>To use this script, just extract the file, and place ec2.conf under /etc/conf.d and rename it as ec2, then move file ec2  to /etc/init.d</p>
<p>Before you can use it, you have to set some parameters in file /etc/conf.d/ec2, please consult the comments in that file.</p>
<p>In order to register IP address whenever the AMI is getting booted, a final step is needed:</p>
<pre>rc-update add ec2 default</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.liucougar.net/blog/archives/80/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>text.rb:292:in `normalize&#8217;: private method `gsub&#8217; called for 35:Fixnum (NoMethodError)</title>
		<link>http://www.liucougar.net/blog/archives/78</link>
		<comments>http://www.liucougar.net/blog/archives/78#comments</comments>
		<pubDate>Wed, 21 Nov 2007 15:12:36 +0000</pubDate>
		<dc:creator>liucougar</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.liucougar.net/blog/archives/78</guid>
		<description><![CDATA[
Just before generating the manifest file, ec2-bundle-vol under gentoo, throws this error at me:
Googling around, it turns out that, it&#8217;s due to my &#8220;too recent&#8221; version of ruby (I only use stable packages in gentoo, but we all know gentoo is always cutting edge, even its stable branch, isn&#8217;t it?), which has a backward incompability. [...]]]></description>
			<content:encoded><![CDATA[
<p>Just before generating the manifest file, ec2-bundle-vol under gentoo, throws this error at me:</p>
<p>Googling around, it turns out that, it&#8217;s due to my &#8220;too recent&#8221; version of ruby (I only use stable packages in gentoo, but we all know gentoo is always cutting edge, even its stable branch, isn&#8217;t it?), which has a backward incompability. The fix is  
<a href="http://groups.google.com/group/ruby-talk-google/browse_thread/thread/c2e2f3b9a6ffac50">trivial</a>:</p>
<p> 
<font class="fixed_width" face="Courier, Monospaced">&#8212; rexml/text.rb.orig  2007-10-22 08:00:04.000000000 +0100
<br />
+++ rexml/text.rb       2007-10-22 08:00:33.000000000 +0100
<br />
@@ -286,7 +286,7 @@
<br />
EREFERENCE = /&amp;(?!#{Entity::NAME};)/
<br />
# Escapes all possible entities
<br />
def Text::normalize( input, doctype=nil, entity_filter=nil )
<br />
-      copy = input
<br />
+      copy = input.to_s
<br />
# Doing it like this rather than in a loop improves the speed
<br />
#copy = copy.gsub( EREFERENCE, &#8216;&amp;&#8217; )
<br />
copy = copy.gsub( &#8220;&amp;&#8221;, &#8220;&amp;&#8221; )
<br />
</font>
</p>
<font class="fixed_width" face="Courier, Monospaced">&#8212; rexml/document.rb.orig      2007-10-22 08:02:36.000000000 +0100
<br />
+++ rexml/document.rb   2007-10-22 08:03:01.000000000 +0100
<br />
@@ -183,7 +183,7 @@
<br />
output = Output.new( output, xml_decl.encoding )
<br />
end
<br />
formatter = if indent &gt; -1
<br />
-          if transitive
<br />
+          if trans
<br />
REXML::Formatters::Transitive.new( indent, ie_hack )
<br />
else
<br />
REXML::Formatters::Pretty.new( indent, ie_hack ) </font>
]]></content:encoded>
			<wfw:commentRss>http://www.liucougar.net/blog/archives/78/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Install Amazon EC2 AMI Tools in gentoo host</title>
		<link>http://www.liucougar.net/blog/archives/77</link>
		<comments>http://www.liucougar.net/blog/archives/77#comments</comments>
		<pubDate>Wed, 21 Nov 2007 13:39:10 +0000</pubDate>
		<dc:creator>liucougar</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.liucougar.net/blog/archives/77</guid>
		<description><![CDATA[
  
Amazon EC2 AIM tools are necessary if you want to create your own images (by either doing it from scratch or modifying others AIM) to use on   
Amazon EC2 service. That tool is only supporting linux, so they provide a RPM (maybe primarily targeted for FC?).
If you are a gentooer, then [...]]]></description>
			<content:encoded><![CDATA[
<p>  
<a href="http://developer.amazonwebservices.com/connect/entry.jspa?externalID=368&amp;categoryID=88">Amazon EC2 AIM tools</a> are necessary if you want to create your own images (by either doing it from scratch or modifying others AIM) to use on   
<a href="http://www.amazon.com/ec2">Amazon EC2</a> service. That tool is only supporting linux, so they provide a RPM (maybe primarily targeted for FC?).</p>
<p>If you are a gentooer, then you have to do it manually. The following is what I have done to make it work</p>
<pre>rpm2targz ec2-ami-tools.noarch.rpm #if you don't have rpm2targz, run emerge rpm2targz first
tar xvfz ec2-ami-tools.noarch.tar.gz
mv usr/local/* /usr/local/
mv usr/lib/site_ruby/ /usr/lib/
mv etc/aes/ /etc/
ln -s /usr/lib/site_ruby/aes /usr/lib/ruby/site_ruby/1.8/i686-linux/aes</pre>
<p>After that, you should be able to run ec2-bundle-vol and others just fine.</p>
<p>Another tip: I have this in my ~/.bash_profile (~/.bashrc will do too):</p>
<pre>#for Amazon EC2 AMI bundle
EC2_BUNDLE="-k /path/to/your/pk/pem -c /path/to/your/cert/.pem -u &lt;user_id&gt;"
alias ec2-bundle-vol="ec2-bundle-vol $EC2_BUNDLE"
alias ec2-bundle-image="ec2-bundle-image $EC2_BUNDLE"</pre>
<p>So that you don&#8217;t need to specify all those mandatory options every time you invoke these commands.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.liucougar.net/blog/archives/77/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>libphp5.so: undefined symbol: _efree</title>
		<link>http://www.liucougar.net/blog/archives/71</link>
		<comments>http://www.liucougar.net/blog/archives/71#comments</comments>
		<pubDate>Sun, 26 Aug 2007 04:54:08 +0000</pubDate>
		<dc:creator>liucougar</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.liucougar.net/blog/archives/71</guid>
		<description><![CDATA[After re-installing php 5, I got a wired error when starting apache 2:
Cannot load /.../libphp5.so into server: /.../libphp5.so: undefined symbol: _efree
Google suggested that, lots of people have the exact error, but not a single page contains what caused this error or how to solve it. In addition, this error also happens with php 4 and [...]]]></description>
			<content:encoded><![CDATA[<p>After re-installing php 5, I got a wired error when starting apache 2:</p>
<pre>Cannot load /.../libphp5.so into server: /.../libphp5.so: undefined symbol: _efree</pre>
<p>Google suggested that, lots of people have the exact error, but not a single page contains what caused this error or how to solve it. In addition, this error also happens with php 4 and apache 1.</p>
<p>After some hard time Trial and error, I found the issue: due to some reasons, the   <span class="Code">make install</span> to install php 5 does not actually copy over the libphp5.la files to the right place. After manually copying the la file, apache 2 can be started happily with php 5 enabled.</p>
<p><strong>Edit</strong>: Ivan reported that instead of the above,</p>
<pre>make clean</pre>
<p>will make it work for his case. Thanks. &#8211; Dec 21 2008</p>
]]></content:encoded>
			<wfw:commentRss>http://www.liucougar.net/blog/archives/71/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>subversion 1.4.0 with trac trunk (0.11dev)</title>
		<link>http://www.liucougar.net/blog/archives/53</link>
		<comments>http://www.liucougar.net/blog/archives/53#comments</comments>
		<pubDate>Wed, 25 Oct 2006 18:33:03 +0000</pubDate>
		<dc:creator>liucougar</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://liucougar.scim-im.org/blog/archives/53</guid>
		<description><![CDATA[
When setuping trac on a server, I encountered a strange issue: the python binding of subversion can not be loaded by python, I got something like this:

libsvn_ra_dav-1.so.0: undefined symbol: gss_delete_sec_context

After googling around, I found out that, 
someone suggested to disable 
neon when compiling subversion 1.4. That did do the trick, and binding works. However, with [...]]]></description>
			<content:encoded><![CDATA[
<p>When setuping trac on a server, I encountered a strange issue: the python binding of subversion can not be loaded by python, I got something like this:</p>
<pre>
<tt>libsvn_ra_dav-1.so.0: undefined symbol: gss_delete_sec_context</tt>
</pre>
<p>After googling around, I found out that, 
<a href="http://trac.edgewall.org/ticket/3706">someone suggested</a> to disable 
<a href="http://www.webdav.org/neon/">neon</a> when compiling subversion 1.4. That did do the trick, and binding works. However, with neon disabled, svn can not work with http/https repositories, which is not acceptable. So I have to find another workaround.</p>
<p>Google told me that gss_delete_sec_context is part of libgssapi.so, and &quot;ldd libsvn_ra_dav-1.so.0&quot; reveals that it does not link to any libgssapi.so at all. The obvious workaround is to explicitly specify that in the Makefile.</p>
<p>Edit the top Makefile in subversion 1.4.0, append &quot;-lgssapi&quot; to this line:</p>
<pre class="wiki">SVN_APR_LIBS = ...</pre>
<p>(&#8230; is the actual content you will see) after installing it, everything works fine now.</p>
<p>It may be argued that this is not a subversion issue, rather than a neon one (it should link to gssapi). As subversion uses a bundled neon, so maybe it is more faire to call it a subversion bug.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.liucougar.net/blog/archives/53/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>eZ rewrite rules in apache</title>
		<link>http://www.liucougar.net/blog/archives/26</link>
		<comments>http://www.liucougar.net/blog/archives/26#comments</comments>
		<pubDate>Mon, 29 May 2006 06:24:16 +0000</pubDate>
		<dc:creator>liucougar</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[eZ Publish]]></category>

		<guid isPermaLink="false">http://liucougar.scim-im.org/blog/archives/26</guid>
		<description><![CDATA[
After fixing a SJSD svn trunk regression bug reported in the bug tracking system, I tried to make eZ installed in a subdir work with rewrite rules in apache 1.3 (not virtual host setup), as I already    
achieved it in lighttpd, it must be feasible in apache as well: the mod_rewrite can [...]]]></description>
			<content:encoded><![CDATA[
<p>After fixing a SJSD svn trunk regression bug reported in the bug tracking system, I tried to make eZ installed in a subdir work with rewrite rules in apache 1.3 (not virtual host setup), as I already    
<a href="post:ez-rewrite-rule-with-lighttpd">achieved it in lighttpd</a>, it must be feasible in apache as well: the mod_rewrite can achieve almost anything as long as you can come up with. (PHP-CGI is used in the apache)</p><span id="more-26"></span>
<p>This is the .htaccess (I have eZ installed in /ez38, so this .htaccess is under /ez38) required to have eZ work with apache rewrite properly in a subdir:</p>
<pre>RewriteEngine On
RewriteRule !\.(gif|jpe?g|png|css|js|html|xml|ico)|var(.+)storage.pdf(.+)\.pdf$ index.php

DirectoryIndex index.php</pre>
<p>In order for apache to read .htaccess in each dir, something like this has to be set in the httpd.conf file for apache:</p>
<pre>&lt;Directory /&gt;
    Options FollowSymLinks
    AllowOverride All
&lt;/Directory&gt;</pre>
<p>UPDATE (29/May/2006): *.ico should not be rewriten to index.php</p>
]]></content:encoded>
			<wfw:commentRss>http://www.liucougar.net/blog/archives/26/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
