Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NameVirtualHost *:80
- NameVirtualHost *:443
- <VirtualHost *:80>
- ServerAdmin mail@domaina.com
- DocumentRoot /home/www/html/domaina.com
- ServerName www.domaina.com
- ServerAlias *.domaina.com
- ScriptAlias /cgi-bin/ "/home/www/html/domaina.com/cgi-bin/"
- RewriteEngine On
- RewriteOptions Inherit
- ErrorLog /home/log/domaina.com-error_log
- CustomLog /home/log/domaina.com-access_log common
- </VirtualHost>
- <VirtualHost *:443>
- SSLEngine on
- SSLCertificateFile /etc/pki/tls/certs/ca.crt
- SSLCertificateKeyFile /etc/pki/tls/private/ca.key
- ServerAdmin mail@domaina.com
- DocumentRoot /home/www/html/domaina.com
- ServerName www.domaina.com
- ServerAlias *.domaina.com
- ScriptAlias /cgi-bin/ "/home/www/html/domaina.com/cgi-bin/"
- RewriteEngine On
- RewriteOptions Inherit
- ErrorLog /home/log/domaina.com-error_log
- CustomLog /home/log/domaina.com-access_log common
- </VirtualHost>
- <VirtualHost *:80>
- ServerAdmin mail@domainb.com
- DocumentRoot /home/www/html/domainb.com
- ServerName www.domainb.com
- ServerAlias *.domainb.com
- ScriptAlias /cgi-bin/ "/home/www/html/domainb.com/cgi-bin/"
- RewriteEngine On
- RewriteOptions Inherit
- ErrorLog /home/log/domainb.com-error_log
- CustomLog /home/log/domainb.com-access_log common
- </VirtualHost>
- <VirtualHost *:443>
- SSLEngine on
- SSLCertificateFile /etc/pki/tls/certs/ca.crt
- SSLCertificateKeyFile /etc/pki/tls/private/ca.key
- ServerAdmin mail@domainb.com
- DocumentRoot /home/www/html/domainb.com
- ServerName www.domainb.com
- ServerAlias *.domainb.com
- ScriptAlias /cgi-bin/ "/home/www/html/domainb.com/cgi-bin/"
- RewriteEngine On
- RewriteOptions Inherit
- ErrorLog /home/log/domainb.com-error_log
- CustomLog /home/log/domainb.com-access_log common
- </VirtualHost>
- <VirtualHost *:80>
- ServerAdmin mail@domainc.com
- DocumentRoot /home/www/html/domainc.com
- ServerName www.domainc.com
- ServerAlias *.domainc.com
- ScriptAlias /cgi-bin/ "/home/www/html/domainc.com/cgi-bin/"
- RewriteEngine On
- RewriteOptions Inherit
- ErrorLog /home/log/domainc.com-error_log
- CustomLog /home/log/domainc.com-access_log common
- </VirtualHost>
- <VirtualHost *:443>
- SSLEngine on
- SSLCertificateFile /etc/pki/tls/certs/ca.crt
- SSLCertificateKeyFile /etc/pki/tls/private/ca.key
- ServerAdmin mail@domainc.com
- DocumentRoot /home/www/html/domainc.com
- ServerName www.domainc.com
- ServerAlias *.domainc.com
- ScriptAlias /cgi-bin/ "/home/www/html/domainc.com/cgi-bin/"
- RewriteEngine On
- RewriteOptions Inherit
- ErrorLog /home/log/domainc.com-error_log
- CustomLog /home/log/domainc.com-access_log common
- </VirtualHost>
- <IfModule mod_proxy.c>
- #turning ProxyRequests on and allowing proxying from all may allow
- #spammers to use your proxy to send email.
- ProxyRequests Off
- <Proxy *>
- AddDefaultCharset off
- Order deny,allow
- Allow from all
- </Proxy>
- # Enable/disable the handling of HTTP/1.1 "Via:" headers.
- # ("Full" adds the server version; "Block" removes all outgoing Via: headers)
- # Set to one of: Off | On | Full | Block
- ProxyVia On
- </IfModule>
- NameVirtualHost *:80
- <VirtualHost *:80>
- ServerAdmin mail@domainc.com
- ServerName www.domainc.com
- ErrorLog logs/domainc.com-error_log
- CustomLog logs/domainc.com-access_log common
- ProxyRequests Off
- ProxyPreserveHost On
- ProxyPass / http://[IP of server 1]:80/
- ProxyPassReverse / http://[IP of server 1]:80/
- </VirtualHost>
- ProxyPreserveHost On
- ssh host2 sed -i~ '
- /Proxy/s/[IP of server 1]/[hostname of server 1]/
- ' /etc/httpd/conf/httpd.conf
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement