ultranerds

Untitled

Mar 20th, 2019
120
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <VirtualHost *:8181>
  2.  
  3. CustomLog /home/steampunkcom/web/site1.com/logs/site1.com.apache.log combined
  4. ErrorLog /home/steampunkcom/web/site1.com/logs/site1.com.apache.error.log
  5.  
  6. LogLevel error
  7.  
  8. RemoteIPHeader X-Forwarded-For
  9.  
  10. # MOD_PERL
  11. LoadModule perl_module /usr/lib/apache2/modules/mod_perl.so
  12.  
  13. PerlOptions +Clone
  14. PerlInterpStart 2
  15. PerlInterpMax 2
  16. #PerlSwitches -Mlib=/home/steampunkcom/web/site1.com/lib
  17.  
  18. ServerName site1.com
  19. ServerAlias www.site1.com
  20. ServerAdmin info@site1.com
  21. DocumentRoot /home/steampunkcom/web/site1.com/public_html
  22.  
  23. # MOD_PERL
  24. #PerlRequire /home/steampunkcom/web/site1.com/startup.pl
  25.  
  26. ScriptAlias /cgi-bin/ /home/steampunkcom/web/site1.com/public_html/cgi-bin/
  27.  
  28. Alias /vstats/ /home/steampunkcom/web/site1.com/stats/
  29. Alias /error/ /home/steampunkcom/web/site1.com/document_errors/
  30.  
  31. # Normal perl - not running under mod_perl (good for dev)
  32. <Directory "/home/steampunkcom/web/site1.com/*">
  33. Options +ExecCGI +FollowSymLinks +MultiViews
  34. AllowOverride AuthConfig
  35. Require all granted
  36. AddHandler cgi-script .cgi .pl
  37. </Directory>
  38.  
  39. # Uncomment this part to make run as mod_perl - comment out above as well!
  40. # <Directory "/home/steampunkcom/web/site1.com/*">
  41.  
  42. # Options +ExecCGI +FollowSymLinks +MultiViews
  43. # AllowOverride AuthConfig
  44.  
  45. # PerlResponseHandler ModPerl::Registry
  46. # AddHandler perl-script .cgi .pl
  47. # Options +ExecCGI
  48. # PerlOptions +ParseHeaders
  49. # AllowOverride All
  50. # Require all granted
  51.  
  52. # </Directory>
  53.  
  54. <Directory "/home/steampunkcom/web/site1.com/public_html/cgi-bin/admin">
  55. AuthType Basic
  56. AuthName "Authorized Users Only"
  57. AuthBasicProvider file
  58. AuthUserFile /home/steampunkcom/web/site1.com/.htpasswd
  59. <RequireAny>
  60. Require valid-user
  61. Require ip 81.174.134.133
  62. </RequireAny>
  63. </Directory>
  64.  
  65. <Directory /home/steampunkcom/web/site1.com/stats>
  66. AllowOverride All
  67. Require all granted
  68. </Directory>
  69.  
  70.  
  71. <IfModule mod_ruid2.c>
  72. RMode config
  73. RUidGid steampunkcom steampunkcom
  74. RGroups www-data
  75. </IfModule>
  76. <IfModule itk.c>
  77. AssignUserID steampunkcom steampunkcom
  78. </IfModule>
  79.  
  80. IncludeOptional /home/steampunkcom/conf/web/apache2.site1.com.conf*
  81.  
  82. </VirtualHost>
RAW Paste Data