How do I setup unique Software Virtual Servers with Netscape Fasttrack Server

Export to PDF | Export to DOC

Problem: How do I setup unique Software Virtual Servers with Netscape Fasttrack Server?

Cause: The Netscape Fastrack Server only allows virtual domains to be setup under the primary document directory.  It is more advantageous to setup virtual servers that are not dependent on the primary document directory but unique in location on the Web Server.

Solution: Configuring a unique Software Virtual Server can be done by manually editing the /usr/internet/ns_httpd/httpd-80.x.x.x.x/config/obj.conf file, where x.x.x.x is the server to be modified:

Within the <Object name=”default”> section add a <Client urlhost=”www.virtualdomain.com”> section, terminated with </Client>, for each virtual domain where www.virtualdomain.com is the name of the virtual doamin your are setting up:

Note: This example the primary server is a.com, the virtual domain to be setup is virtualdomain.com and the html documents are kept in /u2/htdocs.

<Object name=”default”>
NameTrans from=”/server-java” fn=”java-find-applet”
NameTrans fn=”pfx2dir” from=”/ns-icons” dir=”/usr/internet/ns_httpd/ns-icons”
NameTrans fn=”pfx2dir” from=”/mc-icons” dir=”/usr/internet/ns_httpd/ns-icons”
NameTrans fn=”pfx2dir” from=”/cgi-bin” dir=”/u2/htdocs/a.com/cgi-bin” name=”cgi”
NameTrans from=”/test” fn=”pfx2dir” dir=”/u2/httest”

<Client urlhost=”www.virtualdomain.com”>
#Set up a unique docuemnt directory
NameTrans fn=”document-root” root=”/u2/htdocs/VirtualDomainSubDirectory”
#Set up a unique home page
NameTrans fn=”home-page” path=”/u2/htdocs/VirtualDomainSubDirectory/index.htm”
#Set up a unique cgi directory
NameTrans fn=”pfx2dir” from=”/cgi-bin” dir=”/u2/htdocs/VirtualDomainSubDirectory/cgi-bin” name=”cgi”
</Client>

NameTrans fn=”document-root” root=”/u2/htdocs/a.com”
PathCheck fn=”unix-uri-clean”
PathCheck fn=”find-pathinfo”
PathCheck fn=”find-index” index-names=”index.html,home.html,index.htm,home.asp,home.htm,default.htm”

</Object>

 

Note: After manually changing the obj.conf file the GUI Netscape Fasttrack Server front-end can not be run or you will have to re-add the manual changes.

Leave a Reply

Your email address will not be published. Required fields are marked *