I m having a problem with HTTPS that I can t seem to solve on my own or with any amount of research. Occasionally, an HTTPS request will timeout and result in a "No Data Received" error. This generally happens when I m using a virtual host redirect from HTTP to HTTPS. It does not happen every time, bot maybe 1 in 8 times, it just sits until it times out. I am passing this through an Amazon Load Balancer then on to the server (EC2) running Apache 2 on Ubuntu 10.04. I can t tell whether this is a redirect issue, although it doesn t seem to be. It s most likely a setup issue, so I m going to put my setup below so you can see it.
I d like to solve this problem as quickly as possible to any help would be greatly appreciated. Thanks in advance!
Virtual Host file in sites-enabled for myurl.com . This should force HTTPS on everything except for deploy.php.
<VirtualHost *:80>
ServerName myurl.com
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteCond %{THE_REQUEST} !^[A-Z]+s/deploy.php [NC]
RewriteRule !^deploy.php https://%{HTTP_HOST}%{REQUEST_URI} [NC,R=301,L]
</VirtualHost>
Virtual Host file for myurl-ssl in sites-enabled.
<VirtualHost *:80>
ServerName www.myurl.com
RewriteCond %{HTTPS} !=on
RewriteCond %{THE_REQUEST} !^[A-Z]+s/deploy.php [NC]
RewriteRule !^depoy.php https://%{HTTP_HOST}%{REQUEST_URI} [NC,R=301,L]
NameVirtualHost *:443
</VirtualHost>
<IfModule mod_ssl.c>
<VirtualHost *:443>
SSLEngine on
ServerAdmin [email protected]
ServerName myurl.com
SSLCertificateFile /etc/apache2/certs/myurl.pem
SSLCertificateKeyFile /etc/apache2/certs/private.key
SSLCertificateChainFile /etc/apache2/certs/AddTrustExternalCARoot.crt
SSLProtocol all
SSLCipherSuite HIGH:MEDIUM
DocumentRoot /var/www
ErrorLog /var/log/apache2/error.log
LogLevel info
CustomLog /var/log/apache2/access.log combined
</VirtualHost>
同样,这个问题似乎属于我的设置或我的间接权力,迫使我“没有收到数据”错误(324英亩),但这一问题在每一个浏览器都发生。 我确实认为,它与我们在某个地方建立起来的皇家警察部队有关,但我可以列举一下它是什么。
感谢!