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-modsec filter | |
# | |
[INCLUDES] | |
# Read common prefixes. If any customizations available -- read them from | |
# apache-common.local | |
before = apache-common.conf | |
[Definition] |
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
# Debian main repos | |
deb http://ftp.es.debian.org/debian/ jessie main contrib non-free | |
deb-src http://ftp.es.debian.org/debian/ jessie main | |
# Debian security repos | |
deb http://security.debian.org/ jessie/updates main contrib non-free | |
deb-src http://security.debian.org/ jessie/updates main contrib non-free | |
# Debian jessie-updates, previously known as 'volatile' | |
deb http://ftp.es.debian.org/debian/ jessie-updates main contrib non-free |
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] |
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
#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
# 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
# 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
# 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
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
#!/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" |
OlderNewer