I installed two local vhosts (http and self-signed https) for billing.example.com and tried them in firefox with firebug. Http vhost only target redirects all requests to https.
Almost every time I request a page from https, one or two files with related resources (images, js, css, etc.), and sometimes the php page itself returns 400 bad requests in the firebug window, sometimes one or two files are displayed as loaded for a long time. When I click on the problem link in firebug, the file loads as it should. In addition, files with poor or no download request change almost every time I load a page.
Any ideas?
Server: Ubuntu 10.04, Apache / 2.2.14 with mod_ssl
Hosts:
Listen 80 <VirtualHost *:80> ServerName billing.example.com UseCanonicalName On DocumentRoot /code/site/billing ... RewriteEngine On RewriteRule ^/(.*)$ https://billing.example.com/$1 </VirtualHost> Listen 443 <VirtualHost *:443> ServerName billing.example.com UseCanonicalName On DocumentRoot /code/site/billing ... SSLEngine On SSLCertificateFile /code/site/ssl/example.crt SSLCertificateKeyFile /code/site/ssl/example.key </VirtualHost>
Rest - default settings from ubuntu apache2.
source share