Skip to content

Instantly share code, notes, and snippets.

View raj-rajaratnam's full-sized avatar

Rajkumar Rajaratnam raj-rajaratnam

View GitHub Profile
<script language="js">java.lang.System.out.println(java.lang.Thread.currentThread().getId());</script>
<script language="js">java.lang.Thread.sleep(10000);</script>
<?xml version="1.0" encoding="UTF-8"?>
<proxy xmlns="http://ws.apache.org/ns/synapse"
name="StockQuoteProxy"
transports="http"
statistics="disable"
trace="disable"
startOnLoad="true">
<target>
<inSequence>
<property name="OUT_ONLY" value="true"/>
apt-get install apache2
<ProxyContextPath>/bamcarbon</ProxyContextPath>
<WorkerProxyContextPath></WorkerProxyContextPath>
<HostName>bam.example.com</HostName>
<MgtHostName>bam.example.com</MgtHostName>
sudo service apache2 restart
<VirtualHost *:443>
ServerAdmin techops@wso2.com
ServerName bamproxy.example.com
ServerAlias bamproxy.example.com
ProxyRequests Off
SSLEngine On
SSLProxyEngine On
SSLProxyVerify none
sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /home/rajkumar/security/server.key -out /home/rajkumar/security/server.crt
127.0.0.1 bam.example.com
127.0.0.1 bamproxy.example.com