{"data":{"site":{"siteMetadata":{"title":"Lime Brains","description":"We are The Software House where business questions meet software answers.","url":"https://limebrains.com"}},"markdownRemark":{"html":"<h1>Problem 😱</h1>\n<p>Expected behaviour:</p>\n<div class=\"gatsby-highlight\" data-language=\"python\"><pre class=\"language-python\"><code class=\"language-python\">file_path <span class=\"token operator\">=</span> request<span class=\"token punctuation\">.</span>path\n\n<span class=\"token keyword\">if</span> file_path<span class=\"token punctuation\">.</span>is_present_on_disk<span class=\"token punctuation\">(</span><span class=\"token punctuation\">)</span><span class=\"token punctuation\">:</span>\n  <span class=\"token keyword\">return</span> <span class=\"token builtin\">open</span><span class=\"token punctuation\">(</span>file_path<span class=\"token punctuation\">)</span>\n\n<span class=\"token keyword\">return</span> <span class=\"token builtin\">open</span><span class=\"token punctuation\">(</span>index<span class=\"token punctuation\">.</span>html<span class=\"token punctuation\">)</span></code></pre></div>\n<p>nginx</p>\n<div class=\"gatsby-highlight\" data-language=\"text\"><pre class=\"language-text\"><code class=\"language-text\">location / {\n  try_files $uri $uri/ /index.html;\n} </code></pre></div>\n<p>But how to do it in Lighttpd?</p>\n<hr>\n<h1>Solution 🤓</h1>\n<h2>🎉 🎉 🎉 use <code class=\"language-text\">url.rewrite-if-not-file</code> 🎉 🎉 🎉</h2>\n<div class=\"gatsby-highlight\" data-language=\"text\"><pre class=\"language-text\"><code class=\"language-text\">url.rewrite-if-not-file = (\n     &quot;/.*&quot; =&gt; &quot;/index.html&quot;\n)</code></pre></div>\n<p><img src=\"https://imgur.com/OHPCF2D.gif\" alt=\"Imgur\"></p>","excerpt":"Problem 😱 Expected behaviour: nginx But how to do it in Lighttpd? Solution 🤓 🎉 🎉 🎉 use   🎉 🎉 🎉","frontmatter":{"title":"Lighttpd configuration and vue router history","subtitle":"Lighttpd configuration and vue router history","date":"2021-03-03 12:40","seo":{"title":"Lighttpd configuration and vue router history","description":"Lighttpd configuration and vue router history","noindex":false}},"fields":{"slug":"/blog/2021-03-03T12:40-Lighttpd-vue-router-history/"}}},"pageContext":{"slug":"/blog/2021-03-03T12:40-Lighttpd-vue-router-history/","indexable":false}}