> > >           common_dir:  var/www/htdocs/new/Website/
>
>Do you mean "common_dir: /var/www..." ? The missing initial slash looks a
>bit suspicious.


Sorry, that's a typo in my email.  It should be /var/www/htdocs/new/Website/


> > >Now, htsearch appears to be expecting pages & images to be in the 
> Document
> > >Root, which is currently configured to be /var/www/htdocs directory.
> > >However, the website we have designed is aliased in the
> > >/var/www/htdocs/new/Website/ directory.  Is there a way to make htsearch
> > >put results in this directory?
>
>There's a difference between files on your drive and URLs on the
>server. If you've set up your webserver so that it's Document Root is
>/var/www/htdocs/new/Website/ then a file "foo.html" in
>/var/www/htdocs/new/Website/foo.html has a URL http://server.com/foo.html
>
>On the other hand, if the webserver's Document Root is /var/www/htdocs,
>then you could also have an entire website at
>http://server.com/new/Website/ and beyond. None of this has anything to do
>with ht://Dig in the least.
>
>To be completely honest, nothing in the ht://Dig code (save the installer
>script) cares where the files end up on your drive. In all cases, you want
>to have attributes point to the files with proper paths, but the *code*
>just fetches the file.


OK, but here's the real problem. The config file(htdig.conf) is configured 
to use the output wrapper in 
/var/www/htdocs/new/Website/htdig/wrapper.html.  This is configured to find 
images in /var/www/htdocs/new/Website/images but from the HTML excerpt below,
....
         <tr>
           <td height="70" width="1" valign="top">&nbsp;</td>
           <td width="60" valign="bottom"><img 
src="../images/barneys/on-home.gif" width="60" height="40" alt="Home" 
border="0"></td>
           <td width="60" valign="bottom"><a 
href="../newsroom/newsroom.htm"><img src="../images/news.gif" width="60" 
height="40" border="0" alt="Newsroom"></a></td>
           <td width="60" valign="bottom"><a 
href="../how_to/how_to.htm"><img src="../images/how-to.gif" width="60" 
height="40" border="0" alt="How to"></a></td>
         </tr>

.......

Now in the image directories, these .gif files exist.  Similarly the 
newsroom and how_to directories exist in /var/www/htdocs/new/Website/ 
however htsearch seems to be looking for these in the DocumentRoot 
directory(/var/www/htdocs) instead of the ${common_dir}.  How do I 
know?  Well, if I look at the HTML page and hover over the X's where the 
images should be it displays where it is looking (i.e. 
/htdocs/how_to/how_to.htm, or /htdocs/newsroom/newsroom.htm, or 
/htdocs/images/on-home.gif).  I know that I can place the full path in the 
results.html and wrapper.html but surely there has to be a way for htsearch 
to 'think' that the img src and a href directories are in the right place 
instead of the DocumentRoot directory.

Any help would be immensely appreciated!






**************************************************************************
DISCLAIMER

The contents of this e-mail are not necessarily the policy or
opinion or representative of any policy or opinion of the Authority
or any person employed by it. This transmission is intended only
for the named recipient(s) and is confidential in nature. If received
in error, please return it to the sender and destroy any copies
immediately.
**************************************************************************


_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
_______________________________________________
htdig-general mailing list <[EMAIL PROTECTED]>
To unsubscribe, send a message to <[EMAIL PROTECTED]> with a 
subject of unsubscribe
FAQ: http://htdig.sourceforge.net/FAQ.html

Reply via email to