This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<shared-cache-mode>ENABLE_SELECTIVE</shared-cache-mode> | |
<properties> | |
<property name="hibernate.cache.infinispan.statistics" value="true"/> | |
<property name="hibernate.cache.use_second_level_cache" value="true"/> | |
<property name="hibernate.cache.use_minimal_puts" value="true"/> | |
<property name="hibernate.cache.infinispan.entity.eviction.strategy" value= "LRU"/> | |
<property name="hibernate.cache.infinispan.entity.eviction.wake_up_interval" value= "2000"/> | |
<property name="hibernate.cache.infinispan.entity.eviction.max_entries" value= "6000"/> | |
<property name="hibernate.cache.infinispan.entity.expiration.lifespan" value= "60000"/> | |
<property name="hibernate.cache.infinispan.entity.expiration.max_idle" value= "30000"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In your datasource section define background validation: | |
<validation> | |
<check-valid-connection-sql>select 1 from dual</check-valid-connection-sql> | |
<background-validation>true</background-validation> | |
<validate-on-match>false</validate-on-match> | |
<background-validation-millis>15000</background-validation-millis> | |
</validation> | |
Or with validate on match: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Read password from terminal without showing it | |
# read -s disables echo | |
echo -n "Enter your password: " | |
read -s password | |
# Show the password | |
echo -e "\nThe password you entered before -> $password" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In standalone-ha.xml: | |
<subsystem xmlns="urn:jboss:domain:jgroups:1.1" default-stack="tcp"> | |
<stack name="udp"> | |
... | |
</stack> | |
<stack name="tcp"> | |
<transport type="TCP" socket-binding="jgroups-tcp" diagnostics-socket-binding="jgroups-diagnostics"/> | |
<protocol type="TCPPING"> | |
<property name="initial_hosts">192.168.2.101[7600],192.168.2.102[7600]</property> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# VirtualHosting based on IP | |
Listen 80 | |
# Site 1 | |
<VirtualHost 192.168.2.101:80> | |
DocumentRoot "/var/www/html/site1" | |
ServerName www.site1.com | |
</VirtualHost> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# VirtualHosting based on ports | |
Listen 80 | |
Listen 81 | |
Listen 82 | |
Listen 83 | |
# Site 1 | |
<VirtualHost *:80> | |
DocumentRoot "/var/www/html/site1" | |
ServerName www.site1.com | |
</VirtualHost> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Name based Virtual Hosting | |
Listen 80 | |
# Site 1 | |
<VirtualHost *:80> | |
DocumentRoot "/var/www/html/site1" | |
ServerName www.site1.com | |
</VirtualHost> | |
# Site 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Comprimir un fichero access_log | |
gzip access_log | |
#Comprimir varios ficheros: access_log, error_log y ssl_access | |
gzip access_log error_log ssl_access | |
#Comprimir al máximo un fichero access_log (gzip admite 9 niveles de compresión) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# --------------------------------------------------- | |
# CRAWLERS/BOTS NOT ALLOWED | |
# --------------------------------------------------- | |
# Digg Mirror (Blocks Digg crawler) | |
User-agent: duggmirror | |
Disallow: / | |
# Alexa archiver | |
User-agent: ia_archiver |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Fail2Ban apache-auth filter | |
# | |
[INCLUDES] | |
# Read common prefixes. If any customizations available -- read them from | |
# apache-common.local | |
before = apache-common.conf | |
[Definition] |