FPGA based Digital World

Title

HOME Analog Electronics Digital Electronics FPGA SoC Software Signal&System Specific

Welcome to FPGA based Digital World.

Brief Introduction

Software runs on a CPU, controlling the perpherials.

Main About Sitemap Links Contact Leisure Time

Deploy Multiple Domains in One Vitual Host

When constucting a website,we sometimes apply one virtual host from a web server provider. In the mean time, maybe we applied for several domain names, e.g., www.mywebsite_1.com, www.mywebsite_1.cn, www.mywebsite_1.uk, etc.

Most of the time, we intend to provide the same entry to these domains on the applied virtual host(only one), but provide different starting pages for different domain visiting.

There're several ways to realize it.

Here's one example for asp.

In the root dirctory of the website, change the entry asp page(e.g.,default.asp, index.asp,etc.) as follows.

<%@LANGUAGE="VBSCRIPT"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>An Example to Redirect the Entry Pages </title>
</head>

<body>
<%
 select case Request.ServerVariables("SERVER_NAME")
  case "localhost"
   Response.Redirect("AnalogTech.asp")
  case "127.0.0.1"
   Response.Redirect("Index.html")
  case else
   Response.Write("Whoooo....You're a lucky guy...")
 end select
%>

</body>
</html>

 

 

Altera/Intel Xilinx Lattice Learn About Electronics
MircoSemi Terasic Electric Fans

All rights reserved by fpgadig.org

Coding
 Programming language
Technical Note
 Multiple websites on one host
 Hard Disk Master Record and BPB