ProxyPassReverse / http://127.0.0.1:8000/
ProxyPreserveHost on
# More to configure your own
# Logfiles
ErrorLog / var/log/apache2/linknovel.com.error.log
CustomLog / var/log/apache2/linknovel.com.access.log combined
</ VirtualHost>
Well. Restart apache. Open your browser to visit, it should be no problem.
-------------------------------------------------- ------------------------------------
Recent domestic rails with a host to test the application. This space can have one-month probationary period. Pretty good.
Deployment is very simple. Test my application URL is as follows: (Very simple procedures for the study used)
-------------------------------------------------- ------------------------------------
Performance Test:
Did not use very complicated test method, using ab lightly tested Homepage visit the speed test results are as follows:
From Shenzhen to host visit:
ab -n 3000 -c 6 -q -v -w http://liusu.zoomtype.info/
Test results:
Benchmarking liusu.zoomtype.info (be patient )..... done
Server Software: Apache/2.2.3
Server Hostname: liusu.zoomtype.info
Server Port: 80
Document Path: / novel / list
Document Length: 4133 bytes
Concurrency Level: 6
Time taken for tests: 916.887348 seconds
Complete requests: 3000
Failed requests: 0
Write errors: 0
Total transferred: 13962009 bytes
HTML transferred: 12399000 bytes
Requests per second: 3.27 [# / sec] (mean)
Time per request: 1833.775 [ms] (mean)
Time per request: 305.629 [ms] (mean, across all concurrent requests)
Transfer rate: 14.87 [Kbytes / sec] received
Connection Times (ms)
min mean [+ /-sd] median max
Connect: 174 458 893.4 218 10372
Processing: 202 1350 5723 .4 254 182001
Waiting: 194 783 3803 .3 242 141086
Total: 377 1809 5912 .7 486 185888
Percentage of the requests served within a certain time (ms)
50% 486
66% 528
75% 624
80% 1284
90% 3562
95% 7332
98% 16,495
99% 21,143
100% 185888 (longest request)
---- Hong Kong side of the machine to do the test:
Benchmark test for http://liusu.zoomtype.info/novel/list
This is ApacheBench, Version 2.0.41-dev <$ Revision: 1.141 $> apache-2.0
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright (c) 1998-2002 The Apache Software Foundation, http://www.apache.org/
Benchmarking liusu.zoomtype.info (be patient )..... done
Server Software: Apache/2.2.3
Server Hostname: liusu.zoomtype.info
Server Port: 80
Document Path: / novel / list
Document Length: 4133 bytes
Concurrency Level: 10
Time taken for tests: 74.892236 seconds
Complete requests: 300
Failed requests: 0
Write errors: 0
Total transferred: 1404888 bytes
HTML transferred: 1245983 bytes
Requests per second: 4.01 [# / sec] (mean)
Time per request: 2496.408 [ms] (mean)
Time per request: 249.641 [ms] (mean, across all concurrent requests)
Transfer rate: 18.31 [Kbytes / sec] received
Connection Times (ms)
min mean [+ /-sd] median max
Connect: 37 583 1722 .0 42 21034
Processing: 52 1592 2479 .2 987 25875
Waiting: 52 423 1955 .7 59 23208
Total: 91 2175 3033 .8 1242 25919
Percentage of the requests served within a certain time (ms)
50% 1242
66% 2071
75% 3098
80% 3602
90% 4696
95% 6504
98% 11,543
99% 14,411
100% 25919 (longest request)
------ Complicated if more big slow. . But overall it can also
-------------------------------------------------- --------------------------------------
The use of rails to develop a simple website quickly then yes! But people are not familiar with may be "universal approach" confuse you. For instance, each adding a controller, add a page for each, I would think that this is not the standard way of doing things rails. Action and even give the name, I would hesitate to go, the operation name is not in line with the practice, in line with the practice of rails. In fact, quite the toss. Was familiar with the point, and slowly will be a good point. Learn to do this example, once there is between all the deleted re-direct to feel faster. Ha ha. Entire website code examples are a later time with two weeks off the finish.
But my aesthetic poor really are eyesores created website ah!







