Advertisement
Pandar

Untitled

Dec 21st, 2016
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.80 KB | None | 0 0
  1. apache2.conf
  2.  
  3. # This is the main Apache server configuration file. It contains the
  4. # configuration directives that give the server its instructions.
  5. # See http://httpd.apache.org/docs/2.4/ for detailed information about
  6. # the directives and /usr/share/doc/apache2/README.Debian about Debian specific
  7. # hints.
  8. #
  9. #
  10. # Summary of how the Apache 2 configuration works in Debian:
  11. # The Apache 2 web server configuration in Debian is quite different to
  12. # upstream's suggested way to configure the web server. This is because Debian's
  13. # default Apache2 installation attempts to make adding and removing modules,
  14. # virtual hosts, and extra configuration directives as flexible as possible, in
  15. # order to make automating the changes and administering the server as easy as
  16. # possible.
  17.  
  18. # It is split into several files forming the configuration hierarchy outlined
  19. # below, all located in the /etc/apache2/ directory:
  20. #
  21. # /etc/apache2/
  22. # |-- apache2.conf
  23. # | `-- ports.conf
  24. # |-- mods-enabled
  25. # | |-- *.load
  26. # | `-- *.conf
  27. # |-- conf-enabled
  28. # | `-- *.conf
  29. # `-- sites-enabled
  30. # `-- *.conf
  31. #
  32. #
  33. # * apache2.conf is the main configuration file (this file). It puts the pieces
  34. # together by including all remaining configuration files when starting up the
  35. # web server.
  36. #
  37. # * ports.conf is always included from the main configuration file. It is
  38. # supposed to determine listening ports for incoming connections which can be
  39. # customized anytime.
  40. #
  41. # * Configuration files in the mods-enabled/, conf-enabled/ and sites-enabled/
  42. # directories contain particular configuration snippets which manage modules,
  43. # global configuration fragments, or virtual host configurations,
  44. # respectively.
  45. #
  46. # They are activated by symlinking available configuration files from their
  47. # respective *-available/ counterparts. These should be managed by using our
  48. # helpers a2enmod/a2dismod, a2ensite/a2dissite and a2enconf/a2disconf. See
  49. # their respective man pages for detailed information.
  50. #
  51. # * The binary is called apache2. Due to the use of environment variables, in
  52. # the default configuration, apache2 needs to be started/stopped with
  53. # /etc/init.d/apache2 or apache2ctl. Calling /usr/bin/apache2 directly will not
  54. # work with the default configuration.
  55.  
  56.  
  57. # Global configuration
  58. #
  59.  
  60. #
  61. # ServerRoot: The top of the directory tree under which the server's
  62. # configuration, error, and log files are kept.
  63. #
  64. # NOTE! If you intend to place this on an NFS (or otherwise network)
  65. # mounted filesystem then please read the Mutex documentation (available
  66. # at <URL:http://httpd.apache.org/docs/2.4/mod/core.html#mutex>);
  67. # you will save yourself a lot of trouble.
  68. #
  69. # Do NOT add a slash at the end of the directory path.
  70. #
  71. #ServerRoot "/etc/apache2"
  72.  
  73. #
  74. # The accept serialization lock file MUST BE STORED ON A LOCAL DISK.
  75. #
  76. Mutex file:${APACHE_LOCK_DIR} default
  77.  
  78. #
  79. # PidFile: The file in which the server should record its process
  80. # identification number when it starts.
  81. # This needs to be set in /etc/apache2/envvars
  82. #
  83. PidFile ${APACHE_PID_FILE}
  84.  
  85. #
  86. # Timeout: The number of seconds before receives and sends time out.
  87. #
  88. Timeout 300
  89.  
  90. #
  91. # KeepAlive: Whether or not to allow persistent connections (more than
  92. # one request per connection). Set to "Off" to deactivate.
  93. #
  94. KeepAlive On
  95.  
  96. #
  97. # MaxKeepAliveRequests: The maximum number of requests to allow
  98. # during a persistent connection. Set to 0 to allow an unlimited amount.
  99. # We recommend you leave this number high, for maximum performance.
  100. #
  101. MaxKeepAliveRequests 100
  102.  
  103. #
  104. # KeepAliveTimeout: Number of seconds to wait for the next request from the
  105. # same client on the same connection.
  106. #
  107. KeepAliveTimeout 5
  108.  
  109.  
  110. # These need to be set in /etc/apache2/envvars
  111. User ${APACHE_RUN_USER}
  112. Group ${APACHE_RUN_GROUP}
  113.  
  114. #
  115. # HostnameLookups: Log the names of clients or just their IP addresses
  116. # e.g., www.apache.org (on) or 204.62.129.132 (off).
  117. # The default is off because it'd be overall better for the net if people
  118. # had to knowingly turn this feature on, since enabling it means that
  119. # each client request will result in AT LEAST one lookup request to the
  120. # nameserver.
  121. #
  122. HostnameLookups Off
  123.  
  124. # ErrorLog: The location of the error log file.
  125. # If you do not specify an ErrorLog directive within a <VirtualHost>
  126. # container, error messages relating to that virtual host will be
  127. # logged here. If you *do* define an error logfile for a <VirtualHost>
  128. # container, that host's errors will be logged there and not here.
  129. #
  130. ErrorLog ${APACHE_LOG_DIR}/error.log
  131.  
  132. #
  133. # LogLevel: Control the severity of messages logged to the error_log.
  134. # Available values: trace8, ..., trace1, debug, info, notice, warn,
  135. # error, crit, alert, emerg.
  136. # It is also possible to configure the log level for particular modules, e.g.
  137. # "LogLevel info ssl:warn"
  138. #
  139. LogLevel warn
  140.  
  141. # Include module configuration:
  142. IncludeOptional mods-enabled/*.load
  143. IncludeOptional mods-enabled/*.conf
  144.  
  145. # Include list of ports to listen on
  146. Include ports.conf
  147.  
  148.  
  149. # Sets the default security model of the Apache2 HTTPD server. It does
  150. # not allow access to the root filesystem outside of /usr/share and /var/www.
  151. # The former is used by web applications packaged in Debian,
  152. # the latter may be used for local directories served by the web server. If
  153. # your system is serving content from a sub-directory in /srv you must allow
  154. # access here, or in any related virtual host.
  155. <Directory />
  156. Options FollowSymLinks
  157. AllowOverride None
  158. Require all denied
  159. </Directory>
  160.  
  161. <Directory /usr/share>
  162. AllowOverride None
  163. Require all granted
  164. </Directory>
  165.  
  166. <Directory /var/www/>
  167. Options Indexes FollowSymLinks
  168. AllowOverride None
  169. Require all granted
  170. </Directory>
  171.  
  172. #<Directory /srv/>
  173. # Options Indexes FollowSymLinks
  174. # AllowOverride None
  175. # Require all granted
  176. #</Directory>
  177.  
  178.  
  179.  
  180.  
  181. # AccessFileName: The name of the file to look for in each directory
  182. # for additional configuration directives. See also the AllowOverride
  183. # directive.
  184. #
  185. AccessFileName .htaccess
  186.  
  187. #
  188. # The following lines prevent .htaccess and .htpasswd files from being
  189. # viewed by Web clients.
  190. #
  191. <FilesMatch "^\.ht">
  192. Require all denied
  193. </FilesMatch>
  194.  
  195.  
  196. #
  197. # The following directives define some format nicknames for use with
  198. # a CustomLog directive.
  199. #
  200. # These deviate from the Common Log Format definitions in that they use %O
  201. # (the actual bytes sent including headers) instead of %b (the size of the
  202. # requested file), because the latter makes it impossible to detect partial
  203. # requests.
  204. #
  205. # Note that the use of %{X-Forwarded-For}i instead of %h is not recommended.
  206. # Use mod_remoteip instead.
  207. #
  208. LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
  209. LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
  210. LogFormat "%h %l %u %t \"%r\" %>s %O" common
  211. LogFormat "%{Referer}i -> %U" referer
  212. LogFormat "%{User-agent}i" agent
  213.  
  214. # Include of directories ignores editors' and dpkg's backup files,
  215. # see README.Debian for details.
  216.  
  217. # Include generic snippets of statements
  218. IncludeOptional conf-enabled/*.conf
  219.  
  220. # Include the virtual host configurations:
  221. IncludeOptional sites-enabled/*.conf
  222.  
  223. # vim: syntax=apache ts=4 sw=4 sts=4 sr noet
  224. GracefulShutDownTimeout 3
  225. AddOutputFilter INCLUDES .shtml
  226. AddType text/html .shtml
  227. AddType application/x-httpd-php .php
  228. AddType application/x-httpd-php-source .phps
  229.  
  230.  
  231.  
  232. server.conf
  233.  
  234. #ATTENTION!
  235. #
  236. #DO NOT MODIFY THIS FILE BECAUSE IT WAS GENERATED AUTOMATICALLY,
  237. #SO ALL YOUR CHANGES WILL BE LOST THE NEXT TIME THE FILE IS GENERATED.
  238.  
  239. ServerName "ns509291.ip-167-114-100.net"
  240. ServerAdmin "hotpotsoup@gmail.com"
  241.  
  242. DocumentRoot "/var/www/vhosts/default/htdocs"
  243.  
  244. <IfModule mod_logio.c>
  245. LogFormat "%a %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" plesklog
  246. </IfModule>
  247. <IfModule !mod_logio.c>
  248. LogFormat "%a %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" plesklog
  249. </IfModule>
  250.  
  251. TraceEnable off
  252.  
  253. ServerTokens ProductOnly
  254.  
  255. <Directory "/var/www/vhosts">
  256. AllowOverride "All"
  257. Options SymLinksIfOwnerMatch
  258. Require all granted
  259. Order allow,deny
  260. Allow from all
  261.  
  262. <IfModule mod_php4.c>
  263. php_admin_flag engine off
  264. </IfModule>
  265.  
  266. <IfModule mod_php5.c>
  267. php_admin_flag engine off
  268. </IfModule>
  269.  
  270. </Directory>
  271.  
  272. <Directory "/usr/lib/mailman">
  273. AllowOverride All
  274. Options SymLinksIfOwnerMatch
  275. Require all granted
  276. <IfModule mod_php4.c>
  277. php_admin_flag engine off
  278. </IfModule>
  279. <IfModule mod_php5.c>
  280. php_admin_flag engine off
  281. </IfModule>
  282. </Directory>
  283.  
  284. <IfModule mod_headers.c>
  285. Header add X-Powered-By PleskLin
  286. </IfModule>
  287.  
  288. <IfModule mod_security2.c>
  289. </IfModule>
  290.  
  291. IncludeOptional "/etc/apache2/plesk.conf.d/ip_default/*.conf"
  292.  
  293. <VirtualHost 167.114.100.27:7080 [2607:5300:60:671b::]:7080 127.0.0.1:7080>
  294. ServerName "default"
  295. UseCanonicalName Off
  296. DocumentRoot "/var/www/vhosts/default/htdocs"
  297. ScriptAlias /cgi-bin/ "/var/www/vhosts/default/cgi-bin"
  298.  
  299. <IfModule mod_ssl.c>
  300. SSLEngine off
  301. </IfModule>
  302.  
  303. <Directory "/var/www/vhosts/default/cgi-bin">
  304. AllowOverride None
  305. Options None
  306. Order allow,deny
  307. Allow from all
  308. </Directory>
  309.  
  310. <Directory /var/www/vhosts/default/htdocs>
  311.  
  312. <IfModule mod_php4.c>
  313. php_admin_flag engine on
  314. </IfModule>
  315.  
  316. <IfModule mod_php5.c>
  317. php_admin_flag engine on
  318. </IfModule>
  319.  
  320. </Directory>
  321.  
  322. </VirtualHost>
  323.  
  324. <IfModule mod_ssl.c>
  325.  
  326. <VirtualHost 167.114.100.27:7081 127.0.0.1:7081>
  327. ServerName "default-167_114_100_27"
  328. UseCanonicalName Off
  329. DocumentRoot "/var/www/vhosts/default/htdocs"
  330. ScriptAlias /cgi-bin/ "/var/www/vhosts/default/cgi-bin"
  331.  
  332. SSLEngine on
  333. SSLVerifyClient none
  334. SSLCertificateFile "/opt/psa/var/certificates/certwYihPY8"
  335.  
  336. <Directory "/var/www/vhosts/default/cgi-bin">
  337. AllowOverride None
  338. Options None
  339. Order allow,deny
  340. Allow from all
  341. </Directory>
  342.  
  343. <Directory /var/www/vhosts/default/htdocs>
  344.  
  345. <IfModule mod_php4.c>
  346. php_admin_flag engine on
  347. </IfModule>
  348.  
  349. <IfModule mod_php5.c>
  350. php_admin_flag engine on
  351. </IfModule>
  352.  
  353. </Directory>
  354.  
  355. </VirtualHost>
  356. <VirtualHost [2607:5300:60:671b::]:7081 127.0.0.1:7081>
  357. ServerName "default-2607_5300_60_671b__"
  358. UseCanonicalName Off
  359. DocumentRoot "/var/www/vhosts/default/htdocs"
  360. ScriptAlias /cgi-bin/ "/var/www/vhosts/default/cgi-bin"
  361.  
  362. SSLEngine on
  363. SSLVerifyClient none
  364. SSLCertificateFile "/opt/psa/var/certificates/certwYihPY8"
  365.  
  366. <Directory "/var/www/vhosts/default/cgi-bin">
  367. AllowOverride None
  368. Options None
  369. Order allow,deny
  370. Allow from all
  371. </Directory>
  372.  
  373. <Directory /var/www/vhosts/default/htdocs>
  374.  
  375. <IfModule mod_php4.c>
  376. php_admin_flag engine on
  377. </IfModule>
  378.  
  379. <IfModule mod_php5.c>
  380. php_admin_flag engine on
  381. </IfModule>
  382.  
  383. </Directory>
  384.  
  385. </VirtualHost>
  386.  
  387. </IfModule>
  388.  
  389. <VirtualHost 167.114.100.27:7080 [2607:5300:60:671b::]:7080 127.0.0.1:7080>
  390. DocumentRoot "/var/www/vhosts/default/htdocs"
  391. ServerName lists
  392. ServerAlias lists.*
  393. UseCanonicalName Off
  394.  
  395. ScriptAlias "/mailman/" "/usr/lib/cgi-bin/mailman/"
  396. ScriptAlias "/cgi-bin/mailman/" "/usr/lib/cgi-bin/mailman/"
  397.  
  398. Alias "/icons/" "/var/lib/mailman/icons/"
  399. Alias "/pipermail/" "/var/lib/mailman/archives/public/"
  400. Alias "/images/" "/usr/share/images/"
  401.  
  402. <IfModule mod_ssl.c>
  403. SSLEngine off
  404. </IfModule>
  405.  
  406. <Directory /var/lib/mailman/archives/>
  407. Options FollowSymLinks
  408. Require all granted
  409. </Directory>
  410.  
  411. </VirtualHost>
  412.  
  413. <IfModule mod_ssl.c>
  414. <VirtualHost 167.114.100.27:7081 [2607:5300:60:671b::]:7081 127.0.0.1:7081>
  415. DocumentRoot "/var/www/vhosts/default/htdocs"
  416. ServerName lists
  417. ServerAlias lists.*
  418. UseCanonicalName Off
  419.  
  420. ScriptAlias "/mailman/" "/usr/lib/cgi-bin/mailman/"
  421. ScriptAlias "/cgi-bin/mailman/" "/usr/lib/cgi-bin/mailman/"
  422.  
  423. Alias "/icons/" "/var/lib/mailman/icons/"
  424. Alias "/pipermail/" "/var/lib/mailman/archives/public/"
  425. Alias "/images/" "/usr/share/images/"
  426.  
  427. SSLEngine on
  428. SSLVerifyClient none
  429. SSLCertificateFile "/opt/psa/var/certificates/certwYihPY8"
  430.  
  431. <Directory /var/lib/mailman/archives/>
  432. Options FollowSymLinks
  433. Require all granted
  434. </Directory>
  435.  
  436. </VirtualHost>
  437. </IfModule>
  438.  
  439. <IfModule mod_rpaf.c>
  440. RPAFproxy_ips 167.114.100.27 [2607:5300:60:671b::]
  441.  
  442. </IfModule>
  443. <IfModule mod_rpaf-2.0.c>
  444. RPAFproxy_ips 167.114.100.27 [2607:5300:60:671b::]
  445.  
  446. </IfModule>
  447. <IfModule mod_remoteip.c>
  448. RemoteIPInternalProxy 167.114.100.27 2607:5300:60:671b::
  449. RemoteIPHeader X-Forwarded-For
  450. </IfModule>
  451.  
  452.  
  453. zz010psa
  454.  
  455. #ATTENTION!
  456. #
  457. #DO NOT MODIFY THIS FILE BECAUSE IT WAS GENERATED AUTOMATICALLY,
  458. #SO ALL YOUR CHANGES WILL BE LOST THE NEXT TIME THE FILE IS GENERATED.
  459. Include '/etc/apache2/plesk.conf.d/server.conf'
  460. Include '/etc/apache2/plesk.conf.d/horde.conf'
  461. IncludeOptional '/etc/apache2/plesk.conf.d/vhosts/*.conf'
  462. IncludeOptional '/etc/apache2/plesk.conf.d/forwarding/*.conf'
  463. IncludeOptional '/etc/apache2/plesk.conf.d/wildcards/*.conf'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement