<?xml version="1.0"?>
<rss version="2.0">
   <channel>
      <title>11_Apache Web Server by Murad Isa</title>
      <link>https://padlet.com/murado/apache_web_server</link>
      <description></description>
      <language>en-us</language>
      <pubDate>2015-08-16 16:07:18 UTC</pubDate>
      <lastBuildDate>2025-10-31 12:32:14 UTC</lastBuildDate>
      <webMaster>hello@padlet.com</webMaster>
      <image>
         <url></url>
      </image>
      <item>
         <title>Apache2 Web Server : /etc/apache2</title>
         <author>murado</author>
         <link>https://padlet.com/murado/apache_web_server/wish/66003921</link>
         <description><![CDATA[<p>cd /etc/apache2</p><p>ls -la</p>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/68152101/5eb3a18074f9a4c8c79da727872c3bceea7a88a0/852920d993a8dcce7c7732fc87d405c3.png" />
         <pubDate>2015-08-16 16:17:05 UTC</pubDate>
         <guid>https://padlet.com/murado/apache_web_server/wish/66003921</guid>
      </item>
      <item>
         <title>Apache Web Server </title>
         <author>murado</author>
         <link>https://padlet.com/murado/apache_web_server/wish/66004803</link>
         <description><![CDATA[<div>Install:<br><strong><mark>apt  install apache2  apache2-utils   -y</mark></strong><br><br>Apache Ubuntu Default Page :  <br><strong><mark>/var/www/html/index.html</mark></strong></div>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/68152101/9a95dbd1854b91d4fe172b86037ca2926920f351/762ae4bd55e044ae552240da404c0b1e.png" />
         <pubDate>2015-08-16 17:02:48 UTC</pubDate>
         <guid>https://padlet.com/murado/apache_web_server/wish/66004803</guid>
      </item>
      <item>
         <title>2. Apache2 Web Server : configuration file</title>
         <author>murado</author>
         <link>https://padlet.com/murado/apache_web_server/wish/66004824</link>
         <description><![CDATA[<p>https://www.digitalocean.com/community/tutorials/how-to-configure-the-apache-web-server-on-an-ubuntu-or-debian-vps</p>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/68152101/071c19076641dfe3434806cac21eb15e4bfae577/cd9b889b0a853cc506c5178c52293cad.png" />
         <pubDate>2015-08-16 17:04:15 UTC</pubDate>
         <guid>https://padlet.com/murado/apache_web_server/wish/66004824</guid>
      </item>
      <item>
         <title>Apache HTTP Server,</title>
         <author>murado</author>
         <link>https://padlet.com/murado/apache_web_server/wish/66191944</link>
         <description><![CDATA[<ul><li><a href="https://httpd.apache.org/"><strong>https://httpd.apache.org/</strong></a></li><li>world's most widely used <a href="https://en.wikipedia.org/wiki/Web_server">web server</a> software. open community of developers </li><li><a href="https://en.wikipedia.org/wiki/Apache_Software_Foundation">Apache Software Foundation</a>. </li><li><a href="https://en.wikipedia.org/wiki/Apache_License">Apache License</a></li><li><a href="https://en.wikipedia.org/wiki/Free_and_open-source_software">free </a></li><li><a href="https://en.wikipedia.org/wiki/Free_and_open-source_software">open-source software</a>.</li><li>As of June 2013, Apache was estimated to serve 54.2% of all active websites</li></ul>]]></description>
         <enclosure url="" />
         <pubDate>2015-08-18 14:53:57 UTC</pubDate>
         <guid>https://padlet.com/murado/apache_web_server/wish/66191944</guid>
      </item>
      <item>
         <title>https</title>
         <author>murado</author>
         <link>https://padlet.com/murado/apache_web_server/wish/66653415</link>
         <description><![CDATA[<div>Install Apache2:<br><strong><mark>apt  update;  apt   install   apache2</mark></strong><br><br>Activate the SSL Module:<br><strong><mark>a2enmod   ssl</mark></strong><br><br></div><div><strong><mark>cd   /etc/apache2</mark></strong><strong>/</strong><strong><mark><br></mark></strong><br></div><div><strong><mark>mkdir  /etc/apache2/ssl</mark></strong><br><br></div><div>##create cert &amp; key : </div><pre><strong><mark>openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/apache2/ssl/apache.key -out /etc/apache2/ssl/apache.crt</mark></strong></pre><ul><li><strong>openssl</strong>: OpenSSL to create and manage certificates, keys, signing requests, etc.</li><li><strong>req</strong>: This specifies a subcommand for X.509 certificate signing request (CSR) management.  X.509 is a public key infrastructure standard that SSL adheres to for its key and certificate managment.  </li><li><strong>-x509</strong>: make a self-signed certificate file instead of generating a certificate request.</li><li><strong>-nodes</strong>: do not wish to secure our key file with a passphrase.  Having a password protected key file would get in the way of Apache starting automatically as we would have to enter the password every time the service restarts.</li><li><strong>-days 365</strong>: the certificate we are creating will be valid for one year.</li><li><strong>-newkey rsa:2048</strong>: create the certificate request and a new private key at the same time.  This is necessary since we didn't create a private key in advance.  The rsa:2048 tells OpenSSL to generate an RSA key that is 2048 bits long.</li><li><strong>-keyout</strong>: output file for the private key  </li><li><strong>-out</strong>: output file for the certificate (crt)</li></ul><div>The questions portion looks something like this:<br><br></div><pre>Country Name (2 letter code) [AU]:US
State or Province Name (full name) [Some-State]:New York
Locality Name (eg, city) []:New York City
Organization Name (eg, company) [Internet Widgits Pty Ltd]:Your Company
Organizational Unit Name (eg, section) []:Department of Kittens
Common Name (e.g. server FQDN or YOUR name) []:your_domain.com
Email Address []:your_email@domain.com</pre><div>The key and certificate will be created and placed in your /etc/apache2/ssl directory.</div><div><br><strong><mark>nano   /etc/apache2/sites-available/default-ssl.conf</mark></strong><br>    <br>        ServerAdmin admin@example.com<br>        <strong><mark>ServerName your_domain.com</mark></strong><br>        ServerAlias <a href="http://www.your_domain.com">www.your_domain.com</a><br>        DocumentRoot /var/www/html<br>        <br>        ErrorLog ${APACHE_LOG_DIR}/error.log<br>        CustomLog ${APACHE_LOG_DIR}/access.log combined<br><br>        <strong><mark>SSLEngine on</mark></strong><br>        <strong><mark>SSLCertificateFile    /etc/apache2/ssl/apache.crt<br>        SSLCertificateKeyFile /etc/apache2/ssl/apache.key</mark></strong><br>        <br>                        SSLOptions +StdEnvVars<br>        <br>        BrowserMatch "MSIE [2-6]" \<br>                        nokeepalive ssl-unclean-shutdown \<br>                        downgrade-1.0 force-response-1.0<br>        BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown<br>    <br><br>Enable site:<br><strong><mark>a2ensite   default-ssl.conf</mark></strong><br><br>Restart Apache2:<br><strong><mark>systemctl   restart   apache2</mark></strong><br><br><a href="https://server_domain_name_or_IP"><strong><mark>https://server_domain_name_or_IP</mark></strong></a></div>]]></description>
         <enclosure url="" />
         <pubDate>2015-08-22 07:53:28 UTC</pubDate>
         <guid>https://padlet.com/murado/apache_web_server/wish/66653415</guid>
      </item>
      <item>
         <title>Disable Directory Listing (indexes)</title>
         <author>murado</author>
         <link>https://padlet.com/murado/apache_web_server/wish/66653416</link>
         <description><![CDATA[<div><br>Enable Directory Listing:<br><mark>&lt;Directory /var/www/html&gt;</mark></div><div><mark>   Options Indexes FollowSymLinks</mark></div><div><mark>   AllowOverride None</mark></div><div><mark>   Require all granted</mark></div><div><mark>&lt;/Directory&gt;</mark><br><br>Disable Directory Listing:</div><div><mark>&lt;Directory /var/www/html&gt;</mark></div><div><mark>   Options -Indexes +FollowSymLinks</mark></div><div><mark>   AllowOverride None</mark></div><div><mark>   Require all granted</mark></div><div><mark>&lt;/Directory&gt;</mark></div><div><br><strong><mark>systemctl  restart  apache2</mark></strong></div>]]></description>
         <enclosure url="" />
         <pubDate>2015-08-22 07:53:39 UTC</pubDate>
         <guid>https://padlet.com/murado/apache_web_server/wish/66653416</guid>
      </item>
      <item>
         <title>apache2 command</title>
         <author>murado</author>
         <link>https://padlet.com/murado/apache_web_server/wish/66653418</link>
         <description><![CDATA[<div><strong><mark>systemctl  stop  apache2</mark></strong></div><div><strong><mark>systemctl  start  apache2</mark></strong></div><div><strong><mark>systemctl  restart  apache2</mark></strong></div><div><strong><mark>apachectl  configtest</mark></strong><br><br></div><div><strong><mark>a2enmod ssl</mark></strong></div><div><strong><mark>a2dismod ssl</mark></strong></div><div><br></div><div><strong><mark>a2ensite default_ssl</mark></strong></div><div><strong><mark>s2dissite default_ssl</mark></strong></div>]]></description>
         <enclosure url="" />
         <pubDate>2015-08-22 07:53:47 UTC</pubDate>
         <guid>https://padlet.com/murado/apache_web_server/wish/66653418</guid>
      </item>
      <item>
         <title>htaccess</title>
         <author>murado</author>
         <link>https://padlet.com/murado/apache_web_server/wish/66653420</link>
         <description><![CDATA[<div><strong><mark>apt  update ; apt  install  apache2  apache2-utils  -y</mark></strong></div><div><br>#Create the Password File<br><strong><mark>htpasswd -c /etc/apache2/.htpasswd username<br>htpasswd /etc/apache2/.htpasswd another_user</mark></strong><br><br>&gt; cat /etc/apache2/.htpasswd<br>username:$apr1$lzxsIfXG$tmCvCfb49vpPFwKGVsuYz.<br>another_user:$apr1$p1E9MeAf$kiAhneUwr.MhAE2kKGYHK.<br><br>#Configure Apache Password Authentication</div><div>edit the Apache configuration and add our password protection to the virtual host file.  This will generally give better performance because it avoids the expense of reading distributed configuration files.  (recommended)</div><div><br>If you do not have the ability to modify the virtual host file (or if you are already using .htaccess files for other purposes), you can restrict access using an<br>.htaccess file.  Apache uses .htaccess` files in order to allow certain configuration items to be set within a file in a content directory. </div><div>The disadvantage is that Apache has to re-read these files on every request that involves the directory, which can impact performance.<br><br>#Configuring Access Control within the Virtual Host Definition (recommended)<br><br>"virtual host" file that you wish to add a restriction to.  For our example, we'll be using the 000-default.conf file that holds the default virtual host<br><br>&gt; pico /etc/apache2/sites-enabled/000-default.conf<br><br></div><div><br>&lt;VirtualHost *:80&gt;<br>    ServerAdmin webmaster@localhost<br>    DocumentRoot /var/www/html<br>    ErrorLog ${APACHE_LOG_DIR}/error.log<br>    CustomLog ${APACHE_LOG_DIR}/access.log combined<br><br>    &lt;Directory "/var/www/html"&gt;<br>        AuthType Basic<br>        AuthName "Restricted Content"<br>        AuthUserFile /etc/apache2/.htpasswd<br>        Require valid-user<br>    &lt;/Directory&gt;<br>&lt;/VirtualHost&gt;<br><br><br>&gt; systemctl   restart  apache2 <br><br>## CARA 2: Configuring Access Control with .htaccess Files (not recommended)<br><br><strong><mark>nano  /etc/apache2/apache2.conf</mark></strong></div><div><br></div><div>&lt;Directory /var/www/&gt;<br>    Options Indexes FollowSymLinks<br>    AllowOverride All<br>    Require all granted<br>&lt;/Directory&gt;<br><br>Next, we need to add an .htaccess file to the directory we wish to restrict. <br><br></div><div><strong><mark>nano   /var/www/html/.htaccess</mark></strong><br><br>AuthType Basic<br>AuthName "Restricted Content"<br>AuthUserFile /etc/apache2/.htpasswd<br>Require valid-user<br> </div><div> systemctl   restart  apache2 <br><br></div><div>##Confirm the Password Authentication.</div><div>To confirm that your content is protected, try to access your restricted content in a web browser.  You should be presented with a username and password prompt.</div>]]></description>
         <enclosure url="" />
         <pubDate>2015-08-22 07:54:00 UTC</pubDate>
         <guid>https://padlet.com/murado/apache_web_server/wish/66653420</guid>
      </item>
      <item>
         <title>cakephp1.mbi.org</title>
         <author>murado</author>
         <link>https://padlet.com/murado/apache_web_server/wish/373952517</link>
         <description><![CDATA[<div>&lt;VirtualHost *:80&gt;<br>   ServerName    cakephp1.mbi.org<br>   DocumentRoot  "/var/www/cakephp1.mbi.org/webroot"<br>   Redirect permanent  /  https://cakephp1.mbi.org<br>&lt;/VirtualHost&gt;<br><br>&lt;IfModule mod_ssl.c&gt;<br>   &lt;VirtualHost  *:443&gt;<br><br>      ServerAdmin   webmaster@mbi.org<br>      ServerName    cakephp1.mbi.org<br>      DocumentRoot  "/var/www/cakephp1.mbi.org/webroot"<br><br>      &lt;Directory "/var/www/cakephp1.mbi.org/webroot"&gt;<br>         Options        +FollowSymlinks<br>         Allowoverride  All<br>#        Required       All  granted<br>      &lt;/Directory&gt;<br><br>      ErrorLog   ${APACHE_LOG_DIR}/error.log<br>      CustomLog  ${APACHE_LOG_DIR}/access.log combined<br><br>      SSLEngine on<br>      SSLCertificateFile     /etc/apache2/ssl/apache.crt<br>      SSLCertificateKeyFile  /etc/apache2/ssl/apache.key<br><br>      &lt;FilesMatch "\.(cgi|shtml|phtml|php)$"&gt;<br>         SSLOptions +StdEnvVars<br>      &lt;/FilesMatch&gt;<br><br>      &lt;Directory /usr/lib/cgi-bin&gt;<br>         SSLOptions +StdEnvVars<br>      &lt;/Directory&gt;<br><br>   &lt;/VirtualHost&gt;<br>&lt;/IfModule&gt;<br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2019-08-10 06:34:08 UTC</pubDate>
         <guid>https://padlet.com/murado/apache_web_server/wish/373952517</guid>
      </item>
      <item>
         <title>Configure ModSecurity on Apache</title>
         <author>murado</author>
         <link>https://padlet.com/murado/apache_web_server/wish/373997176</link>
         <description><![CDATA[<pre><strong><mark>apt  install  libapache2-mod-security2</mark></strong></pre><div><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2019-08-11 06:24:59 UTC</pubDate>
         <guid>https://padlet.com/murado/apache_web_server/wish/373997176</guid>
      </item>
      <item>
         <title>mod_evasive</title>
         <author>murado</author>
         <link>https://padlet.com/murado/apache_web_server/wish/373997231</link>
         <description><![CDATA[<div>mod_evasive is a module for Apache that provides evasive action in the event of an HTTP Distributed Denial of Service (DDoS/DoS) attack or brute force attack. <br><br>It is also designed to be a detection and network management tool, and can be easily configured to talk to ipchains, firewalls, routers, and more. mod_evasive presently reports abuse via email and syslog facilities.<br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2019-08-11 06:28:23 UTC</pubDate>
         <guid>https://padlet.com/murado/apache_web_server/wish/373997231</guid>
      </item>
      <item>
         <title>Apache mod_status</title>
         <author>murado</author>
         <link>https://padlet.com/murado/apache_web_server/wish/373997477</link>
         <description><![CDATA[<div>/server-status</div>]]></description>
         <enclosure url="" />
         <pubDate>2019-08-11 06:38:02 UTC</pubDate>
         <guid>https://padlet.com/murado/apache_web_server/wish/373997477</guid>
      </item>
      <item>
         <title>Apache2Buddy</title>
         <author>murado</author>
         <link>https://padlet.com/murado/apache_web_server/wish/373997497</link>
         <description><![CDATA[]]></description>
         <enclosure url="" />
         <pubDate>2019-08-11 06:39:18 UTC</pubDate>
         <guid>https://padlet.com/murado/apache_web_server/wish/373997497</guid>
      </item>
      <item>
         <title>hide Apache Version and OS Identity from Errors</title>
         <author>murado</author>
         <link>https://padlet.com/murado/apache_web_server/wish/373997553</link>
         <description><![CDATA[]]></description>
         <enclosure url="" />
         <pubDate>2019-08-11 06:41:26 UTC</pubDate>
         <guid>https://padlet.com/murado/apache_web_server/wish/373997553</guid>
      </item>
      <item>
         <title>Run Apache as separate User and Group</title>
         <author>murado</author>
         <link>https://padlet.com/murado/apache_web_server/wish/373997575</link>
         <description><![CDATA[<ul><li>Apache is run as user www-data and group www-data.</li><li><strong><mark>chown  -R  www-data:www-data  /var/www/html</mark></strong></li></ul><div><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2019-08-11 06:42:24 UTC</pubDate>
         <guid>https://padlet.com/murado/apache_web_server/wish/373997575</guid>
      </item>
   </channel>
</rss>
