<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Apache - Tag - Mulinux | Linux &amp; DevOps Notes</title>
    <link>https://blog.mulinux.com/en/tags/apache/</link>
    <description>Mulinux - Linux Operations &amp; DevOps blog. Notes on Linux, Kubernetes, Docker and backend engineering.</description>
    <generator>Hugo 0.160.0 &amp; FixIt v0.4.5</generator>
    <language>en</language>
    <lastBuildDate>Thu, 24 Jan 2019 10:42:04 +0800</lastBuildDate>
    <atom:link href="https://blog.mulinux.com/en/tags/apache/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>CentOS7部署httpd2.4.8(需支持perl)</title>
      <link>https://blog.mulinux.com/en/centos7%E9%83%A8%E7%BD%B2httpd2.4.38/</link>
      <pubDate>Thu, 24 Jan 2019 10:42:04 +0800</pubDate>
      <guid>https://blog.mulinux.com/en/centos7%E9%83%A8%E7%BD%B2httpd2.4.38/</guid>
      <category domain="https://blog.mulinux.com/en/categories/operations/">Operations</category>
      <description>&lt;h2 class=&#34;heading-element&#34; id=&#34;依赖包安装&#34;&gt;&lt;span&gt;依赖包安装&lt;/span&gt;&#xA;  &lt;a href=&#34;#%e4%be%9d%e8%b5%96%e5%8c%85%e5%ae%89%e8%a3%85&#34; class=&#34;heading-mark&#34;&gt;&#xA;    &lt;svg class=&#34;octicon octicon-link&#34; viewBox=&#34;0 0 16 16&#34; version=&#34;1.1&#34; width=&#34;16&#34; height=&#34;16&#34; aria-hidden=&#34;true&#34;&gt;&lt;path d=&#34;m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z&#34;&gt;&lt;/path&gt;&lt;/svg&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h2&gt;&lt;pre&gt;&lt;code&gt;yum -y install  gcc gcc-c&amp;#43;&amp;#43; make zlib zlib-devel openssl expat-devel  openssl-devel pcre pcre-devel&#xA;相关包下载地址：https://mirrors.tuna.tsinghua.edu.cn/apache/&#xA;apr-1.6.5.tar.gz&#xA;apr-util-1.6.1.tar.gz&#xA;httpd-2.4.37.tar.gz&lt;/code&gt;&lt;/pre&gt;&lt;h2 class=&#34;heading-element&#34; id=&#34;安装&#34;&gt;&lt;span&gt;安装&lt;/span&gt;&#xA;  &lt;a href=&#34;#%e5%ae%89%e8%a3%85&#34; class=&#34;heading-mark&#34;&gt;&#xA;    &lt;svg class=&#34;octicon octicon-link&#34; viewBox=&#34;0 0 16 16&#34; version=&#34;1.1&#34; width=&#34;16&#34; height=&#34;16&#34; aria-hidden=&#34;true&#34;&gt;&lt;path d=&#34;m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z&#34;&gt;&lt;/path&gt;&lt;/svg&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h2&gt;&lt;pre&gt;&lt;code&gt;./configure --prefix=/usr/local/apr&#xA;#rm如果报错，修改configure文件，RM=&amp;#39;$RM&amp;#39; 修改为RM=&amp;#39;$RM -f&amp;#39;&#xA;make &amp;amp;&amp;amp; make install&#xA;安装apr-util&#xA;./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr/&#xA;make &amp;amp;&amp;amp; make install&#xA;安装httpd&#xA;./configure \&#xA;--prefix=/usr/local/apache/ \&#xA;--with-apr=/usr/local/apr/ \&#xA;--with-apr-util=/usr/local/apr-util/ \&#xA;--enable-so \&#xA;--enable-ssl\&#xA;--enable-alib\&#xA;--with-ssl\&#xA;--with--pcre\&#xA;--enable-deflate=shared \&#xA;--enable-expires=shared \&#xA;--enable-rewrite=shared \&#xA;--enable-static-support&#xA;make &amp;amp;&amp;amp; make install&lt;/code&gt;&lt;/pre&gt;&lt;h2 class=&#34;heading-element&#34; id=&#34;mod_perl支持&#34;&gt;&lt;span&gt;mod_perl支持&lt;/span&gt;&#xA;  &lt;a href=&#34;#mod_perl%e6%94%af%e6%8c%81&#34; class=&#34;heading-mark&#34;&gt;&#xA;    &lt;svg class=&#34;octicon octicon-link&#34; viewBox=&#34;0 0 16 16&#34; version=&#34;1.1&#34; width=&#34;16&#34; height=&#34;16&#34; aria-hidden=&#34;true&#34;&gt;&lt;path d=&#34;m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z&#34;&gt;&lt;/path&gt;&lt;/svg&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h2&gt;&lt;p&gt;otrs系统原本使用的是centos yum安装的httpd2.4.6版本，因安全基线要求，编译了2.4.38至/usr/local/apache目录下，因程序是perl，所以需要添加mod_perl支持&#xA;&lt;code&gt;cp /usr/lib64/httpd/modules/mod_perl.so /usr/local/apache/modules/&lt;/code&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Apache主机使用.htaccess文件实现301跳转</title>
      <link>https://blog.mulinux.com/en/apache-htaccess-301/</link>
      <pubDate>Wed, 10 Oct 2018 11:18:12 +0800</pubDate>
      <guid>https://blog.mulinux.com/en/apache-htaccess-301/</guid>
      <category domain="https://blog.mulinux.com/en/categories/operations/">Operations</category>
      <description>&lt;h2 class=&#34;heading-element&#34; id=&#34;php主机301设置&#34;&gt;&lt;span&gt;PHP主机301设置：&lt;/span&gt;&#xA;  &lt;a href=&#34;#php%e4%b8%bb%e6%9c%ba301%e8%ae%be%e7%bd%ae&#34; class=&#34;heading-mark&#34;&gt;&#xA;    &lt;svg class=&#34;octicon octicon-link&#34; viewBox=&#34;0 0 16 16&#34; version=&#34;1.1&#34; width=&#34;16&#34; height=&#34;16&#34; aria-hidden=&#34;true&#34;&gt;&lt;path d=&#34;m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z&#34;&gt;&lt;/path&gt;&lt;/svg&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h2&gt;&lt;p&gt;将以下规则添加到.htaccess文件&lt;/p&gt;</description>
    </item>
    <item>
      <title>LAMP环境下PHP上传文件大小限制解决方法</title>
      <link>https://blog.mulinux.com/en/apache-php-set-maxfilesize/</link>
      <pubDate>Fri, 08 May 2015 09:32:03 +0800</pubDate>
      <guid>https://blog.mulinux.com/en/apache-php-set-maxfilesize/</guid>
      <category domain="https://blog.mulinux.com/en/categories/operations/">Operations</category>
      <description>&lt;h2 class=&#34;heading-element&#34; id=&#34;在phpini里面调整如下行&#34;&gt;&lt;span&gt;在php.ini里面调整如下行&lt;/span&gt;&#xA;  &lt;a href=&#34;#%e5%9c%a8phpini%e9%87%8c%e9%9d%a2%e8%b0%83%e6%95%b4%e5%a6%82%e4%b8%8b%e8%a1%8c&#34; class=&#34;heading-mark&#34;&gt;&#xA;    &lt;svg class=&#34;octicon octicon-link&#34; viewBox=&#34;0 0 16 16&#34; version=&#34;1.1&#34; width=&#34;16&#34; height=&#34;16&#34; aria-hidden=&#34;true&#34;&gt;&lt;path d=&#34;m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z&#34;&gt;&lt;/path&gt;&lt;/svg&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h2&gt;&lt;pre&gt;&lt;code&gt;upload_max_filesize = 20M &#xA;post_max_size = 10M &#xA;memory_limit = 20M&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;确认上传的 &lt;form&gt; 里没有类似下面的这行&lt;input type=&#34;hidden&#34; name=&#34;MAX_FILE_SIZE&#34; value=&#34;500000&#34;&gt;这样也是限制上传大小用的。&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
