How to install/Add mod_rewrite modules under Linux _linux
Source: Internet
Author: User
If your server Apache has not been installed, it is very simple, in the compilation of Apache Mod_rewrite module can be compiled, the relevant documents can be http://man.chinaunix.net/newsoft ... ew/mod/mod_ Rewrite. Found in HTML. If your Apache is already installed, and now just want to compile the mod_rewrite.so module and load it in Apache, let's introduce this approach.
Take the Fedora operating system for example:
1 Install Apache for the first time, add--enable-rewrite option at compile time.
Such as. /configure--prefix=/usr/local/apachel--enable-so--enable-mods-shared=all--enable-rewrite--enable-cache
2) Add Mod_rewrite module
# Find. -name mod_rewrite.c//Find mod_rewrite.c files in the Apache source installation directory
# CD PATH/TO/MOD_REWRITE.C//Enter the directory containing MOD_REWRITE.C files
#/usr/local/apache/bin/apxs-c mod_rewrite.c//apxs should specify an absolute path in the bin directory where you are currently using Apache
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.