apache-php4.patch.suphp 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. Index: src/Configuration.cpp
  2. --- src/Configuration.cpp.orig 2005-02-27 18:53:05 +0100
  3. +++ src/Configuration.cpp 2005-09-07 13:31:39 +0200
  4. @@ -21,6 +21,8 @@
  5. #include <string>
  6. #include <vector>
  7. +#include "config.h"
  8. +
  9. #include "IniFile.hpp"
  10. #include "Util.hpp"
  11. @@ -81,7 +83,11 @@
  12. }
  13. suPHP::Configuration::Configuration() {
  14. +#ifdef OPT_LOGFILE
  15. + this->logfile = OPT_LOGFILE;
  16. +#else
  17. this->logfile = "/var/log/suphp.log";
  18. +#endif
  19. #ifdef OPT_APACHE_USER
  20. this->webserver_user = OPT_APACHE_USER;
  21. #else
  22. Index: src/apache/mod_suphp.c
  23. --- src/apache/mod_suphp.c.orig 2005-02-27 18:56:37 +0100
  24. +++ src/apache/mod_suphp.c 2005-09-07 13:32:19 +0200
  25. @@ -249,9 +249,9 @@
  26. {"suPHP_UserGroup", suphp_handle_cmd_user_group, NULL,
  27. RSRC_CONF|ACCESS_CONF, TAKE2, "User and group scripts shall be run as"},
  28. #endif
  29. - {"suPHP_AddHandler", suphp_handle_cmd_add_handler, NULL, ACCESS_CONF,
  30. + {"suPHP_AddHandler", suphp_handle_cmd_add_handler, NULL, RSRC_CONF|ACCESS_CONF,
  31. ITERATE, "Tells mod_suphp to handle these MIME-types"},
  32. - {"suphp_RemoveHandler", suphp_handle_cmd_remove_handler, NULL, ACCESS_CONF,
  33. + {"suphp_RemoveHandler", suphp_handle_cmd_remove_handler, NULL, RSRC_CONF|ACCESS_CONF,
  34. ITERATE, "Tells mod_suphp not to handle these MIME-types"},
  35. {NULL}
  36. };