Today, my VPS on slicehost has been setup as virtual private network server via OpenVPN. As I have mentioned at Google said goodbye to Chinese, the google.cn has been disabled and restricted by IP. So I have to find a way to setup the VPN server so that I can visit Google.com in China. Well, my story is over. Let’s start the VPN server tutorial right now! Read the rest of this entry »
Nginx, as one of light web server software, is awesome. It has the ability to protect whole or parts of your web application via http authentication. It can be set up with ease. Be careful with the path of your auth user file. Try to change it to the absolute path if your pages drop into 500 Internal Server Error.
syntax: auth_basic_user_file the_file
context: http, server, location, limit_except
This directive sets the htpasswd filename for the authentication realm. Since version 0.6.7 the filename path is relative to directory of nginx configuration file nginx.conf, but not to nginx prefix directory.
The format of file is the following:
Passwords must be encoded by function crypt(3). You can create the password file with the htpasswd program from Apache.
I detected the Google.CN has been suspended and redirected to Google.com.hk half an hour ago.
Read the rest of this entry »
The tips for Gzip enabling on sharing hosts installed Unix like OS. I know many resources on Google.com can help you already. So this is not an full guide for enable Gzip. Although I have listed a dozen of tips at the end of this post. Read my story to understand what I wanna share with you. That’s an specific medicine for the guys who is dropping in the same situation I met.
Today, I did the optimization for the blog as usual after the blog(buy STO credit) has been set up. The blog is hosted by Godaddy Sharing Host(Specially, Linux economy plan. Why? As it’s cheap prices and decent CS. If you have any suggestion to me, I appreciate!). After the bog got a nice score with YSlow, I noticed that the title rewrite has been all death. I have used the famous WordPress plugin titled All in One SEO by Michael Torbert. Sincerely, I am so lazy so that I didn’t read the sources code ever. I have to read the code to understand how it works. aha..It uses the function ob_start() to get call callback function in the class to rewrite the original title. That’s where the collision comes from. I have used the ob_start(“gz_handler”) to enable Gzip for buystocredit.com. Read the PHP manual for function ob_end_flush() to know the collision well if you want to know more.
So, the issue I met when I enabled Gzip was clear.
- Web Server: Apache 1.3.* with PHP5 on Linux Share Hosting
- Blog Software: WordPress
- Plugin Enabled: All in one SEO pack
- Gzip Enabled Method: call ob_start(“gz_handler”) at the beginning of each page
- Result: All in one SEO pack title rewrite disables
- Solution: Use zlib.output_compression to instead of ob_gzhandler()
- Remove the ob_start(“ob_gzhandler”) from everywhere in your codes
- Modify the php5.ini/php.ini at the web root as following:
zlib.output_buffering = On
;zlib.output_handler = ob_gzhandler //comment it out, as it cannot be used with the zlib.ouput_compression is on
zlib.output_compression = On
There are many way to enabled Gzip as following.
- Apache 2.0.x – if the mod_felate enabled by your host provider.
- Enable Gzip via Mod_deflate
- Apache 1.3.x – if the mod_gzip installed and enabled by your host provider
- Official Mod_Gzip Manual or Fast Usage Tips
- PHP 4.0.4 or higher Ob_start(“ob_gzhandler”)
- Fast Effective PHP Gzip Compression
- PHP zlib.output_compression
- The method in my post!
- Other resouces:
- Gzip with .htaccess and PHP
- Better Explained? Interesting domain
I have just noticed that there are nine domains that compose with 4 numbers are pending for deletion.
|Digital Domains||Estimated||Final Winning Pricesupdate later|
Ignore the estimated pricing above, that’s only my evaluations based upon my experiences. Just for funny!
The all 9 domains were registered via Direct Nic ago. So I suppose they are belongs to one guy who finally decided to out of the domain business or became insolvent. Those Digital domains are all registered since 1999 without any dropping.