Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >> apachectl -S
- VirtualHost configuration:
- 127.0.0.1:80 is a NameVirtualHost
- default server help.my-domain.eu (/etc/httpd/conf/httpd.conf:95)
- port 80 namevhost help.my-domain.eu (/etc/httpd/conf/httpd.conf:95)
- alias helpdesk.my-domain.eu
- port 80 namevhost my-domain.eu (/etc/httpd/conf/httpd.conf:138)
- alias www.my-domain.eu
- ServerRoot: "/etc/httpd"
- Main DocumentRoot: "/var/www/html"
- Main ErrorLog: "/etc/httpd/logs/error_log"
- Mutex fcgid-proctbl: using_defaults
- Mutex ssl-stapling: using_defaults
- Mutex proxy: using_defaults
- Mutex authn-socache: using_defaults
- Mutex ssl-cache: using_defaults
- Mutex default: dir="/run/httpd/" mechanism=default
- Mutex mpm-accept: using_defaults
- Mutex fcgid-pipe: using_defaults
- Mutex authdigest-opaque: using_defaults
- Mutex proxy-balancer-shm: using_defaults
- Mutex rewrite-map: using_defaults
- Mutex authdigest-client: using_defaults
- PidFile: "/run/httpd/httpd.pid"
- Define: _RH_HAS_HTTPPROTOCOLOPTIONS
- Define: DUMP_VHOSTS
- Define: DUMP_RUN_CFG
- User: name="apache" id=48
- Group: name="apache" id=48
- >> httpd.conf
- #Listen 80
- ServerRoot "/etc/httpd"
- Include conf.modules.d/*.conf
- User apache
- Group apache
- <Directory />
- AllowOverride none
- Require all denied
- </Directory>
- DocumentRoot "/var/www/html"
- <Directory "/var/www">
- AllowOverride None
- # Allow open access:
- Require all granted
- </Directory>
- <Directory "/var/www/html">
- Options Indexes FollowSymLinks
- AllowOverride None
- Require all granted
- </Directory>
- <IfModule dir_module>
- DirectoryIndex index.html
- </IfModule>
- <Files ".ht*">
- Require all denied
- </Files>
- ErrorLog "logs/error_log"
- LogLevel warn
- <IfModule log_config_module>
- LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
- LogFormat "%h %l %u %t \"%r\" %>s %b" common
- <IfModule logio_module>
- # You need to enable mod_logio.c to use %I and %O
- LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
- </IfModule>
- CustomLog "logs/access_log" combined
- </IfModule>
- <IfModule alias_module>
- ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
- </IfModule>
- <Directory "/var/www/cgi-bin">
- AllowOverride None
- Options None
- Require all granted
- </Directory>
- <IfModule mime_module>
- #
- # TypesConfig points to the file containing the list of mappings from
- # filename extension to MIME-type.
- #
- TypesConfig /etc/mime.types
- AddType application/x-compress .Z
- AddType application/x-gzip .gz .tgz
- AddType text/html .shtml
- AddOutputFilter INCLUDES .shtml
- </IfModule>
- AddDefaultCharset UTF-8
- <IfModule mime_magic_module>
- MIMEMagicFile conf/magic
- </IfModule>
- EnableSendfile on
- # Supplemental configuration
- #
- # Load config files in the "/etc/httpd/conf.d" directory, if any.
- IncludeOptional conf.d/*.conf
- SSLProtocol ALL -SSLv2 -SSLv3
- SSLCipherSuite HIGH:!SSLv2:!ADH:!aNULL:!eNULL:!NULL
- ServerTokens Minimal
- ServerSignature Off
- TraceEnable Off
- <VirtualHost help.my-domain.eu:80>
- ServerName help.my-domain.eu
- ServerAlias helpdesk.my-domain.eu
- LogLevel warn
- ErrorLog /var/log/httpd/pomoc.my-domain.eu.err
- DocumentRoot /home/helpdesk/public_html
- ErrorLog /var/log/virtualmin/helpdesk.kfam.local_error_log
- CustomLog /var/log/virtualmin/helpdesk.kfam.local_access_log combined
- ScriptAlias /cgi-bin/ /home/helpdesk/cgi-bin/
- DirectoryIndex index.html index.htm index.php index.php4 index.php5
- <Directory /home/helpdesk/public_html>
- Options -Indexes +IncludesNOEXEC +SymLinksIfOwnerMatch +ExecCGI
- allow from all
- AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
- Require all granted
- AddType application/x-httpd-php .php
- AddHandler fcgid-script .php
- AddHandler fcgid-script .php5
- AddHandler fcgid-script .php7.0
- FCGIWrapper /home/helpdesk/fcgi-bin/php7.0.fcgi .php
- FCGIWrapper /home/helpdesk/fcgi-bin/php5.fcgi .php5
- FCGIWrapper /home/helpdesk/fcgi-bin/php7.0.fcgi .php7.0
- </Directory>
- RewriteEngine on
- RewriteCond %{HTTP_HOST} =help.my-domain.eu:8081/
- RewriteRule ^(.*) http://help.my-domain.eu:8081/otrs/index.pl [R]
- RemoveHandler .php
- RemoveHandler .php5
- RemoveHandler .php7.0
- php_admin_value engine Off
- FcgidMaxRequestLen 1073741824
- </VirtualHost>
- <VirtualHost my-domain.eu:80>
- ServerName my-domain.eu
- ServerAlias www.my-domain.eu
- LogLevel warn
- ErrorLog /var/log/httpd/my-domain.eu.err
- ProxyPreserveHost On
- ProxyPass / http://localhost:8069/
- ProxyPassReverse / http://localhost:8069/
- </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement