How do I fix “ssl handshake failed” with ApacheBench?

ApacheBench doesn’t seem to be capable of ignoring certificate problems (at least some of them) so I wrote this script: #!/bin/bash K=200; HTTPSA=’https://192.168.1.103:443/’ date +%M-%S-%N>wgetres.txt for (( c=1; c<=$K; c++ )) do wget –no-check-certificate –secure-protocol=SSLv3 –spider $HTTPSA done date +%M-%S-%N>>wgetres.txt It’s not as precise as AB, but gives the idea. Does well in comparison tests.

Options FollowSymLinks or SymLinksIfOwnerMatch is off

Watch that the directory where your web application is living, is not included in another parent directory which has restricted FollowSymLinks. The solution is to enable FollowSymLinks at the top directory (parent directory) or move your web application to a directory outside of the scope of the “no FollowSymLinks” in parent directory. For example, the … Read more

JS and CSS files in vagrant not properly encoded when saved outside of the VM

I had this problem this morning. Set EnableSendfile to off in your httpd.conf. If you look at your httpd.conf it says “turn this off if you serve from NFS-mounted filesystems.” In http://httpd.apache.org/docs/2.2/mod/core.html#enablesendfile it explains that “By default, when the handling of a request requires no access to the data within a file — for example, … Read more

VirtualHost always returns default host with Apache on Ubuntu 14.04

I was facing this issue, and it turned out I had to disable the default virtual host. sudo a2dissite 000-default.conf Possible Expanation: According to the apache documentation An In-Depth Discussion of Virtual Host Matching: […] If the main server has no ServerName at this point, then the hostname of the machine that httpd is running … Read more

Where can I find good reference/tutorial on writing Apache modules (in C)? [closed]

Here is the list of links about apache module development that I found useful: Apache Tutor Apache Modules Development and Debugging libapr(apache portable runtime) programming tutorial The Apache Modules Book: Application Development with Apache Mailing list archives Apache at WebÞing Writing portable C code with APR Apache Modeling Project You can also download the apache … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)