Gossamer Forum
Quote Reply
Outgoing path
Hi

I have just set-up Links 2 but I have a problem with the outgoing links in stead of http://www.mysite.com/cgi-bin/links/jump.cgi?ID=3 I am getting http://www.mtsite.com/www.mysite.com/cgi-bin/links/jump.cgi?ID=3

I also get the extra www.mysite.com in add a site, modify link, Random Link and search

I can not find anything wrong with my links.cfg and everything else is working fine

Does anyone have any idea what I have done wrong



Quote Reply
Re: Outgoing path In reply to
Check $db_cgi_url

What does your links.cfg path section look like?

Paul Wilson.
Installations:
http://www.wiredon.net/gt/
Quote Reply
Re: Outgoing path In reply to
Thanks for the quick response Paul I have been staring at it for the last 2 hours but I can not see what I have wrong

# Paths and URL's to Important Stuff
# --------------------------------------------------------
# PATH and URL of Admin CGI directory. No Trailing Slash.
$db_script_path = "/home/htdocs/users/aeldridg/aeldridg/mysite.com/cgi-bin/links/admin";
$db_dir_url = "http://www.mysite.com/cgi-bin/links/admin";

# URL of User CGI directory. No Trailing Slash.
$db_cgi_url = "http:/www.mysite.com/cgi-bin/links";

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "/home/htdocs/users/aeldridg/aeldridg/mysite.com";
$build_root_url = "http://www.mysite.com";

# PATH and URL of What's New page. No Trailing slash.
$build_new_path = "/home/htdocs/users/aeldridg/aeldridg/mysite.com/New";
$build_new_url = "http://www.mysite.com/New";

# PATH and URL of What's Cool page. No Trailing slash.
$build_cool_path = "/home/htdocs/users/aeldridg/aeldridg/mysite.com/Cool";
$build_cool_url = "http://www.mysite.com/Cool";

# PATH and URL of What's Rating page. No Trailing slash.
$build_ratings_path = "/home/htdocs/users/aeldridg/aeldridg/mysite.com/Ratings";
$build_ratings_url = "http://www.mysite.com/Ratings";

Quote Reply
Re: Outgoing path In reply to
Hmmm....it looks ok to me..

Is this required twice? aeldridg/aeldridg

Paul Wilson.
Installations:
http://www.wiredon.net/gt/
Quote Reply
Re: Outgoing path In reply to
Yes that is how my host set it up with the aeldridg/aeldridg why I do not have a clue

Quote Reply
Re: Outgoing path In reply to
Hi

Never seen a directory with a period in it before /mysite.com/ thats not to say that its wrong though.

1. Check your templates, if that is where you are getting the error from, just make sure that the tags are not entered twice.

2. copy this into your favourite text editor
==================================


#!/usr/bin/perl
# List all available environment variables

print "Content-type: text/html\n\n";

print "<html><ul>\n";

foreach $key (sort keys %ENV) {
print "<li><b>$key</b> = ".$ENV{$key}."</li>";
}

print "</ul></html>\n";

===========================================

rename to path.cgi or path.pl, change the first line to your perl location

either
#!/usr/bin/perl

or

#!/usr/bin/local/perl


and ftp to your links cgi directory

chmod 755

the same as in the .cgi files in links that are working. place it in the folder with your cgi files, and then call it with your browser

example

http://www.yoursite.com/links/cgi-bin/path.cgi

note the path

SCRIPT_FILENAME

take away the path.cgi and that is the full path to that directory, this may assist you

Let us know how you get on

Good luck


DavyC
http://www.amijet.com
Life's more fun in a virtual world