make sure there is a line that looks something like this:
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/cgiirc/
This tells apache where to find script directories. (I think that is the correct syntax)
Also you'll need a section like this:
<Directory /usr/lib/cgi-bin/cgiirc/> AllowOverride None Options ExecCGI Order deny,allow Allow from all </Directory>
Make sure to remember the final / on the directory names. I've never used more than one directory for scripts, so I don't know if making the above changes will redirect all cgi requests to the new .../cgiirc directory or not. But unless you tell apache there are scripts there and make the directory ExecCGI, they won't execute. You may need to qualify the path for the scripts so that the cgi requests go to /cgiirc/irc.cgi, if the ScriptAlias is like mine and points to /usr/lib/cgi-bin.
Brian Densmore
-----Original Message----- From: Brian Kelsay
revise that, I think it is /usr/lib/cgi-bin/cgiirc
Brian Kelsay
"Brian Kelsay" 10/01/04 03:39PM >>>
The scripts for cgiirc live in /usr/share/cgiirc.
Kclug mailing list Kclug@kclug.org http://kclug.org/mailman/listinfo/kclug
I'm trying to digest what you said. I just got home and want to get this working tonight. I finished w/ httpd.conf before I left work and did an apache restart. I typed in the direct path www.mydomain.com/cgiirc/index.html and I got the standard cgiirc redirect to www.mydomain.com/cgi-bin/cgiirc/irc.cgi . When I attempt to login however, I get "Access Denied: No connections Allowed". My guess is that I need the second part of what you posted about the directory stuff, but not the script alias, to allow the specific cgi script to run. Is this correct? How do you "qualify the path for the scripts so that the cgi requests go to /cgiirc/irc.cgi, if the ScriptAlias is like mine and points to /usr/lib/cgi-bin"
Brian Densmore wrote:
make sure there is a line that looks something like this:
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/cgiirc/
This tells apache where to find script directories. (I think that is the correct syntax)
Also you'll need a section like this:
<Directory /usr/lib/cgi-bin/cgiirc/> AllowOverride None Options ExecCGI Order deny,allow Allow from all
</Directory>
Make sure to remember the final / on the directory names. I've never used more than one directory for scripts, so I don't know if making the above changes will redirect all cgi requests to the new .../cgiirc directory or not. But unless you tell apache there are scripts there and make the directory ExecCGI, they won't execute. You may need to qualify the path for the scripts so that the cgi requests go to /cgiirc/irc.cgi, if the ScriptAlias is like mine and points to /usr/lib/cgi-bin.
-----Original Message----- From: Brian Kelsay
revise that, I think it is /usr/lib/cgi-bin/cgiirc
On Friday 01 October 2004 05:12 pm, Brian Kelsay wrote:
When I attempt to login however, I get "Access Denied: No connections Allowed".
Since that's not a browser or Apache error, I would suggest that your script is running just fine, but your config.cgi or conf.include.cgi or whatever hasn't yet been told how many logins it can accept.
As to your question about what port Apache is listening on, it does listen on localhost (127.0.0.1:80), and I would expect that if it's Apache1 it also listens on either the IP it gets from the system or to "*". I would expect Apache2 to be more likely to listen only to localhost unless you tell it otherwise.
It's Apache 1.3.x. I figured out that I needed to move the cgiirc.config.full file from /usr/share/docs/cgiirc/examples/cgiirc.config.full to /etc/cgiirc I just got it working as I wrote this. I had the path set in 2 places (httpd.conf and cgiirc.config) In httpd.conf I removed the script aliases, added that multi line directory statement that allowed cgiirc files to run, edit /etc/cgiirc.config to have the script path read "script_nph = /cgi-bin/cgiirc/nph-irc.cgi script_form = /cgi-bin/cgiirc/client-perl.cgi script_login = /cgi-bin/cgiirc/irc.cgi"
I had too much on those last 3 lines. Absolute path was messing it up. I removed /usr/lib/ and it worked. On to the next project. I may end up doing a streaming server after I've read so much about it.
Jonathan Hutchins wrote:
On Friday 01 October 2004 05:12 pm, Brian Kelsay wrote:
When I attempt to login however, I get "Access Denied: No connections Allowed".
Since that's not a browser or Apache error, I would suggest that your script is running just fine, but your config.cgi or conf.include.cgi or whatever hasn't yet been told how many logins it can accept.
As to your question about what port Apache is listening on, it does listen on localhost (127.0.0.1:80), and I would expect that if it's Apache1 it also listens on either the IP it gets from the system or to "*". I would expect Apache2 to be more likely to listen only to localhost unless you tell it otherwise.
I added this: "ScriptAlias /cgiirc/ /usr/lib/cgi-bin/cgiirc/". If I hit www.domain.com/cgiirc it should redirect to the proper directory and find the index.html, correct?
Also added: <Directory /usr/lib/cgi-bin/cgiirc/> AllowOverride None Options ExecCGI Order deny,allow Allow from all </Directory>
per your instructions.
I just checked and now in the browser path when I try to login, www.domain.com/cgi-bin/cgiirc/irc.cgi, hit login button and I get http://192.168.0.50/usr/lib/cgi-bin/cgiirc/irc.cgi and a 404 message. WTF? "The requested URL /usr/lib/cgi-bin/cgiirc/irc.cgi was not found on this server. Apache/1.3.27 Server at 127.0.0.1 Port 80"
---------------------------------------------- Somewhere there is a village missing an idiot.