...

View Full Version : 404 not found with perl/cgi script



dark0s
01-17-2010, 01:17 PM
I writed my home.html page in /var/www with following form:

<form action="/cgi-bin/login.cgi" method="get" class="form-font">
<label>Already you registered?</label><br/><hr/><br/>
<fieldset><br/>
<legend>Insert your account</legend>
Email: <input type="text" name="email"/><br/><br/>
Password: <input type="text" name="password"/><br/><br/>
<input type="submit" value="Log In" /><br/><br/>
</fieldset>
</form>
I my login.cgi script in /usr/lib/cgi-bin directory. When I log in my home.html page, then firefox return 404 not found:

Not Found

The requested URL /process.cgi was not found on this server.
Apache/2.2.12 (Ubuntu) Server at localhost Port 80
What is the problem? I typed /cgi-bin/login.cgi and not process.cgi.

oesxyl
01-17-2010, 02:31 PM
I writed my home.html page in /var/www with following form:

I my login.cgi script in /usr/lib/cgi-bin directory. When I log in my home.html page, then firefox return 404 not found:

What is the problem? I typed /cgi-bin/login.cgi and not process.cgi.
is a redirection from login.cgi to process.cgi.
look inside login.cgi for a redirection line and if is not look for a server redirection, htacces or something like that.

best regards



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum