Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cgi problem

Status
Not open for further replies.

ady2k

Vendor
Jan 28, 2002
463
ID
I already configured the httpd.conf like:
ScriptAlias /netsaint/cgi-bin/ /usr/libexec/netsaint/cgi/
<Directory /usr/libexec/netsaint/cgi/>
Options ExecCGI
order deny,allow
deny from all
allow from 127.0.0.1
</Directory>

Alias /netsaint/ /usr/share/netsaint/
<Directory /usr/share/netsaint/>
Options None
order deny,allow
deny from all
allow from 127.0.0.1
</Directory>

And I browsed The error message :
Forbiden
You don't have a permission to access it.

I used apache 1.3 for linux
All the cgi files are in /usr/libexec/netsaint/cgi.
What's wrong with the ScriptAlias ?
Any idea to solve this problem.
Thank you.
 
The address you browse to is a little backwards, I guess that is a typo. :) When you use the Alias or ScriptAlias directive, it is relative to the DocumentRoot. The DocumentRoot is where your web pages are. I also noticed that you don't have quotes around your paths, i.e.
ScriptAlias /netsaint/cgi-bin/ &quot;/usr/libexec/netsaint/cgi/&quot;
and
<Directory &quot;/usr/libexec/netsaint/cgi&quot;>.

Note that you don't want the trailing slash in the container's path. You might also edit or uncomment the &quot;ServerName localhost&quot; directive. If all else fails, you might try the eth0 ip rather than the loopback ip.


 
I already used quotes also same problem.
I also tried &quot;ServerName localhost&quot; to &quot;ServerName eth0 IP address&quot;. I still found same problem.
Any Idea about that ?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top