<?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>Autarchy of the Private Cave &#187; Apache</title> <atom:link href="https://bogdan.org.ua/tags/apache/feed" rel="self" type="application/rss+xml" /><link>https://bogdan.org.ua</link> <description>Tiny bits of bioinformatics, [web-]programming etc</description> <lastBuildDate>Wed, 28 Dec 2022 16:09:04 +0000</lastBuildDate> <language>en-US</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>https://wordpress.org/?v=3.8.27</generator> <item><title>How to fix: mod_proxy&#8217;s ProxyPass directive does not work</title><link>https://bogdan.org.ua/2016/02/10/how-to-fix-mod_proxy-proxypass-directive-does-not-work.html</link> <comments>https://bogdan.org.ua/2016/02/10/how-to-fix-mod_proxy-proxypass-directive-does-not-work.html#comments</comments> <pubDate>Wed, 10 Feb 2016 19:37:24 +0000</pubDate> <dc:creator><![CDATA[Bogdan]]></dc:creator> <category><![CDATA[*nix]]></category> <category><![CDATA[how-to]]></category> <category><![CDATA[Web]]></category> <category><![CDATA[Apache]]></category> <category><![CDATA[Debian]]></category> <category><![CDATA[mod_proxy]]></category> <category><![CDATA[ProxyPass]]></category> <category><![CDATA[proxy_http]]></category> <guid
isPermaLink="false">http://bogdan.org.ua/?p=2341</guid> <description><![CDATA[So&#8230; You had finally built a nice LXC container for your web-facing application, and even configured Apache (Debian package version 2.14.18-1 in my case) to serve some static/web-only components. From your client-side JavaScript UI you talk (in JSON) to the API, which is implemented as a separate node.js/Python/etc server &#8211; say, on port 8000 in [&#8230;]]]></description> <content:encoded><![CDATA[<p>So&#8230; You had finally built a nice LXC container for your web-facing application, and even configured Apache (Debian package version 2.14.18-1 in my case) to serve some static/web-only components.<br
/> From your client-side JavaScript UI you talk (in JSON) to the API, which is implemented as a separate node.js/Python/etc server &#8211; say, on port 8000 in the same LXC container.</p><p>The simplest solution to forward requests from the web-frontend to your API is by using <strong>mod_proxy</strong>.<br
/> If you want to forward any requests to /api/* to your custom back-end server on port 8000, you just add the following lines to your VirtualHost configuration:</p><blockquote><p> ProxyPass               &#8220;/api&#8221;  &#8220;http://localhost:8000&#8243;<br
/> ProxyPassReverse        &#8220;/api&#8221;  &#8220;http://localhost:8000&#8243;</p></blockquote><p>I&#8217;d suggest <em>not</em> wrapping this fragment with the classical <strong>IfModule</strong>: as your application will not really work without its API back-end, you actually <em>want</em> Apache to fail as soon as possible if <strong>mod_proxy</strong> is missing.</p><p>That was easy, right? What, it doesn&#8217;t work? Can&#8217;t be! It&#8217;s dead simple! No way you could make a mistake in 2 lines of configuration!!! :mad_rage: <img
src="https://bogdan.org.ua/wp-includes/images/smilies/icon_smile.gif" alt=":)" class="wp-smiley" /></p><p>Oh wait&#8230; I remember I had this problem before&#8230;<span
id="more-2341"></span></p><p>Let&#8217;s check:</p><ol><li><strong>Step 1.</strong> Did you disable (using <code>a2dissite default</code> or <code>a2dissite 000-default</code>, depending on your Debian-based GNU/Linux) the default website? If your application and the default website are configured in a similar way, then it might be the <em>default</em> site which is serving your app&#8217;s pages. The most sure way is to just disable it.</li><li><strong>Step 2.</strong> Did you enable also the <strong>proxy_http</strong> sub-module? (Using <code>a2enmod proxy_http</code>, followed by <code>service apache2 restart</code>) <strong>mod_proxy</strong> is only the core module, actual per-protocol work is done by these sub-modules.</li></ol><p>Your requests to /api should now be passed on to your API server. If not &#8211; please write in the comments what was the problem in your case and how you solved it. HTH!</p><p><a
class="a2a_button_citeulike" href="https://www.addtoany.com/add_to/citeulike?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2016%2F02%2F10%2Fhow-to-fix-mod_proxy-proxypass-directive-does-not-work.html&amp;linkname=How%20to%20fix%3A%20mod_proxy%E2%80%99s%20ProxyPass%20directive%20does%20not%20work" title="CiteULike" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2016%2F02%2F10%2Fhow-to-fix-mod_proxy-proxypass-directive-does-not-work.html&amp;linkname=How%20to%20fix%3A%20mod_proxy%E2%80%99s%20ProxyPass%20directive%20does%20not%20work" title="Pocket" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_kindle_it" href="https://www.addtoany.com/add_to/kindle_it?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2016%2F02%2F10%2Fhow-to-fix-mod_proxy-proxypass-directive-does-not-work.html&amp;linkname=How%20to%20fix%3A%20mod_proxy%E2%80%99s%20ProxyPass%20directive%20does%20not%20work" title="Kindle It" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_evernote" href="https://www.addtoany.com/add_to/evernote?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2016%2F02%2F10%2Fhow-to-fix-mod_proxy-proxypass-directive-does-not-work.html&amp;linkname=How%20to%20fix%3A%20mod_proxy%E2%80%99s%20ProxyPass%20directive%20does%20not%20work" title="Evernote" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2016%2F02%2F10%2Fhow-to-fix-mod_proxy-proxypass-directive-does-not-work.html&amp;linkname=How%20to%20fix%3A%20mod_proxy%E2%80%99s%20ProxyPass%20directive%20does%20not%20work" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a
class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fbogdan.org.ua%2F2016%2F02%2F10%2Fhow-to-fix-mod_proxy-proxypass-directive-does-not-work.html&#038;title=How%20to%20fix%3A%20mod_proxy%E2%80%99s%20ProxyPass%20directive%20does%20not%20work" data-a2a-url="https://bogdan.org.ua/2016/02/10/how-to-fix-mod_proxy-proxypass-directive-does-not-work.html" data-a2a-title="How to fix: mod_proxy’s ProxyPass directive does not work"><img
src="https://static.addtoany.com/buttons/share_save_120_16.png" alt="Share"></a></p>]]></content:encoded> <wfw:commentRss>https://bogdan.org.ua/2016/02/10/how-to-fix-mod_proxy-proxypass-directive-does-not-work.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Phusion Passenger Apache users guide</title><link>https://bogdan.org.ua/2011/08/14/phusion-passenger-apache-users-guide.html</link> <comments>https://bogdan.org.ua/2011/08/14/phusion-passenger-apache-users-guide.html#comments</comments> <pubDate>Sun, 14 Aug 2011 21:07:40 +0000</pubDate> <dc:creator><![CDATA[Bogdan]]></dc:creator> <category><![CDATA[Links]]></category> <category><![CDATA[Notepad]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Apache]]></category> <category><![CDATA[passenger]]></category> <category><![CDATA[phusion]]></category> <category><![CDATA[rails]]></category> <category><![CDATA[ruby]]></category> <guid
isPermaLink="false">http://bogdan.org.ua/?p=1669</guid> <description><![CDATA[Phusion Passenger Apache users guide Also as a PDF.]]></description> <content:encoded><![CDATA[<p><a
href="http://www.modrails.com/documentation/Users%20guide%20Apache.html">Phusion Passenger Apache users guide</a></p><p>Also as a <a
href='http://bogdan.org.ua/wp-content/uploads/2011/08/passenger_apache_guide.pdf'>PDF</a>.</p><p><a
class="a2a_button_citeulike" href="https://www.addtoany.com/add_to/citeulike?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2011%2F08%2F14%2Fphusion-passenger-apache-users-guide.html&amp;linkname=Phusion%20Passenger%20Apache%20users%20guide" title="CiteULike" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2011%2F08%2F14%2Fphusion-passenger-apache-users-guide.html&amp;linkname=Phusion%20Passenger%20Apache%20users%20guide" title="Pocket" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_kindle_it" href="https://www.addtoany.com/add_to/kindle_it?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2011%2F08%2F14%2Fphusion-passenger-apache-users-guide.html&amp;linkname=Phusion%20Passenger%20Apache%20users%20guide" title="Kindle It" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_evernote" href="https://www.addtoany.com/add_to/evernote?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2011%2F08%2F14%2Fphusion-passenger-apache-users-guide.html&amp;linkname=Phusion%20Passenger%20Apache%20users%20guide" title="Evernote" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2011%2F08%2F14%2Fphusion-passenger-apache-users-guide.html&amp;linkname=Phusion%20Passenger%20Apache%20users%20guide" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a
class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fbogdan.org.ua%2F2011%2F08%2F14%2Fphusion-passenger-apache-users-guide.html&#038;title=Phusion%20Passenger%20Apache%20users%20guide" data-a2a-url="https://bogdan.org.ua/2011/08/14/phusion-passenger-apache-users-guide.html" data-a2a-title="Phusion Passenger Apache users guide"><img
src="https://static.addtoany.com/buttons/share_save_120_16.png" alt="Share"></a></p>]]></content:encoded> <wfw:commentRss>https://bogdan.org.ua/2011/08/14/phusion-passenger-apache-users-guide.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Cloud-based bruteforcing, slowloris, and Golang: links</title><link>https://bogdan.org.ua/2009/11/13/cloud-based-bruteforcing-slowloris-and-golang-links.html</link> <comments>https://bogdan.org.ua/2009/11/13/cloud-based-bruteforcing-slowloris-and-golang-links.html#comments</comments> <pubDate>Fri, 13 Nov 2009 16:34:51 +0000</pubDate> <dc:creator><![CDATA[Bogdan]]></dc:creator> <category><![CDATA[Links]]></category> <category><![CDATA[Misc]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[Security]]></category> <category><![CDATA[Web]]></category> <category><![CDATA[Apache]]></category> <category><![CDATA[bruteforce]]></category> <category><![CDATA[complexity]]></category> <category><![CDATA[cost]]></category> <category><![CDATA[DOS]]></category> <category><![CDATA[EC]]></category> <category><![CDATA[go]]></category> <category><![CDATA[golang]]></category> <category><![CDATA[mod]]></category> <category><![CDATA[password]]></category> <category><![CDATA[security]]></category> <category><![CDATA[slowloris]]></category> <guid
isPermaLink="false">http://bogdan.org.ua/?p=931</guid> <description><![CDATA[A nice report on the cost of bruteforcing variable-length and variable-complexity passwords using cloud computing services (e.g. Amazon&#8217;s EC). There&#8217;s a kind of a tutorial in their previous post. Slow DoS attack with just 1 computer against a number of web servers, including Apache: slowloris. There is a solution for Apache, packaged for RedHat and [&#8230;]]]></description> <content:encoded><![CDATA[<p>A nice report on the <a
href="http://news.electricalchemy.net/2009/10/password-cracking-in-cloud-part-5.html">cost of bruteforcing variable-length and variable-complexity passwords</a> using cloud computing services (e.g. Amazon&#8217;s <abbr
title="Elastic Cloud">EC</abbr>). There&#8217;s a kind of a tutorial in their previous post.</p><p>Slow <abbr
title="Denial of Service">DoS</abbr> attack with just 1 computer against a number of web servers, including Apache: <a
href="http://ha.ckers.org/slowloris/" class="broken_link" rel="nofollow">slowloris</a>. There is a solution for Apache, packaged for <a
href="ftp://ftp.monshouwer.eu/pub/linux/mod_antiloris/">RedHat</a> and also available for <a
href="http://www.liranuna.com/securing-your-debian-server-against-slowloris/">Debian</a>.</p><p>Finally, there&#8217;s <a
href="http://golang.org/">Go programming language</a>. The most inspiring promise to me personally is the ease of execution parallelization with language&#8217;s built-in syntactic constructs. That is something highly desired. Also, I like that it is a compiled language. However, it might be 10%-20% slower than pure C. Let&#8217;s see how it grows.</p><p><a
class="a2a_button_citeulike" href="https://www.addtoany.com/add_to/citeulike?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2009%2F11%2F13%2Fcloud-based-bruteforcing-slowloris-and-golang-links.html&amp;linkname=Cloud-based%20bruteforcing%2C%20slowloris%2C%20and%20Golang%3A%20links" title="CiteULike" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2009%2F11%2F13%2Fcloud-based-bruteforcing-slowloris-and-golang-links.html&amp;linkname=Cloud-based%20bruteforcing%2C%20slowloris%2C%20and%20Golang%3A%20links" title="Pocket" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_kindle_it" href="https://www.addtoany.com/add_to/kindle_it?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2009%2F11%2F13%2Fcloud-based-bruteforcing-slowloris-and-golang-links.html&amp;linkname=Cloud-based%20bruteforcing%2C%20slowloris%2C%20and%20Golang%3A%20links" title="Kindle It" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_evernote" href="https://www.addtoany.com/add_to/evernote?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2009%2F11%2F13%2Fcloud-based-bruteforcing-slowloris-and-golang-links.html&amp;linkname=Cloud-based%20bruteforcing%2C%20slowloris%2C%20and%20Golang%3A%20links" title="Evernote" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2009%2F11%2F13%2Fcloud-based-bruteforcing-slowloris-and-golang-links.html&amp;linkname=Cloud-based%20bruteforcing%2C%20slowloris%2C%20and%20Golang%3A%20links" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a
class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fbogdan.org.ua%2F2009%2F11%2F13%2Fcloud-based-bruteforcing-slowloris-and-golang-links.html&#038;title=Cloud-based%20bruteforcing%2C%20slowloris%2C%20and%20Golang%3A%20links" data-a2a-url="https://bogdan.org.ua/2009/11/13/cloud-based-bruteforcing-slowloris-and-golang-links.html" data-a2a-title="Cloud-based bruteforcing, slowloris, and Golang: links"><img
src="https://static.addtoany.com/buttons/share_save_120_16.png" alt="Share"></a></p>]]></content:encoded> <wfw:commentRss>https://bogdan.org.ua/2009/11/13/cloud-based-bruteforcing-slowloris-and-golang-links.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>