Thursday, December 11th, 2008
If you have access to SSH on a remote server (dedicated server, vps or shell account), you can browse the internet over the IP address hiding your original IP address.
This can be useful for many scenarios like -
IP based authentication over dynamic IP:
In many cases for security reasons we use restrict access only to some selected IP addresses. For example, admin area of a blog, forum, billing system or help desk can be protected with IP based authentication.
But what if you are on dynamic IP? You can allow your users (or yourself) first to ssh to a server ...
(read more)
Tuesday, August 21st, 2007
If you are running a dedicated server or vps without control panel or a control panel which doesnt provide an interface to change time zones (like HSPComplete VPS), you can easily change your timezone from ssh command prompt.
First browse to /usr/share/zoneinfo to find your city.
You can use SFTP to easily browse your server files.
Here we find time zone for Dhaka to be located at /usr/share/zoneinfo/Asia/Dhaka
Now you need to SSH into your server and link /etc/localtime to your desired time zone file.
To set the server timezone to Dhaka we use the command:
ln -sf /usr/share/zoneinfo/Asia/Dhaka /etc/localtime
We can check if it got properly ...
(read more)
Monday, September 25th, 2006
cPanel Proxy is a small PHP script which allows users to access cPanel, WHM and Web Mail on port 80 by acting like a proxy. Its very helpful for people who are behind firewall.
This tutorial guides you on ow to make a server-wide installation of cPanel Proxy so all accounts created on your server gets access to cPanel Proxy (can access cpanel on port 80)
Installing
Connect to your server via SSH and login to your normal user account (for cPanel, this account needs to be a member of the wheel group), then 'su -' to root. At the prompt, type the ...
(read more)
Saturday, September 2nd, 2006
I always had the idea Google runs on Apache. But today playing with my Web Server Detection Tool and HTTP Header Checker i noticed www.google.com to return the following HTTP Header:
URL: http://www.google.com/
HTTP Header:
Status: HTTP/1.0 200 OK
Cache-Control: private
Content-Type: text/html
Set-Cookie: PREF=ID=90107988a9ae4a88:TM=1157210262:LM=1157210262:S=ltFJ-O9yIsDIPVaS; expires=Sun, 17-Jan-2038 19:14:07 GMT; path=/; domain=.google.com
Server: GWS/2.1
Content-Length: 0
Date: Sat, 02 Sep 2006 15:17:42 GMT
Connection: Keep-Alive
So.. the web server google is using is GWS/2.1. Which i guess to stand for "Google Web Server".
I couldnt find any trace of it over Google Labs or elsewhere. So couldnt digg up much info on it other than a list of Google server types (from answers.com). ...
(read more)
Thursday, August 31st, 2006
Over a post in Google Webmaster Central Blogs Vanessa Fox stated that when your site goes down for maintenance tou should configure your server to return a status of 503 (network unavailable) rather than 200 (successful). This lets Googlebot know to try the pages again later.
Searching for how i can make my Apache webserver return the 503 - Service Unavailable status code for a particular site on a shared hosting environment i found the following solution over http://wiki.splitbrain.org/503.sh
To return 503 (Service Unavailable) status on Apache Web Server:
Step 1:
Create the following shellscript named 503.sh:
#!/bin/sh
cat <<EOF
Status: 503
Content-Type: text/html; charset=iso-8859-1
<!DOCTYPE html PUBLIC "-//W3C//DTD ...
(read more)