Spyderserve Web Development

Category: Apache HTTP Server

How to show the top 10 IP addresses in an Apache Log

Sometimes I just want to see what IP address is generating the most traffic to my site.  Here is the awk command to do it: awk ‘{a[$1]++} END {for (i in a) print a[i],i}’ [file] | sort -rnk1 | head -n 15 The command above will show the top 15 visitors, by IP address (replace […]

Generating a CSR on Apache and Centos

Generating a CSR for your Apache Web server is easier than you might think.  Once you have the csr generated you can copy and paste the result into your venter’s portal. To Generate a Certificate Signing Request for Apache 2.x on Centos Log in to your server using ssh. At the prompt, type the following […]

Cross Domain Font Requests

Some browsers will have an issue utilizing resources from different domains.  This is due to a configuration on the source server and is easily fixed with a simple modification to your Apache .htaccess file. Add this code to your site’s .htaccess (Apache) file to allow any site to use fonts hosted on your site. <FilesMatch […]

seLinux and Apache

I typically move my root directory for Apache and this can get complicated when seLinux is enforced but with a bit of knowledge this can be done without disabling seLinux. display current state of seLinux: getenforce displays current permissions and seLinux settings for a directory (ex. ls -ldZ /var/www/html) ls -ldZ [directory path] Executing: ls -ldZ […]

Spyderserve  2225 Bemiss Road Suite D Valdosta, Georgia 31602 United States