[Please make sure you have OctaGate Switch installed and started before you start this tutorial, and that you are logged in]
The goals of this tutorial
In this Tutorial, we will create a virtual path for a domain.
The conditions
The conditions are identical to that of the first tutorial, however, in this tutorial we want www.DomainA.com/News/ to be routed to a server located at 192.168.0.50, on port 80. This tutorial assumes that you have the domain created in the previous tutorial. The server on 192.168.0.50 should have documents in a "/News/" folder. It is important that the documents have that path structure, because at this point, the internal and external path structures must be identical. We will look at other examples in later tutorials.
Open the domain
First, you should open the domain created earlier, called www.DomainA.com. If you are unsure on how to open a domain, please see Domains.
Create a Virtual Path
At the bottom of the Domains/Main page, you should have a list of virtual paths. The only path that should be in this list is the root path, with the Path box set to "/" and no other boxes set.
To create a new Virtual Path, click the "New Path" button in the Virtual Path grid. This will create a new virtual path with the path set to "/" - identical to the root path.
You should now enter "/News/" into the path box of the bottom virtual path. You could also enter it on the top virtual path, but that could become confusing. Always alter the bottom Virtual Path when adding new Virtual Paths. Your virtual path grid should look like this;
If you save these settings (press the "Save settings" button) and try to access "/News/" you will notice that OctaGate Switch will behave exactly as it did before. This is because the Target address hasn't been changed - it's forwarding to the same address as it did before you added the new path. We must enter 192.168.0.50 into the Target address field. It should look like this;
Save the settings and the virtual path is complete!
/News/ or /News ?
That actually depends - if you enter "/News" in the virtual path, the virtual path will match requests like "/NewsItems.htm" or "/NewsUS/". If you enter "/News/" it will NOT match either of the previous two documents. However, if the user types www.DomainA.com/News in the browser, the request will be forwarded to 192.168.0.45:80 and NOT 192.168.0.50:80.
Conclusion
You should now how a domain that forwards