View Full Version : Forbidden Error
langdell
10-12-2003, 12:32 AM
Please will someone tell me how I will rectify the following problem? I have tried installing in extra accounts but I still get the same error. I have set the permissions at 755.
Forbidden
You don't have permission to access /~res01075/cgi-bin/cp-app.cgi on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
--------------------------------------------------------------------------------
Apache/1.3.28 Server at 66.98.138.15 Port 80
Regards
ProWebUK
10-12-2003, 04:44 AM
from the look at that error, the file DOES NOT exist.
Chris
langdell
10-12-2003, 05:08 AM
To ensure that I have the correct server paths, eg /home/res01075/domains/res01075.com/public_html/cgi-bin/ccp51/cp-app.cgi, please will you tell me the server path for the root directory? I wish to use the IP address so I assume the URL for the cgi-bin would be something like http:66.98.138.15/~res01075/cgi-bin/ccp51?
Regards
ProWebUK
10-12-2003, 05:12 AM
Im not sure if DA has a preview facility like http://IP/~username/files, fairly sure it cant do that. either allow the domain to resolve or try it on a working domain :)
Chris
langdell
10-12-2003, 05:44 AM
Am I right in saying that the server path of the root directory is /home/res01075/domains/langdell.me.uk/www
ProWebUK
10-12-2003, 05:52 AM
/home/username/domains/domain.com/public_html/
/home/username/domains/domain.com/public_html/cgi-bin/
langdell
10-12-2003, 06:36 AM
You may be glad to know that I have now got the web site going. I used the resolved domain name and put all my cgi files into the proposed cgi-bin.
Cheers
ProWebUK
10-12-2003, 06:44 AM
good to know its working for you :)
Chris
langdell
10-12-2003, 07:02 AM
Hi,
Now if I want to put the administration area of my site in a secure area what URL do I use, eg https://www.esecuresite3.com/~res01075/cgi-bin/ccp51/cp-admin.cgi?
Regards
ProWebUK
10-12-2003, 07:58 AM
i think you use the private_html folder instead of the public_html folder :)
Chris
DirectAdmin Support
10-12-2003, 11:47 AM
Hello,
The cgi-bin from the public_html folder is used for the private html folder as well. So it's one central place for cgis. If you don't want it to be accessed via public_html, just add a check for port 443.
Also, you can't run scripts from /~username/cgi-bin/script.cgi :)
John
langdell
10-13-2003, 04:00 AM
How do I add a check for port 443? As mentioned above. Also referring to the above does that mean I put my cgi scripts into the public_html folder?
DirectAdmin Support
10-13-2003, 12:46 PM
Hello,
I do most of my work in php, so forgive any perl syntax errors, but the idea is the same:
#!/usr/bin/perl
if ($ENV{'SERVER_PORT'} != 443)
{
print "Content-type:text/html\n\n";
print "You must run this script via https!\n";
exit (1);
}
.... rest of code
John
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.