Advertisement
ultranerds

Untitled

Mar 20th, 2019
377
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.26 KB | None | 0 0
  1. <VirtualHost *:8181>
  2.  
  3. CustomLog /home/willr/web/site2.co.uk/logs/site2.co.uk.apache.log combined
  4. ErrorLog /home/willr/web/site2.co.uk/logs/site2.co.uk.apache.error.log
  5.  
  6. LogLevel error
  7.  
  8. RemoteIPHeader X-Forwarded-For
  9.  
  10. LoadModule perl_module /usr/lib/apache2/modules/mod_perl.so
  11.  
  12. PerlRequire /home/willr/web/site2.co.uk/startup.pl
  13.  
  14. PerlOptions +Clone
  15. PerlInterpStart 2
  16. PerlInterpMax 2
  17. #PerlSwitches -Mlib=/home/willr/web/site2.co.uk/lib
  18.  
  19. ServerName site2.co.uk
  20. ServerAlias www.site2.co.uk
  21. ServerAdmin info@site2.co.uk
  22. DocumentRoot /home/willr/web/site2.co.uk/public_html
  23.  
  24.  
  25.  
  26. #####
  27. ScriptAlias /cgi-bin/ /home/willr/web/site2.co.uk/public_html/cgi-bin/
  28. #####
  29.  
  30. Alias /vstats/ /home/willr/web/site2.co.uk/stats/
  31. Alias /error/ /home/willr/web/site2.co.uk/document_errors/
  32.  
  33. #####
  34. #SuexecUserGroup willr willr
  35. #####
  36.  
  37.  
  38.  
  39. <Directory "/home/willr/web/site2.co.uk/*">
  40. Options +ExecCGI +FollowSymLinks +MultiViews
  41. AllowOverride AuthConfig
  42. # Require all granted
  43. # AddHandler cgi-script .cgi .pl
  44.  
  45. PerlResponseHandler ModPerl::Registry
  46. AddHandler perl-script .cgi .pl
  47. Options +ExecCGI
  48. PerlOptions +ParseHeaders
  49. #
  50. #
  51. AllowOverride All
  52.  
  53. #PerlOptions
  54. #
  55.  
  56. Require all granted
  57.  
  58. </Directory>
  59.  
  60. <Directory "/home/willr/web/site2.co.uk/public_html/cgi-bin/admin">
  61.  
  62. Options MultiViews FollowSymLinks
  63. AllowOverride All
  64. # Require all granted
  65. AddHandler cgi-script .cgi .pl
  66. Options +ExecCGI
  67. Options FollowSymLinks
  68.  
  69.  
  70.  
  71. AuthType Basic
  72. AuthName "Authorized Users Only"
  73. AuthBasicProvider file
  74. AuthUserFile /home/willr/web/site2.co.uk/.htpasswd
  75. <RequireAny>
  76. Require valid-user
  77. Require ip 81.174.134.133
  78. </RequireAny>
  79. </Directory>
  80.  
  81. <IfModule mod_ruid2.c>
  82. RMode config
  83. RUidGid willr willr
  84. RGroups www-data
  85. </IfModule>
  86. <IfModule itk.c>
  87. AssignUserID willr willr
  88. </IfModule>
  89.  
  90. #####
  91. #IncludeOptional /home/willr/conf/web/apache2.site2.co.uk.conf*
  92. #####
  93.  
  94. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement