folder tree
This is work for me (from index.html, typed akaleaf.com in browser (apache2))
<form action="love512.png" method="GET">
But this is not (even if I have love512.png in every folder)
<form action="../cgi-bin/love512.png" method="GET">
<form action="cgi-bin/love512.png" method="GET">
<form action="/cgi-bin/love512.png" method="GET">
<form action="/var/www/akaleaf.com/cgi-bin/love512.png" method="GET">
After press the button of these 4 versions of index.html I have “Not Found. The requested URL was not found on this server.” On first one correctly opens a love512.png image.
Every folder and file(starting with ‘www’ folder) have 777 access permission and chown to akaleaf(me) group
2
Answers
Solution is: add
in
/etc/apache2/apache.conf
file in some place(whatever I think)(don't forget to replace/var/www/akaleaf.com
to path of your site root folder). Fileakaleaf.com.conf
contains: yadi.sk/i/vQdcAhtN3S4KGQ. Now love512.png doesn't work bycgi-bin/love512.png
(but it work in from other folders, e.g. public_html), but scriptcgi-bin/story.pl
work, which is more better.The web server configuration file causes the server to have access only to the
/var/www/akaleaf.com/public_html
folder, which is why you’re unable to accesslove512.png
in other folders, even by providing relative paths.