Advertisement
Guest User

Untitled

a guest
Feb 21st, 2013
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.58 KB | None | 0 0
  1. #
  2. # Web server configuration for LXR server
  3. #
  4. # $Id: apache-lxrserver.conf,v 1.1 2012/01/29 07:36:40 ajlittoz Exp $
  5. #
  6. # Some lines need to be modified to reflect the location of
  7. # the LXR root directory. They are marked as follows for manual
  8. # change:
  9. # ----------------> ** Explanatory text **
  10. #
  11.  
  12.  
  13. # =================================================
  14. #
  15. # ------- URL black magic for multiple trees ------
  16. #
  17. # Uncomment for multiple trees operation
  18. # ----------------> absolute path to the LXR root directory
  19. #=m= AliasMatch ^/lxr/[^/]+/(.*) "/usr/suse/lxr/lxr/$1"
  20.  
  21.  
  22. # =================================================
  23. #
  24. # ------- Simple URL for a single tree ------
  25. #
  26. # Uncomment for single tree operation
  27. # ----------------> absolute path to the LXR root directory
  28. Alias ^/lxr "/usr/suse/lxr/lxr"
  29.  
  30. PerlRequire /usr/suse/lxr/lxr/lxrconf.d/apache2-require.pl
  31. # =================================================
  32. #
  33. # ----------- Perl security checks -----------
  34. #
  35. # If these checks cause trouble (i.e. too many
  36. # error or warning messages in Apache's error log),
  37. # comment out the lines.
  38. <IfDefine MODPERL2>
  39. PerlSwitches -T
  40. </IfDefine>
  41. <IfDefine !MODPERL2>
  42. PerlTaintCheck On
  43. </IfDefine>
  44.  
  45.  
  46. # =================================================
  47. #
  48. # ----------- LXR startup configuration -----------
  49. #
  50. # This is valid only for Apache 2.x
  51. # Apache 1.x requires manual modification of Perl library.
  52. # See LXR installation manual
  53. <IfModule mod_version.c>
  54. # Assume Apache 2.x and above since mod_version appeared in 2.0
  55. # This is safer than using <IfVersion> since this tag
  56. # causes an error with 1.x
  57. # However, when this configuration file is parsed,
  58. # mod_perl may not yet be loaded; consequently, the older
  59. # directive is used. Happily, it is still recognised by newer
  60. # versions of mod_perl.
  61. <IfDefine MODPERL2>
  62. # ----------------> absolute path to the LXR root directory
  63. PerlPostConfigRequire /usr/suse/lxr/lxr/lxrconf.d/apache2-require.pl
  64. </IfDefine>
  65. <IfDefine !MODPERL2>
  66. # ----------------> absolute path to the LXR root directory
  67. PerlRequire /usr/suse/lxr/lxr/lxrconf.d/apache2-require.pl
  68. </IfDefine>
  69. </IfModule>
  70.  
  71.  
  72.  
  73. # =================================================
  74. #
  75. # ----------- LXR directory access -----------
  76. #
  77. # ----------------> absolute path to the LXR root directory
  78. #RR
  79. Alias /lxr /usr/suse/lxr/lxr
  80.  
  81. <Directory "/usr/suse/lxr/lxr">
  82. Options FollowSymLinks
  83. Options +Indexes
  84. #AllowOverride FileInfo Limit Options
  85. AllowOverride AuthConfig FileInfo Limit Options
  86. Order allow,deny
  87. Allow from all
  88. </Directory>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement