jueves, 4 de febrero de 2010

PROXY REVERSO APACHE ATRAS IIS


ServerName COLOCAR URL
DocumentRoot /var/www/XXXX/
ServerAdmin Direccion_de_correo

#Conf. https
SSLEngine on
SSLCipherSuite HIGH:MEDIUM
SSLProtocol all -SSLv2
SSLCertificateFile /etc/apache2/certs/xxx/xxxxxxxxxx.signature
SSLCertificateKeyFile /etc/apache2/certs/xxx/xxxxxxxxxxx.key
SSLCertificateChainFile /etc/apache2/certs/xxx/ca.crt
SSLCACertificateFile /etc/apache2/certs/xxxx/ca.crt

#Permisos accesos locales.

Order deny,allow
Allow from all
#Deny from all
#Allow from 127.0.0.0/255.0.0.0
#Allow from xxxxxxxxxxxxxxx, colocar ip a permitir


#Awstats
RewriteEngine On
RewriteRule ^/awstats$ /awstats/ [R]

RedirectMatch ^/awstats/ /cgi-bin/awstats.pl?config=ehd.nexions.com
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/

Alias /awstats-icon/ "/usr/share/awstats/icon/"
Alias /awstatsclasses "/usr/share/awstats/lib/"
Alias /awstatscss "/usr/share/doc/awstats/examples/css"


Options None
AllowOverride None
Order allow,deny
Allow from all



Require valid-user
AuthType Basic
AuthName "Restricted"
AuthUserFile /etc/apache2/authz/passwd


#Proxy config
ProxyRequests Off

#Permisos Proxy

Order deny,allow
Allow from all
#Deny from all
#Allow from colocar_ip


ProxyPass /awstats !
ProxyPass /awstats/ !
ProxyPass /awstats-icon/ !
ProxyPass /cgi-bin/ !
ProxyPass / http://192.168.xxx.xx/
ProxyPassReverse / http://192.168.xxx.xx/

#Logs
#Error log.
ErrorLog /var/log/apache2/ehd/error.log

#Access log
# Possible values include: debug, info, notice, warn, error, crit, alert, emerg.
LogLevel info
CustomLog /var/log/apache2/ehd/access.log combined

-----------------------------------------------------------------------------------------------
index.html

verificar el index del www

No hay comentarios: