301 redirect

Posted: October 29, 2010 in Internet, Networking, Server
Tags: ,


In some situations, we have to make some manual configurations in IIS in order to implement a customers 301 redirect requests. Here are some types of requests that require manual configurations:

* The customer wants to setup a 301 redirect for a domain alias
* The customer wants to setup a 301 redirect for http://www.domain.com to point to domain.com

In order to setup the redirect, please follow these steps:

1. Open the IIS MMC
2. Browse to the existing site in IIS.
3. Right click on the site. Select Properties.
4. Click Advanced. Remove any host headers from the URL that we will be configuring 301 redirects on.
5. Right click on Web Sites. Select New Web Site.
* The description should be 301_URL_being_redirected_primary_domain (ex 301_www.domain.com_domain.com)
* The IP address should match the IP address of the host header(s) you removed above.
* The host header should match the host header you removed above.
* Enter the path as c:\inetpub\wwwroot
6. Now, right click on the newly created site, select properties.
7. Under the home directory tab, select “A redirection to a URL”. Redirect to the URL specified by the customer. Check “A permanent redirection for this resource”
* Make sure the checkbox “The exact URL entered above” is _NOT_ checked.
8. Under the Web Site tab, click advanced. Setup any additional host headers required.
9. If the main web site has a dedicated IP address: You will also need to setup host headers for the dedicated IP address on the 301 site you created above.

For a working example of this, please check WEHOST8 sites 301_coptool.com_ohiopowertool.com and ohiopowertool.com. For this particular example, the customer wanted requests to coptool.com and http://www.coptool.com to be redirected to http://www.ohiopowertool.com, and the domain also had a dedicated IP address.

Displaying Flickr images on forum

Posted: October 26, 2010 in Internet
Tags: ,

If you want to display your Flickr images on forum, here is the step.

1. Upload the image on Flickr and click that pic. Grab the link:-

2. We don’t need all of the link to display it on forums, select only the required part and add [IMG] and [\IMG] in the link:

Paste that link in the forum with the img tag so that your image will be displayed

Phishing email

Posted: October 10, 2010 in Internet

No this is not a tutorial about to prevent Phishing scams /attacks.

This is a sample Phishing email that you may receive from miscreants.
Dear HSBC Customer

During our regularly scheduled account maintenance and verification procedure we have detected a slight error in your billing information.

This might be due to the following reasons:

1. A recent change in your Personal Information (ie.change of Address, email address)
2. an inhability to accurately verify your selected option of payment due to an interal error within our systems.

Please verify your information. Tod do this have attached form to this email, Please download the form and follow the instruction on your sreen. NOTE: The form needs to be opened in a modern browser which has javascript enabled (ex: internet Explorer 7, Firefox 3, Safari 3, Opera 9)

We are requesting this information to verify and protect your identity. This is in order to prevent the illegal activity of your HSBC account.

Please do not reply to this email. This mailbox is not monitored and you will not receive a response.

We apologize for any inconvenience this may have caused

HSBC Group Online Banking Service

Issued for UK use only | c HSBC Bank plc 2002 – 2010

ffmpeg converter – This is to convert video files to flv files like youtube is having.
I have tested this on Windows 2003 server. I have checked it by converting a sample MPG file to flv file and its successful.

Download / Install the following:-

1. PHP version 5.2.6 or above. I have installed PHP 5.3.3
2. Graphics library GD2.
3. Now download ffmpeg.exe file from this URL http://ffmpeg.arrozcru.org/builds/
4. Place the ffmpeg under the path c: as c:/ffmpeg/ffmpeg.exe
Use DOS command to execute conversion
5. C:\ffmpeg\bin>ffmpeg.exe -i DELTA.MPG DELTA1.flv

DELTA.MPG is a video file stored under C:\ffmpeg\bin
DELTA.flv will be the output file

The above steps is for FFmpeg converter if you want to use php_ffmpeg.dll [php related]. Follow the below steps:-

Apache Http server or IIS
Gnu / Win32: GD version 2.0.33-1
Visual C++ 2005 redistributable
PHP 5.2.14


Must read:

If you are having problem working with php_ffmpeg.dll in a windows 2003 server. Install Visual C++ in the server.

Additional read:

Installing Autodesk Alias 2010


DOWNLOAD THE ABOVE FILE AND RENAME IT FROM .PDF to .ZIP. Unzip and it contains 3 files that you need

Step 1: Install the Alias 2010. You can install Alias on Any drive. You can install it as a trial version and you can apply the crack later.

Step 2: After the installation, make sure you have ‘FLEXlm’ folder is available in the C:\. If its not available, create in the C:\ as C:\FLEXlm

Step 3:
2. Copy the alias.dat and lmcryptsgiawd.exe file to this directory.

4. Goto start–>all programs–>Autodesk–>common utilities–>FlexLM license utilities

5. Under system settings copy Ethernet address

The Ethernet address may be repeated if you check it in FlexLM license utilities only copy the first set of digits, try it as mentioned in the above picture. If not working, copy other too.

6. Open the file (from the directory FLEXLM) alias.dat with Notepad and replace all words “your host” with the copied Ethernet address (e.g. HOSTID=002638350364). Save and close notepad

7. Using the run utility and type: lmcryptsgiawd.exe alias.dat

8. Goto start–>all programs–>Autodesk–>Alias 2010–>Licensing
select “I have a license that I need to install” > “I would like to install license from a file” (Check “Install to default license file (strongly recommended)”)

9. Browse to the path of the file alias.dat

10. Click install

11. In folder FLEXLM the licence file aw.dat will be created. Remove now an unnecessary file alias.dat.

12. Restart computer

Look into the pic

Sometimes an Aspx application may not work. In this case you may have to change a folder into an ‘application’ via IIS.

Before trying this, follow steps 1 and 2 and proceed to step 3 if it doesn’t work:-
1. Change the ASP verison to 2 from 1.
2. Change the shared application pool to dedicated application pool.

3. If still not working, IIS -> Domain -> On the left hand side of the domain -> Right click the application folder -> Properties -> In the application settings…press create. This will make the folder into an application.