This is how you vertically center stuff in bootstrap:
This doesnt work in IE8 or less.
Code, cooking, catman
location / {
if ($remote_addr ~ "[02468]$") {
rewrite ^(.+)$ /a$1 last;
}
rewrite ^(.+)$ /b$1 last;
}
location /a {
alias /Users/dogself/site;
index index.html index.htm;
ssi on;
}
location /b {
alias /Users/dogself/site;
index index2.html index2.htm;
ssi on;
}
mysql> SELECT count(*) tables,
-> concat(round(sum(table_rows)/1000000,2),'M') rows,
-> concat(round(sum(data_length)/(1024*1024*1024),2),'G') data,
-> concat(round(sum(index_length)/(1024*1024*1024),2),'G') idx,
-> concat(round(sum(data_length+index_length)/(1024*1024*1024),2),'G') total_size,
-> round(sum(index_length)/sum(data_length),2) idxfrac
-> FROM information_schema.TABLES;
+--------+---------+--------+--------+------------+---------+
| tables | rows | data | idx | total_size | idxfrac |
+--------+---------+--------+--------+------------+---------+
| 389 | 325.92M | 74.15G | 26.63G | 100.78G | 0.36 |
+--------+---------+--------+--------+------------+---------+
1 row in set, 14 warnings (15.45 sec)
mysql> SELECT count(*) tables,
-> concat(round(sum(table_rows)/1000000,2),'M') rows,
-> concat(round(sum(data_length)/(1024*1024*1024),2),'G') data,
-> concat(round(sum(index_length)/(1024*1024*1024),2),'G') idx,
-> concat(round(sum(data_length+index_length)/(1024*1024*1024),2),'G') total_size,
-> round(sum(index_length)/sum(data_length),2) idxfrac
-> FROM information_schema.TABLES
-> WHERE table_name like "users";
+--------+-------+-------+-------+------------+---------+
| tables | rows | data | idx | total_size | idxfrac |
+--------+-------+-------+-------+------------+---------+
| 1 | 3.47M | 0.58G | 0.21G | 0.78G | 0.36 |
+--------+-------+-------+-------+------------+---------+
1 row in set (0.27 sec)
<Host name="dogself.com" appBase="webapps-dogself" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> <alias>www.dogself.com<alias> </Host>
and also add another connector port:
<Connector port="8010" protocol="AJP/1.3" redirectPort="8443" />
ServerName dogself.com JkMount /* dogself
in workers.properties add dogself worker to list:
worker.list=another,dogself # Define dogself worker.dogself.port=8010
worker.dogself.host=dogself.com worker.dogself.type=ajp13
mkdir /etc/tomcat6/Catalina/dogself.com
apt-get install libapache2-mod-jk
# this lives in /etc/apache2/workers.properties # workers.properties - ajp13 # # List workers worker.list=worker1 # Define worker1 worker.worker1.port=8009 worker.worker1.host=localhost worker.worker1.type=ajp13
# tomcat connector stuff: JkWorkersFile /etc/apache2/workers.properties # Where to put jk shared memory JkShmFile /var/log/apache2/mod_jk.shm # Where to put jk logs JkLogFile /var/log/apache2/mod_jk.log # Set the jk log level [debug/error/info] JkLogLevel info # Select the timestamp log format JkLogStampFormat "[%a %b %d %H:%M:%S %Y]
#Everything under root goes to tomcat JkMount /* worker1 #html files should be served by apache2 JkUnMount /*.html worker1
<connector port="8009" protocol="AJP/1.3" redirectport="8443" />