Performance for multiple domains on a single server

Asked

Viewed 45 times

1

I have 2 domains pointed to the same server(Amazon EC2) using the VirtualHost of Apache.

This practice interferes in performance and security or what will influence will be basically the number of accesses and resources used by the server?

1 answer

1


Performance

Just the amount of interfaith resources. The additional work that Apache should do is despicable in my experience. I’ve never seen a benchmark actually evaluating this.

What will happen is that Apache will simply have to go through a list (or any other structure) to identify which vhost the request belongs to, and then the process continues normally.

Security

The site on vhost will influence security much more than the vhost Feature. For example, if your site hosted on a vhost has a file download path, and the parameters of this script are not properly validated, you may be able to download a file from the other site. But this, as you may notice, is not a failure of the vhost structure, but a failure of your website hosted on vhost.

The only problem with having multiple vhosts on the same server is that the digital certificate should be unique to all sites, which can be a problem. This limitation is not due to vhost, but to the fact that Handshake SSL/TLS occurs before the HTTP request is sent, and therefore there is no way to define which certificate to use: always the same certificate is used. But this limitation does not occur simply by vhost, but because the two sites use the same port for connection. Therefore, if you set each vhost to work on a different port, this limitation will be circumvented.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.