<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://tech.snathan.org/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://tech.snathan.org/feed.php">
        <title>Senthil&#039;s Tech Wiki/Blog - tech:apache</title>
        <description></description>
        <link>https://tech.snathan.org/</link>
        <image rdf:resource="https://tech.snathan.org/_media/wiki/dokuwiki.svg" />
       <dc:date>2026-04-27T18:36:12+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://tech.snathan.org/tech/apache/apache_reverse_proxy?rev=1416064423&amp;do=diff"/>
                <rdf:li rdf:resource="https://tech.snathan.org/tech/apache/apache_ssl_error?rev=1416064423&amp;do=diff"/>
                <rdf:li rdf:resource="https://tech.snathan.org/tech/apache/apache_webserver_tuning?rev=1596454064&amp;do=diff"/>
                <rdf:li rdf:resource="https://tech.snathan.org/tech/apache/enabling_mod_security?rev=1416064423&amp;do=diff"/>
                <rdf:li rdf:resource="https://tech.snathan.org/tech/apache/log_parsing?rev=1416064423&amp;do=diff"/>
                <rdf:li rdf:resource="https://tech.snathan.org/tech/apache/md_files?rev=1416064423&amp;do=diff"/>
                <rdf:li rdf:resource="https://tech.snathan.org/tech/apache/redirect_to_https?rev=1416064423&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://tech.snathan.org/_media/wiki/dokuwiki.svg">
        <title>Senthil's Tech Wiki/Blog</title>
        <link>https://tech.snathan.org/</link>
        <url>https://tech.snathan.org/_media/wiki/dokuwiki.svg</url>
    </image>
    <item rdf:about="https://tech.snathan.org/tech/apache/apache_reverse_proxy?rev=1416064423&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2014-11-15T15:13:43+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>apache_reverse_proxy</title>
        <link>https://tech.snathan.org/tech/apache/apache_reverse_proxy?rev=1416064423&amp;do=diff</link>
        <description>Resources for Apache Reverse Proxy

A thread

The guide

Sample configuration


Listen 80
NameVirtualHost *:80

#Repeat below section for each proxy
&lt;VirtualHost *:80&gt;
    ServerAdmin someone@example.com
    DocumentRoot /var/www/html
    ServerName abc.xyz.example.com
    ServerAlias yyy.example.com

    # mod_proxy setup.
    ProxyPreserveHost On
    RequestHeader unset Authorization
    ProxyRequests Off
    ProxyPass /  http://somelocalserver:7503/
    ProxyPassReverse /  http://somelocalser…</description>
    </item>
    <item rdf:about="https://tech.snathan.org/tech/apache/apache_ssl_error?rev=1416064423&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2014-11-15T15:13:43+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>apache_ssl_error</title>
        <link>https://tech.snathan.org/tech/apache/apache_ssl_error?rev=1416064423&amp;do=diff</link>
        <description>Multiple SSL Virtual Hosts on one IP

If you get this error:


[Tue Sep 08 22:42:28 2009] [warn] Init: SSL server IP/port conflict: *.examplewebsite.com:443 (/etc/apache2/sites-enabled/2000-catch-all:24) vs. examplewebsite.com:443 (/etc/apache2/sites-enabled/2010-default:59)
[Tue Sep 08 22:42:28 2009] [warn] Init: SSL server IP/port conflict: ytest.examplewebsite2.com:443 (/etc/apache2/sites-enabled/1200-ytest:34) vs. examplewebsite.com:443 (/etc/apache2/sites-enabled/2010-default:59)
[Tue Sep 0…</description>
    </item>
    <item rdf:about="https://tech.snathan.org/tech/apache/apache_webserver_tuning?rev=1596454064&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2020-08-03T11:27:44+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>apache_webserver_tuning</title>
        <link>https://tech.snathan.org/tech/apache/apache_webserver_tuning?rev=1596454064&amp;do=diff</link>
        <description>Apache Web Server Tuning

Change default Apache prefork to event module.

For Ubuntu

&lt;https://www.interserver.net/tips/kb/apache-php-fpm-ubuntu-18-04/&gt;


a2dismod mpm_prefork
a2dismod mpm_worker
a2enmod mpm_event
systemctl restart apache2


With PHP


aptitude install php-fpm libapache2-mod-fcgid
a2enmod proxy
a2enmod proxy_fcgi
a2dismod php7.4
a2enconf php7.4-fpm
a2dismod mpm_prefork
a2dismod mpm_worker
a2enmod mpm_event
systemctl restart apache2</description>
    </item>
    <item rdf:about="https://tech.snathan.org/tech/apache/enabling_mod_security?rev=1416064423&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2014-11-15T15:13:43+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>enabling_mod_security</title>
        <link>https://tech.snathan.org/tech/apache/enabling_mod_security?rev=1416064423&amp;do=diff</link>
        <description>Steps to Enable mod_security (mod_security2) in Hardy

Ubuntu Linux Hardy does not have a precompliled apt-get package for mod-security. So here is how to do this manually.

Stop Apache

/etc/init.d/apache2 stop

Enable UNIQUE_ID module

a2enmod unique_id</description>
    </item>
    <item rdf:about="https://tech.snathan.org/tech/apache/log_parsing?rev=1416064423&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2014-11-15T15:13:43+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>log_parsing</title>
        <link>https://tech.snathan.org/tech/apache/log_parsing?rev=1416064423&amp;do=diff</link>
        <description>Parsing Apache Logs

Below are some simple awk/sed/etc command line scripts to parse apache logs and get quick statistics

Unique visitors per day

Where access.log is your combined log file with typical format as below:


69.175.xxx.yyy - - [13/Jul/2013:06:28:31 -0500] &quot;GET /some/web/folder/somewebpage2 HTTP/1.0&quot; 404 4212 &quot;http://somesubdomain.example.org/some/web/folder/some_web_page1&quot; &quot;Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1&quot;
…</description>
    </item>
    <item rdf:about="https://tech.snathan.org/tech/apache/md_files?rev=1416064423&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2014-11-15T15:13:43+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>md_files</title>
        <link>https://tech.snathan.org/tech/apache/md_files?rev=1416064423&amp;do=diff</link>
        <description>Markdown Handler - Apache handler for .md files, written in PHP

Reference

&lt;https://github.com/sminnee/markdown-handler&gt;

Install/Configure

Assuming your webroot is /var/www


svn export https://github.com/sminnee/markdown-handler.git/trunk/ /var/www/ --force


Contents of .htaccess file


cat /var/www/.htaccess.txt</description>
    </item>
    <item rdf:about="https://tech.snathan.org/tech/apache/redirect_to_https?rev=1416064423&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2014-11-15T15:13:43+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>redirect_to_https</title>
        <link>https://tech.snathan.org/tech/apache/redirect_to_https?rev=1416064423&amp;do=diff</link>
        <description>In order to auto redirect from http to https (SSL) add the following lines to your .htaccess file:


RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}


Keywords


certificate
secure socket layer</description>
    </item>
</rdf:RDF>
