Koozali.org: home of the SME Server
Legacy Forums => General Discussion (Legacy) => Topic started by: Luke Drumm on October 19, 2000, 04:15:16 AM
-
Howdy all,
For all those people who may of waded through my previous post in the Advanced forum, my apologies for my breach of ettique but I have yet to stumble across even a temporary bad hack (let alone a fix) for my current problems.
The problem?
The only thing that I'm able to access externally (via http) is the 'Primary' html files.
Upon trying to access any cgi scripts from either the primary or ibay cgi-bin directories, I run across a mess of 404 errors.
It doesn't seem to matter how I address the machine (eg. www.yourdomain.xxx,www.e-smith.yourdomain.xxx etc...), I still come back with the same results.
Just to make matters stranger, all of the usual indicators (such as ownership, internal access etc) seem to be fine.
Any suggestions, crackpot theories or even rough stabs in the dark would be most gratefully recieved and grovelled about.
Yours without scripting,
Luke
-
Luke Drumm wrote:
> The only thing that I'm able to access externally (via http) is
> the 'Primary' html files. Upon trying to access any cgi scripts
> from either the primary or ibay cgi-bin directories, I run
> across a mess of 404 errors.
The problem isn't made clear here. Are you able access the html content in the HTML folders? Is it just the CGI scripts that are not found?
Can you divulge any relevant /var/log/messages or /var/log/httpd/error details?
> It doesn't seem to matter how I address the machine (eg.
> www.yourdomain.xxx,www.e-smith.yourdomain.xxx etc...), I still
> come back with the same results.
> Any suggestions, crackpot theories or even rough stabs in the
> dark would be most gratefully recieved and grovelled about.
Is the ibay(s) access configured for "Entire Internet - no password required"?
-
Very important that your ibays are set as mentioned above.
Then start working your way through the directories via http,
http://primary.com
http://primary.com/ibay
http://primary.com/ibay/cgi-bin
http://prmary.com/ibay/cgi-bin/script.cgi
See where it all tanks and start there.
-
The httpd logs indicate that any external HTTP requests (ie. from the 'net) are being directed through to /primary/html directory (irrespective of whether it be html or cgi).
eg.
http://myserver.xxx --> /home/e-smith/files/primary/html/
http://myserver.xxx/cgi-bin/ --> /home/e-smith/files/primary/html/cgi-bin/
http://myserver.xxx/ibay/ --> /home/e-smith/files/primary/html/ibay/
http://myserver.xxx/ibay/cgi-bin/ --> /home/e-smith/files/primary/html/ibay/cgi-bin/
The ibay included in the test was indeed set to "Internet - everybody" for read/execute permissions. I've checked the ownership of the files & directories and they all seem to be okay (ie. Set to the right user/group).
Any ideas?
Luke.
-
Well Luke,
I do see some problems here.
Luke Drumm wrote:
> The httpd logs indicate that any external HTTP requests (ie.
> from the 'net) are being directed through to /primary/html
> directory (irrespective of whether it be html or cgi).
>
> eg.
>
> http://myserver.xxx --> /home/e-smith/files/primary/html/
your path for the above only needs to go as far as /primary/. Do not include the html directory.
> http://myserver.xxx/cgi-bin/ --> /home/e-smith/files/primary/html/cgi-bin/
Once again, the true path for http://myserver.xxx/cgi-bin/ would be
/home/e-smith/files/primary/cgi-bin/ without the html directory. You need to bypass that al together .
> http://myserver.xxx/ibay/ --> /home/e-smith/files/primary/html/ibay/
your true path to this line should look like /home/e-smith/files/ibays/ibay/
> http://myserver.xxx/ibay/cgi-bin/ -->> /home/e-smith/files/primary/html/ibay/cgi-bin/
and this of course would be /home/e-smith/files/ibays/ibay/cgi-bin/
> The ibay included in the test was indeed set to "Internet
> - everybody" for read/execute permissions. I've checked
> the ownership of the files & directories and they all seem
> to be okay (ie. Set to the right user/group).
>
> Any ideas?
so you have been routing everything through your primary html directory as your log indicated. Please let me know if I can help you more, or if any of this is unclear.
> Luke.
>
Garret
-
Errr... yes...
The examples I gave were paraphrased from the access/error logs.
While you're suggestions were perfectly correct, the question now is how to convince Apache to do this.
Is anybody able to spot any problems in the small subset of the httpd.conf listed below?
-------------------------------------
DefaultIcon /icons/unknown.gif
...
DocumentRoot /home/e-smith/files/primary/html
...
(please note that all the default virtual host settings are identical in all the important ways)
NameVirtualHost 127.0.0.1
ServerName
ServerAlias *.
# primary content
DocumentRoot /home/e-smith/files/primary/html
ScriptAlias /cgi-bin /home/e-smith/files/primary/cgi-bin
Alias /files /home/e-smith/files/primary/files
# demo ibay (The Test Example)
ScriptAlias /demo/cgi-bin /home/e-smith/files/ibays/demo/cgi-bin
Alias /demo/files /home/e-smith/files/ibays/demo/files
Alias /demo /home/e-smith/files/ibays/demo/html
....
Options None
AllowOverride None
order deny,allow
deny from all
allow from none
...
Options ExecCGI
AllowOverride None
order deny,allow
deny from all
allow from all
Options Indexes Includes
AllowOverride None
order deny,allow
deny from all
allow from all
Options ExecCGI
AllowOverride None
order deny,allow
deny from all
allow from all
AllowOverride None
ForceType application/octet-stream
order deny,allow
deny from all
allow from all
....
-------------------------------------
Luke.
-
Hi,
Just to let you know that the final directory directive listed in the previous post has "ibays/stuff/" as opposed to "/ibays/demo" shown elsewhere. This is merely a typo on my part and bears no relation to the 'real' ibay names. (You know.. Protecting the innocent etc. )
Luke