Posted On April 1, 2019

Enable Mod_rewrite Url rewrite

kimconnect 0 comments
blog.KimConnect.com >> Linux >> Enable Mod_rewrite Url rewrite
vim /etc/httpd/conf/httpd.conf


Line 306, change the directory name to:
<Directory "/home/www">

line 237, set:
AllowOverride All

Line 564, if you're using cgi-bin:
ScriptAlias /cgi-bin/ "/home/www/cgi-bin/"

Line 570, change to "/home/www/cgi-bin" and AllowOverride all

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

CentOS 8: How to Only Apply Security Updates

[cuilo@test-box ~]# sudo yum --security update CentOS-8 - AppStream 12 kB/s | 4.3 kB 00:00…

How to Remove Apps in CentOS/Redhat

Check the repo directory: [root@localhost ~]# ls /etc/yum.repos.d CentOS-Base.repo CentOS-Sources.repo CentOS-CR.repo CentOS-Vault.repo CentOS-Debuginfo.repo docker-ce.repo CentOS-fasttrack.repo…

Linux: How to Add a Line into Crontab from Command Line

The easy method: newline=@reboot /usr/bin/numlockx(crontab -l && echo "$newLine") | crontab - Alternative (longer version)…