Wednesday, April 27, 2011

A Nice Blog About Blogger

There is a nice blog about Blogspot. If you use Blogger as free blog, you should check this blog: http://blogknowhow.blogspot.com/. There are so many resource about styling, monetizing, and optimizing your blogspot space.

Let's check it out and enjoy!

How to Tunnel SSH via HTTP Proxy

I have to access ssh server but there is http proxy when I want to go to internet. How can I tunnel ssh via http proxy? Here are the way to do it:

# Download corkscrew. It is easy tool for tunneling SSH through HTTP proxies

# Extract corkscrew then configure and install it
tar -xzvf corkscrew.tar.gz
cd corkscrew
./configure
make install
# Create ~/.ssh/proxyauth file and set authentication for http proxy server
username:password
# Open ~/.ssh/config file. Add proxy server ip address and its authentication in proxyauth file like this:
Host *
ProxyCommand corkscrew proxy_ip_address proxy_port %h %p ~/.ssh/proxyauth
# Try to access your server via ssh
ssh username@example.com
And it's all done. Enjoy!

Monday, April 18, 2011

Apache Rewrite Modul Problems in Linux Ubuntu

I often have a problem with rewrite modul in Apache. When you have the same problem like me, you should check:

# RewriteBase syntax in .htaccess

# "Allow all" option in /etc/apache2/sites-enabled directory. Here are the example of 000-default file in sites-enabled directory (in tag Directory "/var/www/somedir"):
   Order allow,deny
Allow from all
AllowOverride All

# Is .htaccess file executable?

# Make sure rewrite module is loaded in Apache. When this module successfully loaded, it will appear in mods-enabled directory as rewrite.load file. You can load them by issuing:
sudo a2enmod rewrite
Just double check them. Enjoy!