Advertisement
krzyzak

httpd_otrs

Dec 11th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 4.67 KB | None | 0 0
  1. >> apachectl -S
  2. VirtualHost configuration:
  3. 127.0.0.1:80           is a NameVirtualHost
  4.          default server help.my-domain.eu (/etc/httpd/conf/httpd.conf:95)
  5.          port 80 namevhost help.my-domain.eu (/etc/httpd/conf/httpd.conf:95)
  6.                  alias helpdesk.my-domain.eu
  7.          port 80 namevhost my-domain.eu (/etc/httpd/conf/httpd.conf:138)
  8.                  alias www.my-domain.eu
  9. ServerRoot: "/etc/httpd"
  10. Main DocumentRoot: "/var/www/html"
  11. Main ErrorLog: "/etc/httpd/logs/error_log"
  12. Mutex fcgid-proctbl: using_defaults
  13. Mutex ssl-stapling: using_defaults
  14. Mutex proxy: using_defaults
  15. Mutex authn-socache: using_defaults
  16. Mutex ssl-cache: using_defaults
  17. Mutex default: dir="/run/httpd/" mechanism=default
  18. Mutex mpm-accept: using_defaults
  19. Mutex fcgid-pipe: using_defaults
  20. Mutex authdigest-opaque: using_defaults
  21. Mutex proxy-balancer-shm: using_defaults
  22. Mutex rewrite-map: using_defaults
  23. Mutex authdigest-client: using_defaults
  24. PidFile: "/run/httpd/httpd.pid"
  25. Define: _RH_HAS_HTTPPROTOCOLOPTIONS
  26. Define: DUMP_VHOSTS
  27. Define: DUMP_RUN_CFG
  28. User: name="apache" id=48
  29. Group: name="apache" id=48
  30.  
  31. >> httpd.conf
  32.  
  33. #Listen 80
  34.  
  35. ServerRoot "/etc/httpd"
  36.  
  37. Include conf.modules.d/*.conf
  38.  
  39. User apache
  40. Group apache
  41.  
  42. <Directory />
  43.     AllowOverride none
  44.     Require all denied
  45. </Directory>
  46.  
  47. DocumentRoot "/var/www/html"
  48.  
  49. <Directory "/var/www">
  50.     AllowOverride None
  51.     # Allow open access:
  52.     Require all granted
  53. </Directory>
  54.  
  55. <Directory "/var/www/html">
  56.          Options Indexes FollowSymLinks
  57.          AllowOverride None
  58.          Require all granted
  59. </Directory>
  60.  
  61. <IfModule dir_module>
  62.     DirectoryIndex index.html
  63. </IfModule>
  64.  
  65. <Files ".ht*">
  66.     Require all denied
  67. </Files>
  68.  
  69. ErrorLog "logs/error_log"
  70. LogLevel warn
  71.  
  72. <IfModule log_config_module>
  73.  LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  74.     LogFormat "%h %l %u %t \"%r\" %>s %b" common
  75.  
  76.  
  77. <IfModule logio_module>
  78.       # You need to enable mod_logio.c to use %I and %O
  79.       LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
  80.     </IfModule>
  81.  
  82.  CustomLog "logs/access_log" combined
  83. </IfModule>
  84.  
  85. <IfModule alias_module>
  86.     ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
  87.  
  88. </IfModule>
  89.  
  90. <Directory "/var/www/cgi-bin">
  91.     AllowOverride None
  92.     Options None
  93.     Require all granted
  94. </Directory>
  95.  
  96. <IfModule mime_module>
  97.     #
  98.     # TypesConfig points to the file containing the list of mappings from
  99.     # filename extension to MIME-type.
  100.     #
  101.     TypesConfig /etc/mime.types
  102.  
  103.  AddType application/x-compress .Z
  104.     AddType application/x-gzip .gz .tgz
  105.  AddType text/html .shtml
  106.     AddOutputFilter INCLUDES .shtml
  107. </IfModule>
  108.  
  109. AddDefaultCharset UTF-8
  110.  
  111. <IfModule mime_magic_module>
  112.     MIMEMagicFile conf/magic
  113. </IfModule>
  114.  
  115. EnableSendfile on
  116.  
  117. # Supplemental configuration
  118. #
  119. # Load config files in the "/etc/httpd/conf.d" directory, if any.
  120. IncludeOptional conf.d/*.conf
  121. SSLProtocol ALL -SSLv2 -SSLv3
  122. SSLCipherSuite HIGH:!SSLv2:!ADH:!aNULL:!eNULL:!NULL
  123. ServerTokens Minimal
  124. ServerSignature Off
  125. TraceEnable Off
  126.  
  127.  
  128. <VirtualHost help.my-domain.eu:80>
  129.         ServerName help.my-domain.eu
  130.         ServerAlias helpdesk.my-domain.eu
  131.         LogLevel warn
  132.         ErrorLog /var/log/httpd/pomoc.my-domain.eu.err
  133.  
  134. DocumentRoot /home/helpdesk/public_html
  135. ErrorLog /var/log/virtualmin/helpdesk.kfam.local_error_log
  136. CustomLog /var/log/virtualmin/helpdesk.kfam.local_access_log combined
  137. ScriptAlias /cgi-bin/ /home/helpdesk/cgi-bin/
  138. DirectoryIndex index.html index.htm index.php index.php4 index.php5
  139. <Directory /home/helpdesk/public_html>
  140. Options -Indexes +IncludesNOEXEC +SymLinksIfOwnerMatch +ExecCGI
  141. allow from all
  142. AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
  143. Require all granted
  144. AddType application/x-httpd-php .php
  145. AddHandler fcgid-script .php
  146. AddHandler fcgid-script .php5
  147. AddHandler fcgid-script .php7.0
  148. FCGIWrapper /home/helpdesk/fcgi-bin/php7.0.fcgi .php
  149. FCGIWrapper /home/helpdesk/fcgi-bin/php5.fcgi .php5
  150. FCGIWrapper /home/helpdesk/fcgi-bin/php7.0.fcgi .php7.0
  151. </Directory>
  152. RewriteEngine on
  153. RewriteCond %{HTTP_HOST} =help.my-domain.eu:8081/
  154. RewriteRule ^(.*) http://help.my-domain.eu:8081/otrs/index.pl [R]
  155. RemoveHandler .php
  156. RemoveHandler .php5
  157. RemoveHandler .php7.0
  158. php_admin_value engine Off
  159. FcgidMaxRequestLen 1073741824
  160. </VirtualHost>
  161.  
  162. <VirtualHost my-domain.eu:80>
  163.         ServerName my-domain.eu
  164.         ServerAlias www.my-domain.eu
  165.  
  166.         LogLevel warn
  167.         ErrorLog /var/log/httpd/my-domain.eu.err
  168.         ProxyPreserveHost On
  169.         ProxyPass / http://localhost:8069/
  170.         ProxyPassReverse / http://localhost:8069/
  171. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement