Well, I've been staring at this and stabbing around a bit blindly in the
configuration file, playing with this, but I admit total and complete
intellectual breakdown.

I have one hostname/IP that I have rundig index my site at, and another
that I want reflected in the links in the hitlist.

For example, say I have a URL like:

http://192.168.1.21 that I specify in htdig.conf.  Rundig indexes my
site at this URL - it is the only way presently rundig can access the
site; it is behind a router.

When a user searches and returns hits, I want all of the path and file
information to stay the same, but the IP address/URL to be different (in
this case, an external internet address), such as:

http://248.22.19.123

So a URL that is indexed as:

http://192.168.1.21/bigdir/fileabc.html

Should appear in a hit list as:

http://248.22.19.123/bigdir/fileabc.html

So I searched the archives of this list, and some other users were
pointed at the directive:

url_rewrite_rules

I have to admit here, I am unable to understand on any basic level the
explanation at the example.  It seems that I want to simply replace a
relatively simple "192.168.1.21" with "248.22.19.123", but I'm looking
at that example, and I can't seem to understand what it does.  The
example in the documentation is:

url_rewrite_rules: \
(.*)\\?JServSessionIdroot=.* \\1 \
(.*)\\&JServSessionIdroot=.* \\1 \
(.*)&context=.* \\1

What does this do?  I think if the example had some of examples of URLS
before and after the rules were applied I might be able to make sense of
it (sort of a rosetta stone).  I'm not a big regex guy.  I don't need
them often and am making an effort to learn them but I'm sort of a
beginner.  I seem to need them more and more suddenly, lately.

Can someone shed some light on my problem, and if you understand the
above example, can you help me understand what a URL would look like
before and after the directive does its job?

I feel a bit of dolt, presently.

   -CPH






-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
ht://Dig general mailing list: <[EMAIL PROTECTED]>
ht://Dig FAQ: http://htdig.sourceforge.net/FAQ.html
List information (subscribe/unsubscribe, etc.)
https://lists.sourceforge.net/lists/listinfo/htdig-general

Reply via email to