RcBuilder@walla.com
call centre: 054-5614020

Environment MachineName

Posted by: RcBuilder  /   Category: IIS / SOURCE CODE   /   No Comments
07
Jul
2014

Environment.MachineName <%@ Page Language="C#" %> <%@ Import Namespace="System.Web" %> <script runat="server" type="text/C#"> protected void Page_Load(object sender, EventArgs e) { string ServerName = Environment.MachineName; Response.Write(ServerName); Response.End(); } </script> use this script to determine to which machine the client is connected especially efficient  for sites with load balancer mechanism this will write to the screen the actual machine.

Read more

IIS7 SSL Certificate

Posted by: RcBuilder  /   Category: Certificates / IIS / IIS bindings / Security / SSL   /   No Comments
28
May
2014

SSL Certificate - IIS7 ### OPTION 1 ### Generate CSR: - CSR = Certificate Signing Request - we use csr file to request a real ssl certificate from a known third party we later copy the csr content and the ssl will create based on that content * open IIS * main menu(server menu) -> IIS(tab) -> Server Certificates * Actions(right pane) ->.

Read more

IIS7 bindings per port

Posted by: RcBuilder  /   Category: IIS / IIS bindings   /   No Comments
28
May
2014

IIS7 - bindings per port - multiple bindings same host * open IIS7 -> Sites -> Add Site * set site name, app pool and physical path * set the host name and the associated port we can add multiple bindings for the same host in a different port example : we take the host 'www.myDomian.com' and create 3 different sites each.

Read more

FRT to check Rewriter

Posted by: RcBuilder  /   Category: IIS / IIS Rewriter   /   1 Comment
29
Apr
2014

IIS 7 FAILED REQUEST TRACING(FRT) * alias : FRT * FRT can be used with the URL rewrite module to trace how rewrite rules were applied to the request URL installation: * control panel -> programs -> add features -> IIS -> WWWServices -> diagnostic -> Tracing using: * choose the site you want to trace * configure tab (in the right.

Read more

Rewriter server variables

Posted by: RcBuilder  /   Category: IIS Rewriter / SOURCE CODE   /   No Comments
29
Apr
2014

important! 1.in order to use Server Variables in the rewrite module we MUST add the variables we want to use to ALLOW mode 2.usually used for outbound rules add Server Variables to ALLOW mode * right pane -> (Manage server variables)view server variables * add -> set the server variable name to add using Server Variables(inbound) * add Server Variables to ALLOW.

Read more

Rewriter rewrite MAPs

Posted by: RcBuilder  /   Category: IIS Rewriter / SOURCE CODE   /   1 Comment
29
Apr
2014

Define New Map: rewrite maps are collection of rules (key value collection) * in the right pane -> View Rewrite maps (manage providers) * add rewrite map -> set map name * add mapping entry -> set the original and the new values notice! add as much entries as you need in the same way Create New Rule and Attach it.

Read more

Rewriter Remove suffix slash

Posted by: RcBuilder  /   Category: IIS Rewriter / SOURCE CODE   /   No Comments
29
Apr
2014

Remove suffix '/' * add rule(right pane) -> Inbound Rules -> Blank rule * enter rule Name * choose Using 'Regular Expression' and choose 'match pattern' * set Regular Expression rule pattern to '(.*)/$' * add condition -> set the input as {REQUEST_FILENAME} and define the matchType to be 'IsFile' * add condition -> set the input as {REQUEST_FILENAME} and define.

Read more

Rewriter remove .aspx suffix rule

Posted by: RcBuilder  /   Category: IIS Rewriter / SOURCE CODE   /   1 Comment
29
Apr
2014

remove .aspx suffix <rewrite> <rules> <rule name="Index Page" enabled="true" stopProcessing="true"> <match url=".*" /> <conditions logicalGrouping="MatchAny"> <add input="{URL}" pattern="index.txt" /> <add input="{URL}" pattern="^/$" /> </conditions> <action type="None" /> </rule> <rule name="Remove aspx suffix" enabled="true" stopProcessing="true"> <match url=".*" /> <conditions logicalGrouping="MatchAll"> <add input="{URL}" negate="true" pattern="\.aspx" /> </conditions> <action type="Rewrite" url="{R:0}.aspx".

Read more

Rewriter redirect rule

Posted by: RcBuilder  /   Category: IIS Rewriter / SOURCE CODE   /   1 Comment
29
Apr
2014

Redirect Types * structure: - redirectType="" * example: ... ... <action type="Redirect" url="http://www.mydomain.com" redirectType="Temporary" /> * - Permanent // 301 - Found // 302 - SeeOther // 303 - Temporary // 307 Add redirect rule * Add Blank rule * pattern : .* * conditions : {URL} matches the pattern 'index.htm' remark: use ^$ for exact match instead of contains * action - redirect url : 'http://www.ynet.co.il' redirect type : temporary(307) * this.

Read more

Rewriter Ignore extensions Rule

Posted by: RcBuilder  /   Category: IIS Rewriter / SOURCE CODE   /   1 Comment
29
Apr
2014

Add Ignore extensions Rule: * add rule(right pane) -> Inbound Rules -> Blank rule * enter rule Name * choose Using 'Regular Expression' and choose the rewrite type (match or not match the pattern) * set your Regular Expression rule pattern to .* (all) * add condition -> set the input as {URL} and pattern to be the extensions to.

Read more
12
  • פיתוח מערכות
  • פתרונות טכנולוגים
  • קידום אתרים
  • בניית אתרים