<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://studioware.com/wikislax/index.php?action=history&amp;feed=atom&amp;title=Apache</id>
		<title>Apache - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://studioware.com/wikislax/index.php?action=history&amp;feed=atom&amp;title=Apache"/>
		<link rel="alternate" type="text/html" href="http://studioware.com/wikislax/index.php?title=Apache&amp;action=history"/>
		<updated>2026-05-07T15:20:43Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.29.2</generator>

	<entry>
		<id>http://studioware.com/wikislax/index.php?title=Apache&amp;diff=108&amp;oldid=prev</id>
		<title>Wikislax: /* Configuring Apache */</title>
		<link rel="alternate" type="text/html" href="http://studioware.com/wikislax/index.php?title=Apache&amp;diff=108&amp;oldid=prev"/>
				<updated>2025-01-11T13:40:55Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Configuring Apache&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 13:40, 11 January 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l32&quot; &gt;Line 32:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 32:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Configuring Apache ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Configuring Apache ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Edit '''/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;var&lt;/del&gt;/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;www/conf&lt;/del&gt;/httpd.conf''' to change the '''User''' and '''Group''' to '''apache''', enter the '''ServerAdmin''' e-mail address. To prevent apache from displaying version information, specify '''ServerSignature Off''' and '''ServerTokens prod'''. To prevent users from viewing directory content, remove the '''Indexes''' option in section '''&amp;lt;Directory &amp;quot;/var/www/htdocs&amp;quot;&amp;gt;'''. Check section '''&amp;lt;IfModule dir_module&amp;gt;''' to make sure which file names will be served if a directory is requested (by default '''index.html''').&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Edit '''/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;etc&lt;/ins&gt;/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;httpd&lt;/ins&gt;/httpd.conf''' to change the '''User''' and '''Group''' to '''apache''', enter the '''ServerAdmin''' e-mail address. To prevent apache from displaying version information, specify '''ServerSignature Off''' and '''ServerTokens prod'''. To prevent users from viewing directory content, remove the '''Indexes''' option in section '''&amp;lt;Directory &amp;quot;/var/www/htdocs&amp;quot;&amp;gt;'''. Check section '''&amp;lt;IfModule dir_module&amp;gt;''' to make sure which file names will be served if a directory is requested (by default '''index.html''').&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; User '''apache'''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; User '''apache'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Wikislax</name></author>	</entry>

	<entry>
		<id>http://studioware.com/wikislax/index.php?title=Apache&amp;diff=33&amp;oldid=prev</id>
		<title>Wikislax: Created page with &quot;{{RightTOC}}  == What is Apache ? ==  [http://httpd.apache.org Apache] is the most widespread and powerful Open Source HTTP server.  Apache is included in the base Slackware d...&quot;</title>
		<link rel="alternate" type="text/html" href="http://studioware.com/wikislax/index.php?title=Apache&amp;diff=33&amp;oldid=prev"/>
				<updated>2017-12-06T21:33:29Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{RightTOC}}  == What is Apache ? ==  [http://httpd.apache.org Apache] is the most widespread and powerful Open Source HTTP server.  Apache is included in the base Slackware d...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{RightTOC}}&lt;br /&gt;
&lt;br /&gt;
== What is Apache ? ==&lt;br /&gt;
&lt;br /&gt;
[http://httpd.apache.org Apache] is the most widespread and powerful Open Source HTTP server.&lt;br /&gt;
&lt;br /&gt;
Apache is included in the base Slackware distribution so it is possible to skip installation alltogether and proceed to [[Apache#Configuring Apache|Configuring Apache]] below. As part of Slackware, Apache benefits from Slackware security advisories.&lt;br /&gt;
&lt;br /&gt;
== Installing Apache ==&lt;br /&gt;
&lt;br /&gt;
[http://httpd.apache.org/download.cgi Download] Apache and untar under /usr/local. The [http://httpd.apache.org/docs/2.2 documentation] is available online. By default apache is installed in '''/usr/local/apache2'''. Here we split apache in directories '''/etc''', '''/usr/local''' and '''/var/www'''. '''--enable-authnz-ldap''' and '''--enable-ldap''' enable LDAP based authentication, '''--enable-ssl''' enables SSL/TLS support, '''--with-openssl''' specifies the location of the openssl source and '''--enable-so''' is required for '''PHP''', to be installed at the next step.&lt;br /&gt;
&lt;br /&gt;
 # groupadd apache&lt;br /&gt;
 # useradd -g apache apache&lt;br /&gt;
 # tar -C /usr/local -xvf httpd-x.y.z.txz&lt;br /&gt;
 # cd /usr/local/httpd*&lt;br /&gt;
 # ./configure --prefix=/var/www --bindir=/usr/local/bin \&lt;br /&gt;
 --sbindir=/usr/local/sbin --sysconfdir=/etc/httpd \&lt;br /&gt;
 --libdir=/usr/local/lib64 --includedir=/usr/local/include \&lt;br /&gt;
 --datarootdir=/usr/local/share --mandir=/usr/local/man \&lt;br /&gt;
 --enable-authnz-ldap --enable-ldap --enable-ssl \&lt;br /&gt;
 --with-openssl=/usr/local/openssl-1.0.2a \&lt;br /&gt;
 --enable-so --enable-mime-magic&lt;br /&gt;
 # make&lt;br /&gt;
 # removepkg /var/log/packages/httpd-x.y.z&lt;br /&gt;
 # mv /etc/httpd /etc/httpd.0&lt;br /&gt;
 # make install&lt;br /&gt;
 # make clean&lt;br /&gt;
 # cd /var&lt;br /&gt;
 # chown -R apache:apache www&lt;br /&gt;
&lt;br /&gt;
== Configuring Apache ==&lt;br /&gt;
&lt;br /&gt;
Edit '''/var/www/conf/httpd.conf''' to change the '''User''' and '''Group''' to '''apache''', enter the '''ServerAdmin''' e-mail address. To prevent apache from displaying version information, specify '''ServerSignature Off''' and '''ServerTokens prod'''. To prevent users from viewing directory content, remove the '''Indexes''' option in section '''&amp;lt;Directory &amp;quot;/var/www/htdocs&amp;quot;&amp;gt;'''. Check section '''&amp;lt;IfModule dir_module&amp;gt;''' to make sure which file names will be served if a directory is requested (by default '''index.html''').&lt;br /&gt;
&lt;br /&gt;
 User '''apache'''&lt;br /&gt;
 Group '''apache'''&lt;br /&gt;
 . . .&lt;br /&gt;
 ServerAdmin '''postmaster@inner'''&lt;br /&gt;
 &lt;br /&gt;
 '''ServerSignature Off'''&lt;br /&gt;
 '''ServerTokens prod'''&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;Directory &amp;quot;/var/www/htdocs&amp;quot;&amp;gt;&lt;br /&gt;
 . . .&lt;br /&gt;
 Options '''Indexes''' FollowSymLinks&lt;br /&gt;
 . . .&lt;br /&gt;
 &amp;lt;/Directory&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;IfModule dir_module&amp;gt;&lt;br /&gt;
     DirectoryIndex '''index.html index.htm index.php'''&lt;br /&gt;
 &amp;lt;/IfModule&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Running Apache ==&lt;br /&gt;
&lt;br /&gt;
To automatically launch apache at startup, edit '''/etc/rc.d/rc.httpd''' and update the paths to reflect installation of the software under '''/usr/local/sbin'''. Give the file execution rights, launch the software using '''/etc/rc.d/rc.httpd start''', check if it's running by a '''ps -ef | grep httpd''', point your browser to http://localhost which should load the apache test page with the message '''It works!''', then open port 80 on the firewall.&lt;br /&gt;
&lt;br /&gt;
 # '''vi /etc/rc.d/rc.httpd'''&lt;br /&gt;
 . . .&lt;br /&gt;
 case &amp;quot;$1&amp;quot; in&lt;br /&gt;
   'start')&lt;br /&gt;
     /usr'''/local/sbin'''/apachectl -k start&lt;br /&gt;
   ;;&lt;br /&gt;
   'stop')&lt;br /&gt;
     /usr'''/local/sbin'''/apachectl -k stop&lt;br /&gt;
     killall httpd&lt;br /&gt;
     rm -f /var/www/logs/httpd/*.pid&lt;br /&gt;
   ;;&lt;br /&gt;
   'restart')&lt;br /&gt;
     /usr'''/local/sbin'''/apachectl -k restart&lt;br /&gt;
   ;;&lt;br /&gt;
   'graceful')&lt;br /&gt;
     /usr'''/local/sbin'''/apachectl -k graceful&lt;br /&gt;
   ;;&lt;br /&gt;
   'graceful-stop')&lt;br /&gt;
     /usr'''/local/sbin'''/apachectl -k graceful-stop&lt;br /&gt;
   ;;&lt;br /&gt;
   *)&lt;br /&gt;
     echo &amp;quot;Usage: $0 {start|stop|restart|graceful|graceful-stop}&amp;quot;&lt;br /&gt;
   ;;&lt;br /&gt;
 esac&lt;br /&gt;
 ''':x'''&lt;br /&gt;
 # '''chmod u+x /etc/rc.d/rc.httpd'''&lt;br /&gt;
 # '''/etc/rc.d/rc.httpd start'''&lt;br /&gt;
 # '''ps -ef | grep httpd'''&lt;br /&gt;
 root      9875     1  1 07:52 ?        00:00:00 /usr/local/sbin/httpd -k start&lt;br /&gt;
 apache    9876  9875  0 07:52 ?        00:00:00 /usr/local/sbin/httpd -k start&lt;br /&gt;
 apache    9877  9875  0 07:52 ?        00:00:00 /usr/local/sbin/httpd -k start&lt;br /&gt;
 apache    9878  9875  0 07:52 ?        00:00:00 /usr/local/sbin/httpd -k start&lt;br /&gt;
 apache    9879  9875  0 07:52 ?        00:00:00 /usr/local/sbin/httpd -k start&lt;br /&gt;
 apache    9880  9875  0 07:52 ?        00:00:00 /usr/local/sbin/httpd -k start&lt;br /&gt;
 root      9882  3198  0 07:52 pts/1    00:00:00 grep httpd&lt;br /&gt;
 # '''vi /etc/rc.d/rc.firewall'''&lt;br /&gt;
 . . .&lt;br /&gt;
 iptables -A INPUT -p tcp -j ACCEPT --dport 80 -m state --state NEW&lt;br /&gt;
 . . .&lt;br /&gt;
 ''':x'''&lt;br /&gt;
 # '''/etc/rc.d/rc.firewall restart'''&lt;br /&gt;
&lt;br /&gt;
== Using encryption ==&lt;br /&gt;
&lt;br /&gt;
As we use HTTP applications that require login with passwords, we configure httpd.conf with SSL/TLS. This is described simply in the Apache documentation [https://httpd.apache.org/docs/2.4/en/ssl/ssl_howto.html SSL/TLS Strong Encryption: How-To]. At least the directives below are required in '''/etc/httpd/httpd.conf'''. The '''SSLCipherSuite''' directive enables only the strongest ciphers. '''apache.mtacert.pem.unsecure''' is a copy of your server certificate owned by '''apache:apache''' :&lt;br /&gt;
&lt;br /&gt;
 LoadModule ssl_module modules/mod_ssl.so&lt;br /&gt;
 &lt;br /&gt;
 Listen 443&lt;br /&gt;
 &amp;lt;VirtualHost *:443&amp;gt;&lt;br /&gt;
     ServerName inner.studioware.com&lt;br /&gt;
     SSLEngine on&lt;br /&gt;
     SSLCertificateFile &amp;quot;/etc/ssl/certs/mtacert.pem&amp;quot;&lt;br /&gt;
     SSLCertificateKeyFile &amp;quot;/etc/ssl/private/apache.mtacert.pem.unsecure&amp;quot;&lt;br /&gt;
     SSLCipherSuite HIGH:!aNULL:!MD5&lt;br /&gt;
 &amp;lt;/VirtualHost&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For this example to work in Firefox with your self-signed CA certificate, you need to import it using the &amp;quot;Preferences&amp;quot; &amp;quot;Advanced&amp;quot; &amp;quot;Certificates&amp;quot; &amp;quot;View certificates&amp;quot; &amp;quot;Authorities&amp;quot; &amp;quot;Import&amp;quot; menu. We have chosen to encrypt all the site but it is possible to restrict directives to specific areas. More details can be found in the [https://httpd.apache.org/docs/2.4/en/mod/mod_ssl.html Apache Module mod_ssl] and [https://httpd.apache.org/docs/2.4/en/ Apache] documentations.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{pFoot|[[MySQL]]|[[Main Page]]|[[PHP]]}}&lt;/div&gt;</summary>
		<author><name>Wikislax</name></author>	</entry>

	</feed>