Upgrade to Pro — share decks privately, control downloads, hide ads and more …

httpd.conf programming

Sponsored · Your Podcast. Everywhere. Effortlessly. Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.

httpd.conf programming

My Lightning talk in OSDC.tw 2013

Avatar for jeffhung

jeffhung

April 20, 2013
Tweet

Other Decks in Programming

Transcript

  1. Dispatcher MySQL& Database& MySQL& Database& MySQL& Database& MySQL& Database& Java&Web&

    Container& Java&Web& Container& Java&Web& Container& Java&Web& Container& Hadoop& HBase& Hadoop& HBase& Hadoop& HBase& Hadoop& HBase& Lucene& Indexer& Lucene& Indexer& Lucene& Indexer& Search& Engine& Elaster&CAP&Service& (API&Server)& Elaster&CAP&Service& (API&Server)& Elaster&CAP&Service& (API&Server)& Elaster&CAP&Service& (API&Server)& api.elasterlabs.com.tw *.app.elasterlabs.com.tw Internet& Balancer Manage&
  2. Lots of Java codes to implement the agents to control

    nginx according to routing rules subscribed from ZK
  3. # function REDIS (cmd) { ... } RewriteMap REDIS "prg:redis-cli

    --raw" # if url == "/index.html" # redirect "/404.html" RewriteRule ^/index.html /404.html [L,P] # else if # proxy "/app/...", "http://app/REDIS(app)" RewriteRule ^([^\/]*)/(.*) ${REDIS:GET\ $1}/$2 [L,P]
  4. ~200 lines of httpd.conf And several filter scripts dash2under.pl: #!/usr/bin/perl

    $| = 1; # Turn off I/O buffering while (<STDIN>) { s/-/_/g; # Replace dashes with underscores print $_; }