Title / Description
Code <VirtualHost 10.240.234.46:80> ServerName balanceo_vh_bojaelectronico DocumentRoot "/opt/bojaelectronico/httpd" <Directory "/opt/bojaelectronico/httpd"> DirectoryIndex index.html AddType text/html .html .internal AddHandler server-parsed .html .internal Options +IncludesNOEXEC +Indexes Order allow,deny Allow from all </Directory> # Captura de Errores de Tomcat ProxyErrorOverride On # Errores personalizados para el Boja # ErrorDocument 404 /error/HTTP_NOT_FOUND_BOJA.html.var # ErrorDocument 404 /error/HTTP_NOT_FOUND_BOJA.html.var ErrorDocument 404 /error/JDA_404_BOJA.html.var # Se arranca el motor Rewrite RewriteEngine On RewriteLogLevel 3 RewriteLog /tmp/rewrite_bojaelectronico.log # Reglas para BOJA y calendario - Redirecciones AutoActualizadas RewriteMap portadaboja txt:/opt/bojaelectronico/httpd/redirect.txt RewriteRule "^/BOJA(/)?$" "http://bojaelectronico.juntadeandalucia.es/boja/${portadaboja:boletin}" [R] RewriteRule "^/calendario(/)?$" "http://bojaelectronico.juntadeandalucia.es/boja/${portadaboja:year}" [R] # SIG <FilesMatch "\.sig$"> ForceType application/octet-stream Header set Content-Disposition attachment </FilesMatch> RewriteRule "(.*)\.(pdf|sig)$" /opt/bojaelectronico/documentos/$1.$2 # Reglas para el Searcher RewriteRule "^/buscador/search.do" "http://balanceo_buscador/searcher/search.do" [P,L] RewriteRule "^/buscador/redirect.do" "http://balanceo_buscador/searcher/redirect.do" [P,L] RewriteRule "^/buscador/bojaRedirect.do" "http://balanceo_buscador/searcher/bojaRedirect.do" [P,L] # Verificacion RewriteRule "^/verificacion-autenticidad/verificacion.do" "http://balanceo_buscador/searcher/verificacion.do" [P,L] RewriteRule "^/(\d{4})/(\d{1,3})/(\d{1,3}|sumario)-verificacion$" "http://balanceo_buscador/searcher/veriResult.do?year=$1&num=$2&doc=$3" [P,L] # URLs sin extension [E=FOCUS:true,E=REWRITEMAP_RESULT:,L] # Sumarios RewriteRule "^/(.*)/(s\d{1,2}\.\d{1,2})" %{DOCUMENT_ROOT}/$1/$2.html [E=REWRITEMAP_RESULT:${portadaboja:boletin},L] # Anios RewriteRule "^/([^.^/]+)$" %{DOCUMENT_ROOT}/$1.html [E=REWRITEMAP_RESULT:${portadaboja:boletin},L] # Defecto, sin barra al final RewriteRule "^/(.*)/([^.^/]+)$" %{DOCUMENT_ROOT}/$1/$2.html [E=REWRITEMAP_RESULT:${portadaboja:boletin},L] # Defecto, con barra al final RewriteRule "^/(.*)/$" %{DOCUMENT_ROOT}/$1/index.html [E=REWRITEMAP_RESULT:${portadaboja:boletin},L] # Tratamiento de errores RewriteRule "^/error.html$" /var/www/error/paginaErrorBOJA.html [L] RewriteRule "^/error/(.*)" /var/www/error/$1 [L] </VirtualHost><VirtualHost 10.240.234.46:80> ServerName balanceo_vh_bojaelectronico DocumentRoot "/opt/bojaelectronico/httpd" <Directory "/opt/bojaelectronico/httpd"> DirectoryIndex index.html AddType text/html .html .internal AddHandler server-parsed .html .internal Options +IncludesNOEXEC +Indexes Order allow,deny Allow from all </Directory> # Captura de Errores de Tomcat ProxyErrorOverride On # Errores personalizados para el Boja # ErrorDocument 404 /error/HTTP_NOT_FOUND_BOJA.html.var # ErrorDocument 404 /error/HTTP_NOT_FOUND_BOJA.html.var ErrorDocument 404 /error/JDA_404_BOJA.html.var # Se arranca el motor Rewrite RewriteEngine On RewriteLogLevel 3 RewriteLog /tmp/rewrite_bojaelectronico.log # Reglas para BOJA y calendario - Redirecciones AutoActualizadas RewriteMap portadaboja txt:/opt/bojaelectronico/httpd/redirect.txt RewriteRule "^/BOJA(/)?$" "http://bojaelectronico.juntadeandalucia.es/boja/${portadaboja:boletin}" [R] RewriteRule "^/calendario(/)?$" "http://bojaelectronico.juntadeandalucia.es/boja/${portadaboja:year}" [R] # SIG <FilesMatch "\.sig$"> ForceType application/octet-stream Header set Content-Disposition attachment </FilesMatch> RewriteRule "(.*)\.(pdf|sig)$" /opt/bojaelectronico/documentos/$1.$2 # Reglas para el Searcher RewriteRule "^/buscador/search.do" "http://balanceo_buscador/searcher/search.do" [P,L] RewriteRule "^/buscador/redirect.do" "http://balanceo_buscador/searcher/redirect.do" [P,L] RewriteRule "^/buscador/bojaRedirect.do" "http://balanceo_buscador/searcher/bojaRedirect.do" [P,L] # Verificacion RewriteRule "^/verificacion-autenticidad/verificacion.do" "http://balanceo_buscador/searcher/verificacion.do" [P,L] RewriteRule "^/(\d{4})/(\d{1,3})/(\d{1,3}|sumario)-verificacion$" "http://balanceo_buscador/searcher/veriResult.do?year=$1&num=$2&doc=$3" [P,L] # URLs sin extension [E=FOCUS:true,E=REWRITEMAP_RESULT:,L] # Sumarios RewriteRule "^/(.*)/(s\d{1,2}\.\d{1,2})" %{DOCUMENT_ROOT}/$1/$2.html [E=REWRITEMAP_RESULT:${portadaboja:boletin},L] # Anios RewriteRule "^/([^.^/]+)$" %{DOCUMENT_ROOT}/$1.html [E=REWRITEMAP_RESULT:${portadaboja:boletin},L] # Defecto, sin barra al final RewriteRule "^/(.*)/([^.^/]+)$" %{DOCUMENT_ROOT}/$1/$2.html [E=REWRITEMAP_RESULT:${portadaboja:boletin},L] # Defecto, con barra al final RewriteRule "^/(.*)/$" %{DOCUMENT_ROOT}/$1/index.html [E=REWRITEMAP_RESULT:${portadaboja:boletin},L] # Tratamiento de errores RewriteRule "^/error.html$" /var/www/error/paginaErrorBOJA.html [L] RewriteRule "^/error/(.*)" /var/www/error/$1 [L] </VirtualHost><VirtualHost 10.240.234.46:80> ServerName balanceo_vh_bojaelectronico DocumentRoot "/opt/bojaelectronico/httpd" <Directory "/opt/bojaelectronico/httpd"> DirectoryIndex index.html AddType text/html .html .internal AddHandler server-parsed .html .internal Options +IncludesNOEXEC +Indexes Order allow,deny Allow from all </Directory> # Captura de Errores de Tomcat ProxyErrorOverride On # Errores personalizados para el Boja # ErrorDocument 404 /error/HTTP_NOT_FOUND_BOJA.html.var # ErrorDocument 404 /error/HTTP_NOT_FOUND_BOJA.html.var ErrorDocument 404 /error/JDA_404_BOJA.html.var # Se arranca el motor Rewrite RewriteEngine On RewriteLogLevel 3 RewriteLog /tmp/rewrite_bojaelectronico.log # Reglas para BOJA y calendario - Redirecciones AutoActualizadas RewriteMap portadaboja txt:/opt/bojaelectronico/httpd/redirect.txt RewriteRule "^/BOJA(/)?$" "http://bojaelectronico.juntadeandalucia.es/boja/${portadaboja:boletin}" [R] RewriteRule "^/calendario(/)?$" "http://bojaelectronico.juntadeandalucia.es/boja/${portadaboja:year}" [R] # SIG <FilesMatch "\.sig$"> ForceType application/octet-stream Header set Content-Disposition attachment </FilesMatch> RewriteRule "(.*)\.(pdf|sig)$" /opt/bojaelectronico/documentos/$1.$2 # Reglas para el Searcher RewriteRule "^/buscador/search.do" "http://balanceo_buscador/searcher/search.do" [P,L] RewriteRule "^/buscador/redirect.do" "http://balanceo_buscador/searcher/redirect.do" [P,L] RewriteRule "^/buscador/bojaRedirect.do" "http://balanceo_buscador/searcher/bojaRedirect.do" [P,L] # Verificacion RewriteRule "^/verificacion-autenticidad/verificacion.do" "http://balanceo_buscador/searcher/verificacion.do" [P,L] RewriteRule "^/(\d{4})/(\d{1,3})/(\d{1,3}|sumario)-verificacion$" "http://balanceo_buscador/searcher/veriResult.do?year=$1&num=$2&doc=$3" [P,L] # URLs sin extension [E=FOCUS:true,E=REWRITEMAP_RESULT:,L] # Sumarios RewriteRule "^/(.*)/(s\d{1,2}\.\d{1,2})" %{DOCUMENT_ROOT}/$1/$2.html [E=REWRITEMAP_RESULT:${portadaboja:boletin},L] # Anios RewriteRule "^/([^.^/]+)$" %{DOCUMENT_ROOT}/$1.html [E=REWRITEMAP_RESULT:${portadaboja:boletin},L] # Defecto, sin barra al final RewriteRule "^/(.*)/([^.^/]+)$" %{DOCUMENT_ROOT}/$1/$2.html [E=REWRITEMAP_RESULT:${portadaboja:boletin},L] # Defecto, con barra al final RewriteRule "^/(.*)/$" %{DOCUMENT_ROOT}/$1/index.html [E=REWRITEMAP_RESULT:${portadaboja:boletin},L] # Tratamiento de errores RewriteRule "^/error.html$" /var/www/error/paginaErrorBOJA.html [L] RewriteRule "^/error/(.*)" /var/www/error/$1 [L] </VirtualHost><VirtualHost 10.240.234.46:80> ServerName balanceo_vh_bojaelectronico DocumentRoot "/opt/bojaelectronico/httpd" <Directory "/opt/bojaelectronico/httpd"> DirectoryIndex index.html AddType text/html .html .internal AddHandler server-parsed .html .internal Options +IncludesNOEXEC +Indexes Order allow,deny Allow from all </Directory> # Captura de Errores de Tomcat ProxyErrorOverride On # Errores personalizados para el Boja # ErrorDocument 404 /error/HTTP_NOT_FOUND_BOJA.html.var # ErrorDocument 404 /error/HTTP_NOT_FOUND_BOJA.html.var ErrorDocument 404 /error/JDA_404_BOJA.html.var # Se arranca el motor Rewrite RewriteEngine On RewriteLogLevel 3 RewriteLog /tmp/rewrite_bojaelectronico.log # Reglas para BOJA y calendario - Redirecciones AutoActualizadas RewriteMap portadaboja txt:/opt/bojaelectronico/httpd/redirect.txt RewriteRule "^/BOJA(/)?$" "http://bojaelectronico.juntadeandalucia.es/boja/${portadaboja:boletin}" [R] RewriteRule "^/calendario(/)?$" "http://bojaelectronico.juntadeandalucia.es/boja/${portadaboja:year}" [R] # SIG <FilesMatch "\.sig$"> ForceType application/octet-stream Header set Content-Disposition attachment </FilesMatch> RewriteRule "(.*)\.(pdf|sig)$" /opt/bojaelectronico/documentos/$1.$2 # Reglas para el Searcher RewriteRule "^/buscador/search.do" "http://balanceo_buscador/searcher/search.do" [P,L] RewriteRule "^/buscador/redirect.do" "http://balanceo_buscador/searcher/redirect.do" [P,L] RewriteRule "^/buscador/bojaRedirect.do" "http://balanceo_buscador/searcher/bojaRedirect.do" [P,L] # Verificacion RewriteRule "^/verificacion-autenticidad/verificacion.do" "http://balanceo_buscador/searcher/verificacion.do" [P,L] RewriteRule "^/(\d{4})/(\d{1,3})/(\d{1,3}|sumario)-verificacion$" "http://balanceo_buscador/searcher/veriResult.do?year=$1&num=$2&doc=$3" [P,L] # URLs sin extension [E=FOCUS:true,E=REWRITEMAP_RESULT:,L] # Sumarios RewriteRule "^/(.*)/(s\d{1,2}\.\d{1,2})" %{DOCUMENT_ROOT}/$1/$2.html [E=REWRITEMAP_RESULT:${portadaboja:boletin},L] # Anios RewriteRule "^/([^.^/]+)$" %{DOCUMENT_ROOT}/$1.html [E=REWRITEMAP_RESULT:${portadaboja:boletin},L] # Defecto, sin barra al final RewriteRule "^/(.*)/([^.^/]+)$" %{DOCUMENT_ROOT}/$1/$2.html [E=REWRITEMAP_RESULT:${portadaboja:boletin},L] # Defecto, con barra al final RewriteRule "^/(.*)/$" %{DOCUMENT_ROOT}/$1/index.html [E=REWRITEMAP_RESULT:${portadaboja:boletin},L] # Tratamiento de errores RewriteRule "^/error.html$" /var/www/error/paginaErrorBOJA.html [L] RewriteRule "^/error/(.*)" /var/www/error/$1 [L] </VirtualHost><VirtualHost 10.240.234.46:80> ServerName balanceo_vh_bojaelectronico DocumentRoot "/opt/bojaelectronico/httpd" <Directory "/opt/bojaelectronico/httpd"> DirectoryIndex index.html AddType text/html .html .internal AddHandler server-parsed .html .internal Options +IncludesNOEXEC +Indexes Order allow,deny Allow from all </Directory> # Captura de Errores de Tomcat ProxyErrorOverride On # Errores personalizados para el Boja # ErrorDocument 404 /error/HTTP_NOT_FOUND_BOJA.html.var # ErrorDocument 404 /error/HTTP_NOT_FOUND_BOJA.html.var ErrorDocument 404 /error/JDA_404_BOJA.html.var # Se arranca el motor Rewrite RewriteEngine On RewriteLogLevel 3 RewriteLog /tmp/rewrite_bojaelectronico.log # Reglas para BOJA y calendario - Redirecciones AutoActualizadas RewriteMap portadaboja txt:/opt/bojaelectronico/httpd/redirect.txt RewriteRule "^/BOJA(/)?$" "http://bojaelectronico.juntadeandalucia.es/boja/${portadaboja:boletin}" [R] RewriteRule "^/calendario(/)?$" "http://bojaelectronico.juntadeandalucia.es/boja/${portadaboja:year}" [R] # SIG <FilesMatch "\.sig$"> ForceType application/octet-stream Header set Content-Disposition attachment </FilesMatch> RewriteRule "(.*)\.(pdf|sig)$" /opt/bojaelectronico/documentos/$1.$2 # Reglas para el Searcher RewriteRule "^/buscador/search.do" "http://balanceo_buscador/searcher/search.do" [P,L] RewriteRule "^/buscador/redirect.do" "http://balanceo_buscador/searcher/redirect.do" [P,L] RewriteRule "^/buscador/bojaRedirect.do" "http://balanceo_buscador/searcher/bojaRedirect.do" [P,L] # Verificacion RewriteRule "^/verificacion-autenticidad/verificacion.do" "http://balanceo_buscador/searcher/verificacion.do" [P,L] RewriteRule "^/(\d{4})/(\d{1,3})/(\d{1,3}|sumario)-verificacion$" "http://balanceo_buscador/searcher/veriResult.do?year=$1&num=$2&doc=$3" [P,L] # URLs sin extension [E=FOCUS:true,E=REWRITEMAP_RESULT:,L] # Sumarios RewriteRule "^/(.*)/(s\d{1,2}\.\d{1,2})" %{DOCUMENT_ROOT}/$1/$2.html [E=REWRITEMAP_RESULT:${portadaboja:boletin},L] # Anios RewriteRule "^/([^.^/]+)$" %{DOCUMENT_ROOT}/$1.html [E=REWRITEMAP_RESULT:${portadaboja:boletin},L] # Defecto, sin barra al final RewriteRule "^/(.*)/([^.^/]+)$" %{DOCUMENT_ROOT}/$1/$2.html [E=REWRITEMAP_RESULT:${portadaboja:boletin},L] # Defecto, con barra al final RewriteRule "^/(.*)/$" %{DOCUMENT_ROOT}/$1/index.html [E=REWRITEMAP_RESULT:${portadaboja:boletin},L] # Tratamiento de errores RewriteRule "^/error.html$" /var/www/error/paginaErrorBOJA.html [L] RewriteRule "^/error/(.*)" /var/www/error/$1 [L] </VirtualHost>
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code