LoginSignup
0
0

More than 5 years have passed since last update.

ソースからインストールしたapacheにmod_rewriteを追加する

Last updated at Posted at 2014-12-10

前提:/usr/local/srcでhttpd-2.2.27.tar.gzを展開

mkdir /usr/local/apache2/3rdparty

find /usr/local/src/httpd-2.2.27/modules/ -name "rewrite"

cp -p /usr/local/src/httpd-2.2.27/modules/mappers/mod_rewrite.c /usr/local/apache2/3rdparty/

cp -p /usr/local/src/httpd-2.2.27/modules/mappers/mod_rewrite.h /usr/local/apache2/3rdparty/

cd /usr/local/apache2/3rdparty/

/usr/local/apache2/bin/apxs -c mod_rewrite.c

/usr/local/apache2/bin/apxs -i -a -n rewrite mod_rewrite.la

service httpd restart

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0