Welcome to the E-Blah Community!
We would like to welcome you to our community and invite you to register an account or login.
Being a registered member is important, as it gives you several advantages over the normal Guest status. After registering you will be able to download files and images, post messages, and access member-only portions of the forum - just to name a few. Registration is quick and simple, and only takes about a minute of your time.

E-Blah Community    Technical Support    Install Issues  ›  Forbidden (error 404) - Strange
Users Browsing Forum
Yahoo! Bot and 1 Guests

Forbidden (error 404) - Strange  This thread currently has 297 views. Print
1 Pages 1 Recommend Thread
moxys
February 19, 2008, 10:44am Report to Moderator Report to Moderator
E-Blah Member
Posts: 2
Posts Per Day: 0.01
Time Online: 30 minutes
After install I can work on my forum. All is ok.
The 2nd time I try to connect with the web navigator
http://www.mysite.com/cgi-bin/forum/

Error:

125
Forbidden
You don't have permission to access /cgi-bin/forum/ on this server.


Strange. After a little trouble I decide to use :

http://www.mysite.com/cgi-bin/forum/Blah.pl

and its work again.


How to be able to use http://www.mysite.com/cgi-bin/forum/ without trouble ?

Thanking you in advance for your help.




Logged Offline
Private Message Private message
Martin
February 19, 2008, 10:57am Report to Moderator Report to Moderator

I love E-Blah
10 Series Support Team
Posts: 4,558
Gender: Male
Posts Per Day: 3.14
Reputation: 98.60%
Reputation Score: +211 / -3
Time Online: 35 days 19 hours 25 minutes
Location: UK
Age: 50
You will have to use mod_rewrite: http://www.blahdocs.com/How_to_use_Mod_Rewrite

or

upload an index page to the forum folder that redirects, here's an example, copy and paste into a file called index.html. Edit it with your site details and upload.

Code
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta http-equiv="Refresh" content="0; url=http://www.yoursite.com/cgi-bin/forum/Blah.pl /">
<title>Your Title</title>
</head>
<body>
</body> 
</html>



Martin's Reputation: Increase
Logged Offline
Site Site Private Message Private message Reply: 1 - 3
moxys
February 20, 2008, 2:49am Report to Moderator Report to Moderator
E-Blah Member
Posts: 2
Posts Per Day: 0.01
Time Online: 30 minutes
Many thanks for your reply.

Index page with redirection is a great idea.
I have made this index.html page in my cgi-bin directory but this can not work (I suppose only .pl or .gci can work here).

I have made a directory named forum in the /www side with this index file and... same result with this navigator reply:  http://www.myrealsitename.com/cgi-bin/forum/Blah.pl%20/
Note the %20 I am not waiting for.  

Using mod_rewrite can be the solution.

When you search easy way you open the hard way (myself).



  
Logged Offline
Private Message Private message Reply: 2 - 3
Martin
February 20, 2008, 8:41am Report to Moderator Report to Moderator

I love E-Blah
10 Series Support Team
Posts: 4,558
Gender: Male
Posts Per Day: 3.14
Reputation: 98.60%
Reputation Score: +211 / -3
Time Online: 35 days 19 hours 25 minutes
Location: UK
Age: 50
Quoted Text
I have made this index.html page in my cgi-bin directory but this can not work (I suppose only .pl or .gci can work here).


This must be your server setup as I have index.html in the cgi-bin folder on a couple of my test sites.

Code
#!/usr/bin/perl -w
use strict;
use CGI qw/:standard/;
print redirect('http://www.yoursite.com/cgi-bin/forum/Blah.pl');


Just create a index.pl file with that code inside of it, upload it to the same directory that Blah.pl is in, and chmod it to 755 and anytime someone goes to index.pl they will be redirected to Blah.pl



Martin's Reputation: Increase
Logged Offline
Site Site Private Message Private message Reply: 3 - 3
1 Pages 1 Recommend Thread
Print

E-Blah Community    Technical Support    Install Issues  ›  Forbidden (error 404) - Strange