Categories
Apache

How to import Jmeter test to Blazemeter ?

To import Jmeter collection test to Blazemeter

  1. Go to Jmeter
  2. Go to File => Save test Plan As
  1. Import the file to Blazemeter (Upload script)
Categories
Apache

How to see logstash status ?

Find below how to check the status of the logstash service

service logstash status

What is logstash ?

Logstash is a free and openĀ server-side data processing pipeline that ingests data from a multitude of sources, transforms it, and then sends it to your favorite “stash.”

Categories
Apache

JMeter – How to add random UUID in the POST body data ?

For POST request, I used the following Jmeter function

  • __UUID() – which returns an unique GUID structure
{
    "project": {
        "uuid": "${__UUID()}"
    }
}
Categories
Apache Technical

How to install Jmeter on a macBook ?

Here is the command line used to install Jmeter on my macbook

brew install jmeter

and here is how to open Jmeter

jemter

Categories
Apache

APACHE CORS ISSUE FIXED

Errors

No 'Access-Control-Allow-Origin' header
access control check: The 'Access-Control-Allow-Origin' header contains multiple values
No 'Access-Control-Allow-Origin' header is present on the requested resource"

Solution

SetEnvIf Origin "^http(s)?://(.+.)?(4over.com|4over.com)$" origin_is=$0
Header set Access-Control-Allow-Origin %{origin_is}e env=origin_is
Header set Access-Control-Allow-Credentials "true"
Header always set Access-Control-Allow-Headers "Authorization"
Header always set Access-Control-Allow-Methods "GET"
Header always set Access-Control-Expose-Headers "Content-Security-Policy, Location"
Header always set Access-Control-Max-Age "600"
Categories
Apache Hacker Web Server

Whitelist EC2 server to send email

Below find url that will allow your ec2 servers to send emails

https://console.aws.amazon.com/support/contacts?#/rdns-limits
Categories
Apache Hacker Security

Logwatch to monitor your server daily

Install logwatch

yum install logwatch

send logwatch email

logwatch --detail Low --mailto [email protected] --service http --range today

Logwatch configuration file

vim /usr/share/logwatch/default.conf/logwatch.conf

Categories
Apache Hacker Security

Install mod24_security VERY IMPORTANT

Install mod security24 very important

yum install mod24_security
Categories
Apache Hacker

Stopping “connect” attacks in apache (solution)

Then add the following right after it and restart apache to activate.

# Second, we configure the "default" Location to restrict the methods
allowed
# to stop CONNECT method attacks.
#
Order allow,deny Deny from all

I don’t like the idea of my server responding to requests for random hostnames, even if it serves local content. How can I deny these requests?

<VirtualHost *:80>
  ServerName default.only
  <Location />
    Order allow,deny
    Deny from all
  </Location>
</VirtualHost>


Categories
Apache Symfony Technical Web API

Performance Symfony Loading

ab – Apache HTTP server benchmarking tool

ab is a tool for benchmarking your Apache Hypertext Transfer Protocol (HTTP) server. It is designed to give you an impression of how your current Apache installation performs. This especially shows you how many requests per second your Apache installation is capable of serving.

See following website : https://httpd.apache.org/docs/2.4/programs/ab.html

ab -n500 -c20 -H