Advertisement
gdhami

httpd.conf & SSL (2)

Dec 11th, 2013
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 27.78 KB | None | 0 0
  1. # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
  2. #   Direct modifications to the Apache configuration file may be lost upon subsequent regeneration of the       #
  3. #   configuration file. To have modifications retained, all modifications must be checked into the              #
  4. #   configuration system by running:                                                                            #
  5. #       /usr/local/cpanel/bin/apache_conf_distiller --update                                                    #
  6. #   To see if your changes will be conserved, regenerate the Apache configuration file by running:              #
  7. #       /usr/local/cpanel/bin/build_apache_conf                                                                 #
  8. #   and check the configuration file for your alterations. If your changes have been ignored, then they will    #
  9. #   need to be added directly to their respective template files.                                               #
  10. #                                                                                                               #
  11. #   It is also possible to add custom directives to the various "Include" files loaded by this httpd.conf       #
  12. #   For detailed instructions on using Include files and the apache_conf_distiller with the new configuration   #
  13. #   system refer to the documentation at: http://www.cpanel.net/support/docs/ea/ea3/customdirectives.html       #
  14. #                                                                                                               #
  15. #   This configuration file was built from the following templates:                                             #
  16. #     /var/cpanel/templates/apache2/main.default                                                                #
  17. #     /var/cpanel/templates/apache2/main.local                                                                  #
  18. #     /var/cpanel/templates/apache2/vhost.default                                                               #
  19. #     /var/cpanel/templates/apache2/vhost.local                                                                 #
  20. #     /var/cpanel/templates/apache2/ssl_vhost.default                                                           #
  21. #     /var/cpanel/templates/apache2/ssl_vhost.local                                                             #
  22. #                                                                                                               #
  23. #  Templates with the '.local' extension will be preferred over templates with the '.default' extension.        #
  24. #  The only template updated by the apache_conf_distiller is main.default.                                      #
  25. # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
  26.  
  27.  
  28. Include "/usr/local/apache/conf/includes/pre_main_global.conf"
  29. Include "/usr/local/apache/conf/includes/pre_main_2.conf"
  30.  
  31.  
  32.  
  33. LoadModule perl_module modules/mod_perl.so
  34. LoadModule bwlimited_module modules/mod_bwlimited.so
  35. LoadModule dav_svn_module modules/mod_dav_svn.so
  36. LoadModule authz_svn_module modules/mod_authz_svn.so
  37.  
  38.  
  39.  
  40.  
  41. Include "/usr/local/apache/conf/php.conf"
  42. Include "/usr/local/apache/conf/includes/errordocument.conf"
  43. Include "/usr/local/apache/conf/modsec2.conf"
  44.  
  45.  
  46. ErrorLog "logs/error_log"
  47. DefaultType text/plain
  48. ScriptAliasMatch ^/?controlpanel/?$ /usr/local/cpanel/cgi-sys/redirect.cgi
  49. ScriptAliasMatch ^/?cpanel/?$ /usr/local/cpanel/cgi-sys/redirect.cgi
  50. ScriptAliasMatch ^/?kpanel/?$ /usr/local/cpanel/cgi-sys/redirect.cgi
  51. ScriptAliasMatch ^/?securecontrolpanel/?$ /usr/local/cpanel/cgi-sys/sredirect.cgi
  52. ScriptAliasMatch ^/?securecpanel/?$ /usr/local/cpanel/cgi-sys/sredirect.cgi
  53. ScriptAliasMatch ^/?securewhm/?$ /usr/local/cpanel/cgi-sys/swhmredirect.cgi
  54. ScriptAliasMatch ^/?webmail/?$ /usr/local/cpanel/cgi-sys/wredirect.cgi
  55. ScriptAliasMatch ^/?whm/?$ /usr/local/cpanel/cgi-sys/whmredirect.cgi
  56.  
  57. RewriteEngine on
  58. AddType text/html .shtml
  59.  
  60. Alias /akopia /usr/local/cpanel/3rdparty/interchange/share/akopia/
  61. Alias /bandwidth /usr/local/bandmin/htdocs/
  62. Alias /img-sys /usr/local/cpanel/img-sys/
  63. Alias /interchange /usr/local/cpanel/3rdparty/interchange/share/interchange/
  64. Alias /interchange-5 /usr/local/cpanel/3rdparty/interchange/share/interchange-5/
  65. Alias /java-sys /usr/local/cpanel/java-sys/
  66. Alias /mailman/archives /usr/local/cpanel/3rdparty/mailman/archives/public/
  67. Alias /pipermail /usr/local/cpanel/3rdparty/mailman/archives/public/
  68. Alias /sys_cpanel /usr/local/cpanel/sys_cpanel/
  69.  
  70.  
  71. ScriptAlias /cgi-sys /usr/local/cpanel/cgi-sys/
  72. ScriptAlias /mailman /usr/local/cpanel/3rdparty/mailman/cgi-bin/
  73.  
  74.  
  75. <Directory "/">
  76.     Options All
  77.     AllowOverride All
  78. </Directory>
  79.  
  80. <Directory "/usr/local/apache/htdocs">
  81.     Options Includes Indexes FollowSymLinks
  82.     AllowOverride None
  83.     Order allow,deny
  84.     Allow from all
  85.  
  86. </Directory>
  87.  
  88. <Files ~ "^error_log$">
  89.     Order allow,deny
  90.     Deny from all
  91.  
  92.     Satisfy All
  93. </Files>
  94.  
  95. <FilesMatch "^\.ht">
  96.     Order allow,deny
  97.     Deny from all
  98.  
  99.     Satisfy All
  100. </FilesMatch>
  101.  
  102. <IfModule log_config_module>
  103.     LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  104.     LogFormat "%h %l %u %t \"%r\" %>s %b" common
  105.  
  106.     CustomLog logs/access_log common
  107.  
  108.     <IfModule logio_module>
  109.         LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
  110.  
  111.     </IfModule>
  112.  
  113. </IfModule>
  114.  
  115. <IfModule alias_module>
  116.     ScriptAlias /cgi-bin/ "/usr/local/apache/cgi-bin/"
  117.  
  118. </IfModule>
  119.  
  120. <Directory "/usr/local/apache/cgi-bin">
  121.     AllowOverride None
  122.     Options None
  123.     Order allow,deny
  124.     Allow from all
  125.  
  126. </Directory>
  127.  
  128. <IfModule mod_log_config.c>
  129.     LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  130.     LogFormat "%h %l %u %t \"%r\" %>s %b" common
  131.     LogFormat "%{Referer}i -> %U" referer
  132.     LogFormat "%{User-agent}i" agent
  133.  
  134.     CustomLog logs/access_log common
  135.  
  136. </IfModule>
  137.  
  138. <IfModule mime_module>
  139.     TypesConfig conf/mime.types
  140.     AddType application/x-compress .Z
  141.     AddType application/x-gzip .gz .tgz
  142.  
  143. </IfModule>
  144.  
  145. # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
  146. #   Direct modifications to the Apache configuration file may be lost upon subsequent regeneration of the       #
  147. #   configuration file. To have modifications retained, all modifications must be checked into the              #
  148. #   configuration system by running:                                                                            #
  149. #       /usr/local/cpanel/bin/apache_conf_distiller --update                                                    #
  150. #   To see if your changes will be conserved, regenerate the Apache configuration file by running:              #
  151. #       /usr/local/cpanel/bin/build_apache_conf                                                                 #
  152. #   and check the configuration file for your alterations. If your changes have been ignored, then they will    #
  153. #   need to be added directly to their respective template files.                                               #
  154. #                                                                                                               #
  155. #   It is also possible to add custom directives to the various "Include" files loaded by this httpd.conf       #
  156. #   For detailed instructions on using Include files and the apache_conf_distiller with the new configuration   #
  157. #   system refer to the documentation at: http://www.cpanel.net/support/docs/ea/ea3/customdirectives.html       #
  158. #                                                                                                               #
  159. #   This configuration file was built from the following templates:                                             #
  160. #     /var/cpanel/templates/apache2/main.default                                                                #
  161. #     /var/cpanel/templates/apache2/main.local                                                                  #
  162. #     /var/cpanel/templates/apache2/vhost.default                                                               #
  163. #     /var/cpanel/templates/apache2/vhost.local                                                                 #
  164. #     /var/cpanel/templates/apache2/ssl_vhost.default                                                           #
  165. #     /var/cpanel/templates/apache2/ssl_vhost.local                                                             #
  166. #                                                                                                               #
  167. #  Templates with the '.local' extension will be preferred over templates with the '.default' extension.        #
  168. #  The only template updated by the apache_conf_distiller is main.default.                                      #
  169. # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
  170.  
  171.  
  172. PidFile logs/httpd.pid
  173. LockFile logs/accept.lock
  174. # Defined in /var/cpanel/cpanel.config: apache_port
  175. Listen 0.0.0.0:80
  176. User nobody
  177. Group nobody
  178. ExtendedStatus On
  179. ServerAdmin admin@hostname.com
  180. ServerName server.some_domain.net
  181. LogLevel warn
  182.  
  183. # These can be set in WHM under 'Apache Global Configuration'
  184. Timeout 300
  185.  
  186. ServerSignature On
  187.  
  188.  
  189.  
  190. <IfModule prefork.c>
  191.  
  192.  
  193. </IfModule>
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201. RewriteEngine on
  202. RewriteMap LeechProtect prg:/usr/local/cpanel/bin/leechprotect
  203. RewriteLock /usr/local/apache/logs/rewrite_lock
  204.  
  205. <IfModule !mod_ruid2.c>
  206. UserDir public_html
  207. </IfModule>
  208. <IfModule mod_ruid2.c>
  209. UserDir disabled
  210. </IfModule>
  211.  
  212. # DirectoryIndex is set via the WHM -> Service Configuration -> Apache Setup -> DirectoryIndex Priority
  213. DirectoryIndex index.html.var index.htm index.html index.shtml index.xhtml index.wml index.perl index.pl index.plx index.ppl index.cgi index.jsp index.js index.jp index.php4 index.php3 index.php index.phtml default.htm default.html home.htm index.php5 Default.html Default.htm home.html
  214.  
  215. # SSLCipherSuite can be set in WHM under 'Apache Global Configuration'
  216.  
  217. SSLCipherSuite ALL:!ADH:RC4+RSA:+HIGH:+MEDIUM:-LOW:-SSLv2:-EXP:!kEDH
  218.  
  219. SSLPassPhraseDialog  builtin
  220. SSLSessionCache         dbm:/usr/local/apache/logs/ssl_scache
  221. SSLSessionCacheTimeout  300
  222. SSLMutex  file:/usr/local/apache/logs/ssl_mutex
  223. SSLRandomSeed startup builtin
  224. SSLRandomSeed connect builtin
  225.  
  226.     # Defined in /var/cpanel/cpanel.config: apache_ssl_port
  227.     Listen 0.0.0.0:443
  228.     AddType application/x-x509-ca-cert .crt
  229.     AddType application/x-pkcs7-crl .crl
  230.  
  231.  
  232. AddHandler cgi-script .cgi .pl .plx .ppl .perl
  233. AddHandler server-parsed .shtml
  234. AddType text/html .shtml
  235. AddType application/x-tar .tgz
  236. AddType text/vnd.wap.wml .wml
  237. AddType image/vnd.wap.wbmp .wbmp
  238. AddType text/vnd.wap.wmlscript .wmls
  239. AddType application/vnd.wap.wmlc .wmlc
  240. AddType application/vnd.wap.wmlscriptc .wmlsc
  241.  
  242. <Location /whm-server-status>
  243.     SetHandler server-status
  244.     Order deny,allow
  245.     Deny from all
  246.     Allow from 127.0.0.1
  247. </Location>
  248.  
  249.  
  250.  
  251. # SUEXEC is supported
  252.  
  253. Include "/usr/local/apache/conf/includes/pre_virtualhost_global.conf"
  254. Include "/usr/local/apache/conf/includes/pre_virtualhost_2.conf"
  255.  
  256. # DO NOT EDIT. AUTOMATICALLY GENERATED.  IF YOU NEED TO MAKE A CHANGE PLEASE USE THE INCLUDE FILES.
  257. NameVirtualHost 111.22.33.146:80
  258. NameVirtualHost 111.22.33.153:443
  259. NameVirtualHost 111.22.33.153:80
  260. NameVirtualHost 111.22.33.160:443
  261. NameVirtualHost 111.22.33.160:80
  262. NameVirtualHost 127.0.0.1:80
  263. NameVirtualHost *
  264. # DO NOT EDIT. AUTOMATICALLY GENERATED.  IF YOU NEED TO MAKE A CHANGE PLEASE USE THE INCLUDE FILES.
  265.  
  266. <VirtualHost 111.22.33.146:80>
  267.     ServerName server.some_domain.net
  268.     DocumentRoot /home/some_domain/public_html
  269. #    DocumentRoot /usr/local/apache/htdocs
  270.     ServerAdmin admin@hostname.com
  271.     <IfModule mod_suphp.c>
  272.         suPHP_UserGroup nobody nobody
  273.     </IfModule>
  274. </VirtualHost>
  275.  
  276.  
  277. # Default vhost for unbound IPs
  278.  
  279. <VirtualHost *>
  280.     ServerName server.some_domain.net
  281.     DocumentRoot /home/some_domain/public_html
  282.     # DocumentRoot /usr/local/apache/htdocs
  283.     ServerAdmin admin@hostname.com
  284.     <IfModule mod_suphp.c>
  285.         suPHP_UserGroup nobody nobody
  286.     </IfModule>
  287. </VirtualHost>
  288.  
  289. # DO NOT EDIT. AUTOMATICALLY GENERATED.  IF YOU NEED TO MAKE A CHANGE PLEASE USE THE INCLUDE FILES.
  290.  
  291. <VirtualHost 111.22.33.146:80>
  292.     ServerName domain2.org
  293.     ServerAlias www.domain2.org
  294.     DocumentRoot /home/domain2/public_html
  295.     ServerAdmin webmaster@domain2.org
  296.     UseCanonicalName Off
  297.     CustomLog /usr/local/apache/domlogs/domain2.org combined
  298.     CustomLog /usr/local/apache/domlogs/domain2.org-bytes_log "%{%s}t %I .\n%{%s}t %O ."
  299.     ## User domain2 # Needed for Cpanel::ApacheConf
  300.     UserDir enabled domain2
  301.     <IfModule mod_suphp.c>
  302.         suPHP_UserGroup domain2 domain2
  303.     </IfModule>
  304.     <IfModule !mod_disable_suexec.c>
  305.         <IfModule !mod_ruid2.c>
  306.             SuexecUserGroup domain2 domain2
  307.         </IfModule>
  308.     </IfModule>
  309.     <IfModule mod_ruid2.c>
  310.         RUidGid domain2 domain2
  311.     </IfModule>
  312.     ScriptAlias /cgi-bin/ /home/domain2/public_html/cgi-bin/
  313.  
  314.  
  315.     # To customize this VirtualHost use an include file at the following location
  316.     # Include "/usr/local/apache/conf/userdata/std/2/domain2/domain2.org/*.conf"
  317.  
  318. </VirtualHost>
  319.  
  320. # DO NOT EDIT. AUTOMATICALLY GENERATED.  IF YOU NEED TO MAKE A CHANGE PLEASE USE THE INCLUDE FILES.
  321.  
  322. <VirtualHost 111.22.33.146:80>
  323.     ServerName domain3.com
  324.     ServerAlias www.domain3.com
  325.     DocumentRoot /home/domain3/public_html
  326.     ServerAdmin webmaster@domain3.com
  327.     UseCanonicalName Off
  328.     CustomLog /usr/local/apache/domlogs/domain3.com combined
  329.     CustomLog /usr/local/apache/domlogs/domain3.com-bytes_log "%{%s}t %I .\n%{%s}t %O ."
  330.     ## User domain3 # Needed for Cpanel::ApacheConf
  331.     UserDir enabled domain3
  332.     <IfModule mod_suphp.c>
  333.         suPHP_UserGroup domain3 domain3
  334.     </IfModule>
  335.     <IfModule !mod_disable_suexec.c>
  336.         <IfModule !mod_ruid2.c>
  337.             SuexecUserGroup domain3 domain3
  338.         </IfModule>
  339.     </IfModule>
  340.     <IfModule mod_ruid2.c>
  341.         RUidGid domain3 domain3
  342.     </IfModule>
  343.     ScriptAlias /cgi-bin/ /home/domain3/public_html/cgi-bin/
  344.  
  345.  
  346.     # To customize this VirtualHost use an include file at the following location
  347.     # Include "/usr/local/apache/conf/userdata/std/2/domain3/domain3.com/*.conf"
  348.  
  349. </VirtualHost>
  350.  
  351. # DO NOT EDIT. AUTOMATICALLY GENERATED.  IF YOU NEED TO MAKE A CHANGE PLEASE USE THE INCLUDE FILES.
  352.  
  353. <VirtualHost 111.22.33.146:80>
  354.     ServerName domain4.com
  355.     ServerAlias www.domain4.com
  356.     DocumentRoot /home/domain4/public_html
  357.     ServerAdmin webmaster@domain4.com
  358.     UseCanonicalName Off
  359.     CustomLog /usr/local/apache/domlogs/domain4.com combined
  360.     CustomLog /usr/local/apache/domlogs/domain4.com-bytes_log "%{%s}t %I .\n%{%s}t %O ."
  361.     ## User domain4 # Needed for Cpanel::ApacheConf
  362.     UserDir enabled domain4
  363.     <IfModule mod_suphp.c>
  364.         suPHP_UserGroup domain4 domain4
  365.     </IfModule>
  366.     <IfModule !mod_disable_suexec.c>
  367.         <IfModule !mod_ruid2.c>
  368.             SuexecUserGroup domain4 domain4
  369.         </IfModule>
  370.     </IfModule>
  371.     <IfModule mod_ruid2.c>
  372.         RUidGid domain4 domain4
  373.     </IfModule>
  374.     ScriptAlias /cgi-bin/ /home/domain4/public_html/cgi-bin/
  375.  
  376.  
  377.     # To customize this VirtualHost use an include file at the following location
  378.     # Include "/usr/local/apache/conf/userdata/std/2/domain4/domain4.com/*.conf"
  379.  
  380. </VirtualHost>
  381.  
  382. # DO NOT EDIT. AUTOMATICALLY GENERATED.  IF YOU NEED TO MAKE A CHANGE PLEASE USE THE INCLUDE FILES.
  383.  
  384. <VirtualHost 111.22.33.146:80>
  385.     ServerName domain5.fm
  386.     ServerAlias www.domain5.fm
  387.     DocumentRoot /home/domain5/public_html
  388.     ServerAdmin webmaster@domain5.fm
  389.     UseCanonicalName Off
  390.     CustomLog /usr/local/apache/domlogs/domain5.fm combined
  391.     CustomLog /usr/local/apache/domlogs/domain5.fm-bytes_log "%{%s}t %I .\n%{%s}t %O ."
  392.     ## User domain5 # Needed for Cpanel::ApacheConf
  393.     UserDir enabled domain5
  394.     <IfModule mod_suphp.c>
  395.         suPHP_UserGroup domain5 domain5
  396.     </IfModule>
  397.     <IfModule !mod_disable_suexec.c>
  398.         <IfModule !mod_ruid2.c>
  399.             SuexecUserGroup domain5 domain5
  400.         </IfModule>
  401.     </IfModule>
  402.     <IfModule mod_ruid2.c>
  403.         RUidGid domain5 domain5
  404.     </IfModule>
  405.     ScriptAlias /cgi-bin/ /home/domain5/public_html/cgi-bin/
  406.  
  407.  
  408.     # To customize this VirtualHost use an include file at the following location
  409.     # Include "/usr/local/apache/conf/userdata/std/2/domain5/domain5.fm/*.conf"
  410.  
  411. </VirtualHost>
  412.  
  413. # DO NOT EDIT. AUTOMATICALLY GENERATED.  IF YOU NEED TO MAKE A CHANGE PLEASE USE THE INCLUDE FILES.
  414.  
  415. <VirtualHost 111.22.33.146:80>
  416.     ServerName domain6.com
  417.     ServerAlias www.domain6.com
  418.     DocumentRoot /home/domain6/public_html
  419.     ServerAdmin webmaster@domain6.com
  420.     UseCanonicalName Off
  421.     CustomLog /usr/local/apache/domlogs/domain6.com combined
  422.     CustomLog /usr/local/apache/domlogs/domain6.com-bytes_log "%{%s}t %I .\n%{%s}t %O ."
  423.     ## User domain6 # Needed for Cpanel::ApacheConf
  424.     UserDir enabled domain6
  425.     <IfModule mod_suphp.c>
  426.         suPHP_UserGroup domain6 domain6
  427.     </IfModule>
  428.     <IfModule !mod_disable_suexec.c>
  429.         <IfModule !mod_ruid2.c>
  430.             SuexecUserGroup domain6 domain6
  431.         </IfModule>
  432.     </IfModule>
  433.     <IfModule mod_ruid2.c>
  434.         RUidGid domain6 domain6
  435.     </IfModule>
  436.     ScriptAlias /cgi-bin/ /home/domain6/public_html/cgi-bin/
  437.  
  438.  
  439.     # To customize this VirtualHost use an include file at the following location
  440.     # Include "/usr/local/apache/conf/userdata/std/2/domain6/domain6.com/*.conf"
  441.  
  442. </VirtualHost>
  443.  
  444. # DO NOT EDIT. AUTOMATICALLY GENERATED.  IF YOU NEED TO MAKE A CHANGE PLEASE USE THE INCLUDE FILES.
  445.  
  446. <VirtualHost 111.22.33.146:80>
  447.     ServerName domain7.net
  448.     ServerAlias www.domain7.net
  449.     DocumentRoot /home/domain7/public_html
  450.     ServerAdmin webmaster@domain7.net
  451.     UseCanonicalName Off
  452.     CustomLog /usr/local/apache/domlogs/domain7.net combined
  453.     CustomLog /usr/local/apache/domlogs/domain7.net-bytes_log "%{%s}t %I .\n%{%s}t %O ."
  454.     ## User domain7 # Needed for Cpanel::ApacheConf
  455.     UserDir enabled domain7
  456.     <IfModule mod_suphp.c>
  457.         suPHP_UserGroup domain7 domain7
  458.     </IfModule>
  459.     <IfModule !mod_disable_suexec.c>
  460.         <IfModule !mod_ruid2.c>
  461.             SuexecUserGroup domain7 domain7
  462.         </IfModule>
  463.     </IfModule>
  464.     <IfModule mod_ruid2.c>
  465.         RUidGid domain7 domain7
  466.     </IfModule>
  467.     ScriptAlias /cgi-bin/ /home/domain7/public_html/cgi-bin/
  468.  
  469.  
  470.     # To customize this VirtualHost use an include file at the following location
  471.     # Include "/usr/local/apache/conf/userdata/std/2/domain7/domain7.net/*.conf"
  472.  
  473. </VirtualHost>
  474.  
  475. # DO NOT EDIT. AUTOMATICALLY GENERATED.  IF YOU NEED TO MAKE A CHANGE PLEASE USE THE INCLUDE FILES.
  476.  
  477. <VirtualHost 111.22.33.146:80>
  478.     ServerName domain8.com
  479.     ServerAlias www.domain8.com
  480.     DocumentRoot /home/domain8/public_html
  481.     ServerAdmin webmaster@domain8.com
  482.     UseCanonicalName Off
  483.     CustomLog /usr/local/apache/domlogs/domain8.com combined
  484.     CustomLog /usr/local/apache/domlogs/domain8.com-bytes_log "%{%s}t %I .\n%{%s}t %O ."
  485.     ## User domain8 # Needed for Cpanel::ApacheConf
  486.     UserDir enabled domain8
  487.     <IfModule mod_suphp.c>
  488.         suPHP_UserGroup domain8 domain8
  489.     </IfModule>
  490.     <IfModule !mod_disable_suexec.c>
  491.         <IfModule !mod_ruid2.c>
  492.             SuexecUserGroup domain8 domain8
  493.         </IfModule>
  494.     </IfModule>
  495.     <IfModule mod_ruid2.c>
  496.         RUidGid domain8 domain8
  497.     </IfModule>
  498.     ScriptAlias /cgi-bin/ /home/domain8/public_html/cgi-bin/
  499.  
  500.  
  501.     # To customize this VirtualHost use an include file at the following location
  502.     # Include "/usr/local/apache/conf/userdata/std/2/domain8/domain8.com/*.conf"
  503.  
  504. </VirtualHost>
  505.  
  506. # DO NOT EDIT. AUTOMATICALLY GENERATED.  IF YOU NEED TO MAKE A CHANGE PLEASE USE THE INCLUDE FILES.
  507.  
  508. <VirtualHost 111.22.33.146:80>
  509.     ServerName domain9.net
  510.     ServerAlias www.domain9.net
  511.     DocumentRoot /home/domain9/public_html
  512.     ServerAdmin webmaster@domain9.net
  513.     UseCanonicalName Off
  514.     CustomLog /usr/local/apache/domlogs/domain9.net combined
  515.     CustomLog /usr/local/apache/domlogs/domain9.net-bytes_log "%{%s}t %I .\n%{%s}t %O ."
  516.     ## User domain9 # Needed for Cpanel::ApacheConf
  517.     UserDir enabled domain9
  518.     <IfModule mod_suphp.c>
  519.         suPHP_UserGroup domain9 domain9
  520.     </IfModule>
  521.     <IfModule !mod_disable_suexec.c>
  522.         <IfModule !mod_ruid2.c>
  523.             SuexecUserGroup domain9 domain9
  524.         </IfModule>
  525.     </IfModule>
  526.     <IfModule mod_ruid2.c>
  527.         RUidGid domain9 domain9
  528.     </IfModule>
  529.     ScriptAlias /cgi-bin/ /home/domain9/public_html/cgi-bin/
  530.  
  531.  
  532.     # To customize this VirtualHost use an include file at the following location
  533.     # Include "/usr/local/apache/conf/userdata/std/2/domain9/domain9.net/*.conf"
  534.  
  535. </VirtualHost>
  536.  
  537. # DO NOT EDIT. AUTOMATICALLY GENERATED.  IF YOU NEED TO MAKE A CHANGE PLEASE USE THE INCLUDE FILES.
  538.  
  539. <VirtualHost 111.22.33.146:80>
  540.     ServerName domain10.org
  541.     ServerAlias www.domain10.org
  542.     DocumentRoot /home/cssorg/public_html
  543.     ServerAdmin webmaster@domain10.org
  544.     UseCanonicalName Off
  545.     CustomLog /usr/local/apache/domlogs/domain10.org combined
  546.     CustomLog /usr/local/apache/domlogs/domain10.org-bytes_log "%{%s}t %I .\n%{%s}t %O ."
  547.     ## User domain10 # Needed for Cpanel::ApacheConf
  548.     UserDir enabled domain10
  549.     <IfModule mod_suphp.c>
  550.         suPHP_UserGroup domain10 domain10
  551.     </IfModule>
  552.     <IfModule !mod_disable_suexec.c>
  553.         <IfModule !mod_ruid2.c>
  554.             SuexecUserGroup domain10 domain10
  555.         </IfModule>
  556.     </IfModule>
  557.     <IfModule mod_ruid2.c>
  558.         RUidGid domain10 domain10
  559.     </IfModule>
  560.     ScriptAlias /cgi-bin/ /home/domain10/public_html/cgi-bin/
  561.  
  562.     Include "/usr/local/apache/conf/userdata/std/2/domain10/domain10.org/*.conf"
  563.  
  564. </VirtualHost>
  565.  
  566. # DO NOT EDIT. AUTOMATICALLY GENERATED.  IF YOU NEED TO MAKE A CHANGE PLEASE USE THE INCLUDE FILES.
  567.  
  568. <VirtualHost 111.22.33.146:80>
  569.     ServerName domain11.net
  570.     ServerAlias www.domain11.net
  571.     DocumentRoot /home/domain11/public_html
  572.     ServerAdmin webmaster@domain11.net
  573.     UseCanonicalName Off
  574.     CustomLog /usr/local/apache/domlogs/domain11.net combined
  575.     CustomLog /usr/local/apache/domlogs/domain11.net-bytes_log "%{%s}t %I .\n%{%s}t %O ."
  576.     ## User domain11 # Needed for Cpanel::ApacheConf
  577.     UserDir enabled domain11
  578.     <IfModule mod_suphp.c>
  579.         suPHP_UserGroup domain11 domain11
  580.     </IfModule>
  581.     <IfModule !mod_disable_suexec.c>
  582.         <IfModule !mod_ruid2.c>
  583.             SuexecUserGroup domain11 domain11
  584.         </IfModule>
  585.     </IfModule>
  586.     <IfModule mod_ruid2.c>
  587.         RUidGid domain11 domain11
  588.     </IfModule>
  589.     ScriptAlias /cgi-bin/ /home/domain11/public_html/cgi-bin/
  590.  
  591.  
  592.     # To customize this VirtualHost use an include file at the following location
  593.     # Include "/usr/local/apache/conf/userdata/std/2/domain11/domain11.net/*.conf"
  594.  
  595. </VirtualHost>
  596.  
  597. # DO NOT EDIT. AUTOMATICALLY GENERATED.  IF YOU NEED TO MAKE A CHANGE PLEASE USE THE INCLUDE FILES.
  598.  
  599. <VirtualHost 111.22.33.146:80>
  600.     ServerName domain12.net
  601.     ServerAlias www.domain12.net
  602.     DocumentRoot /home/domain12/public_html
  603.     ServerAdmin webmaster@domain12.net
  604.     UseCanonicalName Off
  605.     CustomLog /usr/local/apache/domlogs/domain12.net combined
  606.     CustomLog /usr/local/apache/domlogs/domain12.net-bytes_log "%{%s}t %I .\n%{%s}t %O ."
  607.     ## User domain12 # Needed for Cpanel::ApacheConf
  608.     UserDir enabled domain12
  609.     <IfModule mod_suphp.c>
  610.         suPHP_UserGroup domain12 domain12
  611.     </IfModule>
  612.     <IfModule !mod_disable_suexec.c>
  613.         <IfModule !mod_ruid2.c>
  614.             SuexecUserGroup domain12 domain12
  615.         </IfModule>
  616.     </IfModule>
  617.     <IfModule mod_ruid2.c>
  618.         RUidGid domain12 domain12
  619.     </IfModule>
  620.     ScriptAlias /cgi-bin/ /home/domain12/public_html/cgi-bin/
  621.  
  622.  
  623.     # To customize this VirtualHost use an include file at the following location
  624.     # Include "/usr/local/apache/conf/userdata/std/2/domain12/domain12.net/*.conf"
  625.  
  626. </VirtualHost>
  627.  
  628. # DO NOT EDIT. AUTOMATICALLY GENERATED.  IF YOU NEED TO MAKE A CHANGE PLEASE USE THE INCLUDE FILES.
  629.  
  630. # SSL
  631. # DO NOT EDIT. AUTOMATICALLY GENERATED.  IF YOU NEED TO MAKE A CHANGE PLEASE USE THE INCLUDE FILES.
  632.  
  633. <VirtualHost 111.22.33.160:443>
  634.     ServerName some_domain.com
  635.     ServerAlias www.some_domain.com
  636.     DocumentRoot /home/some_domain/public_html
  637.     ServerAdmin webmaster@some_domain.com
  638.     UseCanonicalName off
  639.     CustomLog /usr/local/apache/domlogs/some_domain.com combined
  640.     CustomLog /usr/local/apache/domlogs/some_domain.com-bytes_log "%{%s}t %I .\n%{%s}t %O ."
  641.     ## User some_domain # Needed for Cpanel::ApacheConf
  642.     UserDir enabled some_domain
  643.     <IfModule mod_suphp.c>
  644.         suPHP_UserGroup some_domain some_domain
  645.     </IfModule>
  646.     <IfModule !mod_disable_suexec.c>
  647.         <IfModule !mod_ruid2.c>
  648.             SuexecUserGroup some_domain some_domain
  649.         </IfModule>
  650.     </IfModule>
  651.     <IfModule mod_ruid2.c>
  652.         RUidGid some_domain some_domain
  653.     </IfModule>
  654.     ScriptAlias /cgi-bin/ /home/some_domain/public_html/cgi-bin/
  655.     SSLEngine on
  656.    
  657.     SSLCertificateFile /etc/ssl/certs/some_domain.com.crt
  658.     SSLCertificateKeyFile /etc/ssl/private/some_domain.com.key
  659.     SSLCACertificateFile /etc/ssl/certs/some_domain.com.cabundle
  660.     CustomLog /usr/local/apache/domlogs/some_domain.com-ssl_log combined
  661.     SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
  662.     <Directory "/home/some_domain/public_html/cgi-bin">
  663.         SSLOptions +StdEnvVars
  664.     </Directory>
  665.  
  666.     # To customize this VirtualHost use an include file at the following location
  667.     # Include "/usr/local/apache/conf/userdata/ssl/2/some_domain/some_domain.com/*.conf"
  668.  
  669. </VirtualHost>
  670.  
  671.            
  672.  
  673. # CPANEL/WHM/WEBMAIL/WEBDISK/AUTOCONFIG PROXY SUBDOMAINS
  674.  
  675. <VirtualHost 111.22.33.146:80 111.22.33.153:443 111.22.33.153:80 111.22.33.160:443 111.22.33.160:80 127.0.0.1:80 *>
  676.     ServerName server.some_domain.net
  677.  
  678. #    ServerAlias cpanel.* whm.* webmail.* webdisk.* autodiscover.* autoconfig.*
  679.  
  680.     DocumentRoot /home/some_domain/public_html
  681.     # DocumentRoot /usr/local/apache/htdocs
  682.     ServerAdmin admin@hostname.com
  683.     <IfModule mod_suphp.c>
  684.         suPHP_UserGroup nobody nobody
  685.     </IfModule>
  686.     <IfModule mod_security2.c>
  687.         SecRuleEngine Off
  688.     </IfModule>
  689.     RewriteEngine On
  690.     <IfModule core.c>
  691.         SSLProxyEngine On
  692.     </IfModule>
  693. #    RewriteCond %{HTTP_HOST} ^cpanel\.
  694. #    RewriteCond %{HTTPS} on
  695. #    RewriteRule ^/(.*) https://127.0.0.1:2083/$1 [P]
  696. #    RewriteCond %{HTTP_HOST} ^webmail\.
  697. #    RewriteCond %{HTTPS} on
  698. #    RewriteRule ^/(.*) https://127.0.0.1:2096/$1 [P]
  699. #    RewriteCond %{HTTP_HOST} ^whm\.
  700. #    RewriteCond %{HTTPS} on
  701. #    RewriteRule ^/(.*) https://127.0.0.1:2087/$1 [P]
  702. #    RewriteCond %{HTTP_HOST} ^webdisk\.
  703. #    RewriteCond %{HTTPS} on
  704. #    RewriteRule ^/(.*) https://127.0.0.1:2078/$1 [P]
  705. #    RewriteCond %{HTTP_HOST} ^cpanel\.
  706. #    RewriteRule ^/(.*) http://127.0.0.1:2082/$1 [P]
  707. #    RewriteCond %{HTTP_HOST} ^webmail\.
  708. #    RewriteRule ^/(.*) http://127.0.0.1:2095/$1 [P]
  709. #    RewriteCond %{HTTP_HOST} ^whm\.
  710. #    RewriteRule ^/(.*) http://127.0.0.1:2086/$1 [P]
  711. #    RewriteCond %{HTTP_HOST} ^webdisk\.
  712. #    RewriteRule ^/(.*) http://127.0.0.1:2077/$1 [P]
  713. #
  714. #    RewriteCond %{HTTP_HOST} ^autodiscover\.
  715. #    RewriteRule ^[^?]*(\?.*)? http://127.0.0.1/cgi-sys/autodiscover.cgi [P]
  716. #    RewriteCond %{HTTP_HOST} ^autoconfig\.
  717. #    RewriteRule ^[^?]*(\?.*)? http://127.0.0.1/cgi-sys/autoconfig.cgi [P]
  718.  
  719.     UseCanonicalName Off
  720. </VirtualHost>
  721.  
  722.  
  723. Include "/usr/local/apache/conf/includes/post_virtualhost_global.conf"
  724. Include "/usr/local/apache/conf/includes/post_virtualhost_2.conf"
  725.  
  726.  
  727. # DO NOT EDIT. AUTOMATICALLY GENERATED.  IF YOU NEED TO MAKE A CHANGE PLEASE USE THE INCLUDE FILES.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement