Archive for the ‘Networking’ Category

301 redirect

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

TEXT COPIED FROM OTHER SITE:-

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.

Advertisements

To make MVC apps work, you may need to do the following in the server. This is for IIS 6 [2003 server]

Steps:
1. Login to the Server > IIS [run -> inetmgr] > domain properties > Home directory > configuration > Mappings > Add the “aspnet_isapi.dll”

2. The dll file can be found at the following location:-
c:\windows\microsoft.net\framework\v2.0.50727\aspnet_isapi.dll

3. wild card
Choose the dll file [which is in the following location: c:\windows\microsoft.net\framework\v2.0.50727\aspnet_isapi.dll ] and select verify

Follow the URL for more details.
http://haacked.com/archive/2008/11/26/asp.net-mvc-on-iis-6-walkthrough.aspx
—————
If you need to setup virtual directory, view the picture

Mime type

Posted: July 19, 2010 in Internet, Networking, Server
Tags: ,

Mime type needs to be added in the control panel [Plesk, hsphere, Helm…] if you want your domain to support a new file extension. For example, if you want to support .swf or .mp4 you may need to add the MIME extension.

Look at the below URL for the list of Mime types

http://mindprod.com/jgloss/mime.html

Although its not increasing the maximum remote desktop protocol (RDP) connection but here are the few tips worth posting.

1. If the “maximum number of users exceeded” [error] while connecting a domain you can try:
run -> mstsc /console -> server login credentials

2. Enable user can connect with same login twice [something like that] in Administrative tools -> Terminal services configuration
—I have tried this in Windows 2008 server

Start -> run

C:’WINDOWS>netstat -an |find /i “listening”

netstat -an |find /i “listening” > c:’openports.txt
Result will be saved in a text file

To find the port 80 established connections
netstat -an |find /i “80”

To find the number of port 80 established connections
netstat -an |find /i /c “80”

To view open, closed and established ports
netstat -ao

——————

More info:-
http://www.petri.co.il/quickly_find_local_open_ports.htm

Login to the server:

start > cmd > Goto the location where the Plesk is installed.
example: % plesk install dir %> parallels > plesk > bin

Copy and the following line and paste it on the cmd prompt:-
“%plesk_bin%”\dbclient –direct-sql –sql=”select su.login, a.password from accounts a, sys_users su where a.id=su.account_id and su.login=’USER1‘ ”

Make sure to use the quotes as its.

USER1 – should be the name of the account for the domain. You can get this information from the plesk (or other) control panel

Click this picture to view bigger

Bluetooth file transfer in windows Vista is really easy but in XP its only implicitly available

Goto command prompt and then type:
fsquirt