background preloader

Apache

Facebook Twitter

Enable SSL. How to configure Apache 2 as an HTTPS reverse proxy for AJAX requests. It’s been another one of those projects.

How to configure Apache 2 as an HTTPS reverse proxy for AJAX requests

I sat down ready to begin coding a web app that would make AJAX calls to an API, when I realised I wouldn’t get very far due to the same origin policy and the fact that the resource was not CORS-enabled. Four hours later and I have a solution, but still no lines of code. To add to the inconvenience of my problem, the requests I needed to make were HTTPS based. How To Change Domain Names & Keep Rankings in Google. If you are planning a rebrand, and need to change website addresses, you want to ensure you redirect all visitors to the new domain, and also transfer your old domain’s search engine rankings to the new web address.

How To Change Domain Names & Keep Rankings in Google

It only takes a few lines of code, and is usually a simple task, dependant on your access to particular files on your host server .While you can use different methods to redirect visitors and rankings to achieve the same goal, for the purposes of this article I can discuss experience my on Apache servers and using htaccess.txt instructions. With a 301 permanent redirect instruction by your server, the age, authority and reputation of your old website in Google is transferred to this new web address. I usually just pop a few 301 instructions in an htaccess.txt file and, within a few weeks, the process is complete.

Permission denied: make_sock: could not bind to address. 7.2. Using Temporary Self-Signed Directory Server Certificates. Administering Web Applications. This chapter explains how to administer web applications in the Oracle GlassFish Server 3.1.2 environment.

Administering Web Applications

The following topics are addressed here: Instructions for accomplishing some of these tasks by using the Administration Console are contained in the Administration Console online help. Apache mod_cache in the Real World. I thought I’d share our experiences implementing Apache’s mod_cache.

Apache mod_cache in the Real World

We wanted to implement caching of product and category pages for the SoftSlate Commerce Java shopping cart application of one of our clients. The product and category pages of an ecommerce storefront don’t often change so they are good candidates for caching. Configurando apache para la guerra (alto rendimiento) Iba a poner en el título alta disponibilidad pero no trata de esto, sino de como configurar el apache de tal forma que pueda servir su contenido de una forma mucho mas eficiente.

Configurando apache para la guerra (alto rendimiento)

Cuando tenemos un servidor apache sirviendo nuestro blog que apenas visitan una decena de personas al día esto no nos tiene que preocupar, pero si tenemos que hacerlo si en este mismo servidor hay un numero mucho mas alto de visitas diarias. Hace un tiempo me pidieron configurar un apache para alto rendimiento, como no había configurado hasta el momento ninguno no me había preocupado ni siquiera para este tema, pero ahora con la vuelta a la carga con marsupi es necesario tener en cuenta alguna de estas cosas.

LoadBalanceMod_jkDemo - GlassFish Wiki. How to Loadbalance GlassFish Cluster with Apache Loadbalancer (Jan Luehe's Blog) Since GlassFish V1, it has been possible to front-end a GlassFish instance with Apache's httpd web server, after following a few simple configuration steps, which include defining the com.sun.enterprise.web.connector.enableJK system property on the GlassFish instance, and specifying the port number of the mod_jk listener on the GlassFish instance as its value.

How to Loadbalance GlassFish Cluster with Apache Loadbalancer (Jan Luehe's Blog)

By specifying this system property, the mod_jk connector, which comes standard with GlassFish (minus the JAR files that need to be copied from a Tomcat installation as per the configuration steps referenced above), will be started automatically and will listen on the specified port to any traffic sent by the httpd front-end over the AJP protocol. (Please notice that when you follow the configuration steps referenced above, you must use the tomcat-ajp.jar from Tomcat 5.5.23.

Using the tomcat-ajp.jar bundled with a more recent Tomcat release will not work.) The remainder of this blog covers important configuration aspects. Apache + Tomcat: Balanceo de carga y alta disponibilidad. Running GlassFish 3.1.2 with Apache HTTP Server. Apache, Módulo JK (mod_jk) y JBoss. Using Redirects with the Load Balancer (Sun Java System Application Server 9.1 High Availability Administration Guide)

Use redirects to redirect a request from one URL to another URL.

Using Redirects with the Load Balancer (Sun Java System Application Server 9.1 High Availability Administration Guide)

For example, use redirects to send users to a different web site (for example, redirecting from an old version of an application to a newer version) or from HTTP to HTTPS or from HTTPS to HTTP. Redirects can be enabled in a number of ways in the application (for example, servlet-based redirects, web.xml redirects). However, sending a redirect URL through the load balancer may require some additional configuration of the Application Server or the load balancer.

Simple but Full Glassfish HA Using Debian - Ricky's Hodgepodge. During the past months I has been working in a project of which environment is mainly Windows (that is the reason of the previous entry about windows mod_proxy_html compilation The solution Looking for information about the problem in the internet, I found lots of LB/HA sample solutions for TCP/IP enviroments in Linux, most of the times they involve two products (see for example this entry): keepalived.

Simple but Full Glassfish HA Using Debian - Ricky's Hodgepodge

This package provides a VRRP (Virtual Router Redundancy Protocol) implementation stack and a versatile health checking system. So this software can commute a virtual IP between two or more hosts, the health checking system is used to test the servers and decide which one is the master and which one is the backup server. Cluster en Glassfishv3 usando mod_jk para el balanceo de peticiones. MacBook-Pro-de-Carlos:bin cleon$ .

Cluster en Glassfishv3 usando mod_jk para el balanceo de peticiones