我无法显示来自CGI的图像

时间:2019-11-10 13:33:15

标签: javascript c bash apache cgi

我正在制作从https://thispersondoesnotexist.com/下载的照片相册,但是遇到无法显示图像的问题,我已经在文件夹中尝试了chmod 777,并且

<Directory />
    AllowOverride none
    Require all denied
</Directory>

<Directory /usr/local/apache2/img>
   Order Deny,Allow
   Allow from all
</Directory>


#!/bin/bash

echo "Content-type: text/html"
echo ""

echo '<html>'
echo '<head>'
echo '</head>'
echo '<body>'
echo '<h1>ALBUN DE FOTOS</h1>'
echo '<img src=img/imagen.jpg alt="imagen rota">'
echo "<p>hola</p>"
echo '</body>'
echo '</html>'

exit 0


0 个答案:

没有答案