kairok
(usa Slackware)
Enviado em 25/04/2009 - 14:51h
Segue abaixo a configuração:
Arquivo httpd-vhost.conf =>
NameVirtualHost *
<VirtualHost *>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order Allow,deny
Allow from all
</Directory>
<IfModule mod_proxy.c>
###############Portal###################
ProxyRequests off
ProxyPreserveHost On
ProxyPass /portal/
http://192.168.2.42:80/portal/
ProxyHTMLURLMap
http://192.168.2.42:80/portal/ /portal/
<Location />
ProxyPassReverse /
SetOutputFilter proxy-html
ProxyHTMLURLMap / /portal/
ProxyHTMLURLMap /portal /portal
RequestHeader unset Accept-Encoding
</Location>
<Directory /var/www/portal/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order Allow,deny
Allow from all
</Directory>
Redirect Permanent /portal/
http://192.168.2.55/portal/
###############Forum###################
ProxyRequests off
ProxyPreserveHost On
ProxyPass /forum/
http://192.168.2.42:80/forum/
ProxyHTMLURLMap
http://192.168.2.42:80/forum/ /forum/
<Location />
ProxyPassReverse /
SetOutputFilter proxy-html
ProxyHTMLURLMap / /forum/
ProxyHTMLURLMap /forum /forum
RequestHeader unset Accept-Encoding
</Location>
<Directory /var/www/forum/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order Allow,deny
Allow from all
</Directory>
Redirect Permanent /forum/
http://192.168.2.55:80/forum/
#############sisinfradev#####################
ProxyRequests off
ProxyPreserveHost On
ProxyPass /sisinfradev/
http://192.168.2.42:80/sisinfradev/
ProxyHTMLURLMap
http://192.168.2.42:80/sisinfradev/ /sisinfradev/
<Location />
ProxyPassReverse /
SetOutputFilter proxy-html
ProxyHTMLURLMap / /sisinfradev/
ProxyHTMLURLMap /sisinfradev /sisinfradev
RequestHeader unset Accept-Encoding
</Location>
<Directory /var/www/sisinfradev/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order Allow,deny
Allow from all
</Directory>
Redirect Permanent /sisinfradev/
http://192.168.2.55:80/sisinfradev/
RedirectMatch ^/$ /portal/
ProxyVia On
<IfModule mod_disk_cache.c>
CacheRoot "/usr/local/apache/proxy"
CacheSize 5
CacheGcInterval 4
CacheMaxExpire 24
CacheLastModifiedFactor 0.1
CacheDefaultExpire 1
</IfModule>
</IfModule>
</VirtualHost>
Arquivo httpd-ssl.conf =>
Listen 443
AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl .crl
SSLPassPhraseDialog builtin
SSLSessionCache "shmcb:/usr/local/apache2/logs/ssl_scache(512000)"
SSLSessionCacheTimeout 300
SSLMutex "file:/usr/local/apache2/logs/ssl_mutex"
NameVirtualHost *:443
<VirtualHost *:443>
DocumentRoot "/var/www"
#ServerName
www.example.com:443
ServerAdmin you@example.com
ErrorLog "/usr/local/apache2/logs/error_log"
TransferLog "/usr/local/apache2/logs/access_log"
SSLEngine on
SSLProxyEngine on
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile /usr/local/apache2/conf/cert_Dig/ca.crt
SSLCertificateKeyFile /usr/local/apache2/conf/cert_Dig/ca.key
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory "/usr/local/apache2/cgi-bin">
SSLOptions +StdEnvVars
</Directory>
BrowserMatch ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
CustomLog "/usr/local/apache2/logs/ssl_request_log" \
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
<IfModule mod_proxy.c>
ProxyRequests off
ProxyPreserveHost On
ProxyPass /owa/
https://192.168.2.44/owa/
ProxyHTMLURLMap
https://192.168.2.44/owa/ /owa/
AllowCONNECT 443
<Location />
ProxyPassReverse /
SetOutputFilter proxy-html
ProxyHTMLURLMap / /owa/
ProxyHTMLURLMap /owa /owa
RequestHeader unset Accept-Encoding
</Location>
<Directory /var/www/owa/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order Allow,deny
Allow from all
</Directory>
Redirect Permanent /owa/
https://192.168.2.55:443/owa/
</IfModule>
</VirtualHost>