skip to Main Content

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


  1. Chosen as BEST ANSWER

    Solution is: add

    <IfModule alias_module> 
      ScriptAlias /cgi-bin "/var/www/akaleaf.com/cgi-bin/" 
    </IfModule>
    

    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). File akaleaf.com.conf contains: yadi.sk/i/vQdcAhtN3S4KGQ. Now love512.png doesn't work by cgi-bin/love512.png(but it work in from other folders, e.g. public_html), but script cgi-bin/story.pl work, which is more better.


  2. 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 access love512.png in other folders, even by providing relative paths.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search