Skip to content

mod_swap_handler can change the hadler configured by the user.

License

Notifications You must be signed in to change notification settings

harasou/mod_replace_handler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mod_replace_handler

mod_replace_handler can change the hadler configured by the user.

Requirements

  • Apache Development tools (CentOS:httpd-devel, ubuntsu:apach2-dev, etc)
  • gcc
  • make

Install

  • Build on Linux
git clone https://github.com/harasou/mod_replace_handler
cd mod_replace_handler

make
make install

Sample Setting

user setting on .htaccess

AddHandler php5.2-script .php

server setting on httpd.conf

LoadModule replace_handler_module modules/mod_replace_handler.so

<Ifmodule mod_replace_handler.c>
ReplaceHandler php5.2-script php5.6-script
ReplaceHandler php5.3-script php5.6-script
</Ifmodule>

The user's php is executed in the php5.6-script handler.

License

Paddington is licensed under the MIT license. Copyright (c) 2020 SOGO Haraguchi

About

mod_swap_handler can change the hadler configured by the user.

Resources

License

Stars

Watchers

Forks

Packages

No packages published