Changing the eGuide Default Directory



By: 9159506

August 16, 2006 12:00 am

Reads: 185

Comments:0

Rating:0

Problem

A Forum reader asked this question:

“I have been given the task to rebuild an eGuide server to match exactly what was once there. Our situation is as follows: we have two identical servers behind a content switch. Previously the custom look of our implementation was copied over and somehow worked for them. Of course, I can get the default install of eGuide to run properly; I just don’t know how to point the server’s default address of https://servername to redirect to the custom eGuide folder.

Any help would be highly appreciated!

And here’s a tip from Andrey Karyagin …

Solution

I think it is possible to change eGuide default directory. To do this, you should be familiar with Apache and Tomcat configuration files. My sample configuration consists of Windows 2000 SP4 Advanced Server with Apache 2.0.52 and Tomcat 4.1.30 installed. Both Apache and Tomcat services were installed during iManager 2.5
installation. The original eGuide servlet was installed under
C:\Program Files\Novell\Tomcat\webapps\eGuide.

Step 1

Stop both Apache and Tomcat services. At this time it would be very helpful to make a backup of C:\Program Files\Novell\Apache and C:\Program Files\Novell\Tomcat
directory structures.

When the backup is completed, copy the whole eGuide directory structure to some other place. For example, in my case it’s C:\Program Files\Novell\Tomcat\webapps\merchant

Step 2

Locate the httpd.conf Apache configuration file under C:\Program Files\Novell\Apache\conf

Add the following three lines nearly the end of this file:

##### Begin Merchant configuration #####
include "C:/Program 
Files/Novell/Tomcat/webapps/merchant/WEB-INF/eGuide-apache.conf"
##### End Merchant configuration #####

Step 3

Locate the eGuide-apache.conf file under C:/Program Files/Novell/Tomcat/webapps/merchant/WEB-INF/

Replace all occurences of “eGuide” with “merchant” within this file. In my case, it looks like this:

#########################################################
# Auto configuration for the /merchant context starts.
#########################################################

#
# The following line makes apache aware of the location of the /merchant 
context
#
Alias /merchant "C:/Program Files/Novell/Tomcat/webapps/merchant"
<Directory "C:/Program Files/Novell/Tomcat/webapps/merchant">
     Options FollowSymLinks
     Order allow,deny
     Allow from all
     AllowOverride All
</Directory>

#
# The following line mounts all JSP files and the /servlet/ uri to tomcat
#
## JkMount /merchant/servlet/* ajp13
# JkMount /merchant/webacc ajp13
# JkMount /merchant/*.jsp ajp13

#
# The following line prohibits users from directly accessing WEB-INF
#
<Location "/merchant/WEB-INF/">
     AllowOverride None
     deny from all
</Location>
#
# Use Directory too. On Windows, Location doesn't work unless case matches
#
  <Directory "C:/Program Files/Novell/Tomcat/webapps/merchant/WEB-INF/">
     AllowOverride None
     deny from all
  </Directory>
#
# The following line prohibits users from directly accessing META-INF
#
## <Location "/merchant/META-INF/">
##    AllowOverride None
##    deny from all
## </Location>
#
# Use Directory too. On Windows, Location doesn't work unless case matches
#
## <Directory "C:/Program Files/Novell/Tomcat/webapps/merchant/META-INF/">
##    AllowOverride None
##    deny from all
## </Directory>

#######################################################
# Auto configuration for the /merchant context ends.
#######################################################

Step 4

Locate the index.html file under C:/Program Files/Novell/Tomcat/webapps/merchant/
and replace URL=/eGuide/servlet/eGuide with URL=/merchant/servlet/eGuide

Step 5

Locate the eguide.cfg file under C:/Program Files/Novell/Tomcat/webapps/merchant/WEB-INF/config and replace Templates.Images.url=/eGuide/look with Templates.Images.url=/merchant/look

Step 6

Start the Apache service and then the Tomcat service.

Try http://12.34.56.78/eGuide and http://12.34.56.78/merchant – both results should be identical!

In this manner I’ve successfully run several eGuide servlets on the same Windows 2000 SP4 Advanced Server box. Also, I tried the same approach to migrate eGuide customizations from Windows 2000 Server to NetWare 6.5 SP5 server.

VN:F [1.9.22_1171]
Rating: 0.0/5 (0 votes cast)

Tags: , ,
Categories: Uncategorized

Disclaimer: As with everything else at NetIQ Cool Solutions, this content is definitely not supported by NetIQ, so Customer Support will not be able to help you if it has any adverse effect on your environment.  It just worked for at least one person, and perhaps it will be useful for you too.  Be sure to test in a non-production environment.

Comment