[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Apache2 serves .html, but not .zip



I'm not sure if this should be an Apache-forum question, or a Debian-forum question, but since I'm running the Debian version....

I had a working server, but sometime this past weekend I did Debian update and/or I tweaked/deleted the wrong file - not sure what I did wrong, and have tinkered so much since then there's no way to forensic myself back to where I started and I have essentially started from scratch with my config files.

I've gotten my site mostly working, but one particular page has a link to a zip file ("Macblahblahblah.zip"), and when I click on it, it returns "not found". If I put a text file in that same directory, and name it "Mac.zip", and put a link to that file in my index.php file, I'm offered the opportunity to unzip it (which fails, of course, as it's not really a zip file). If I do the same, but name the file .txt or .html, the file opens as expected.

So, Apache2 serves up a .txt and a .html file with no problem; it tries to offer a text file named .zip. But it "doesn't find" an actual .zip file.

Here are some more details:



$ cat /etc/debian_version 
9.1




# apachectl -V
Server version: Apache/2.4.25 (Debian)
Server built:   2017-07-18T18:37:33
Server's Module Magic Number: 20120211:68
Server loaded:  APR 1.5.2, APR-UTIL 1.5.4
Compiled using: APR 1.5.2, APR-UTIL 1.5.4
Architecture:   64-bit
Server MPM:     prefork
  threaded:     no
    forked:     yes (variable process count)
Server compiled with....
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D APR_USE_SYSVSEM_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D DYNAMIC_MODULE_LIMIT=256
 -D HTTPD_ROOT="/etc/apache2"
 -D SUEXEC_BIN="/usr/lib/apache2/suexec"
 -D DEFAULT_PIDLOG="/var/run/apache2.pid"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="mime.types"
 -D SERVER_CONFIG_FILE="apache2.conf"




$ ls -lah
total 216M
drwxrwxr-x 2 acutech acutech 4.0K Sep 19 09:25 .
drwxr-xr-x 5 acutech acutech 4.0K Sep 19 09:25 ..
-rwxrw-r-- 1 acutech acutech  22M Sep 15 13:24 Generic_Plus_UFRII_v1.01_Set-up_x64.exe
-rw-r--r-- 1 acutech acutech   20 Sep 19 09:25 Mac.html
-rw-r--r-- 1 acutech acutech   20 Sep 19 09:25 Mac.txt
-rw-r--r-- 1 acutech acutech   13 Sep 19 09:23 Mac.zip
-rwxrw-r-- 1 acutech acutech  67M Oct  3  2016 UFRII_10.11.00_Mac.zip
-rwxrw-r-- 1 acutech acutech  60M May 25  2016 UFRII_v10.09.00_Mac.zip
-rwxrw-r-- 1 acutech acutech  68M Sep 15 13:27 UFRII_v10.13.01_Mac.zip




<snippet from index.php>

<h2>Step 1 - <a href="" size="150%">CLICK HERE</font></a> to download and install the Canon drivers.</h2>
<h2>Step 1 - <a href="" size="150%">CLICK HERE</font></a> to download and install the Canon drivers.</h2>
<h2>Step 1 - <a href="" size="150%">CLICK HERE</font></a> to download and install the Canon drivers.</h2>
<h2>Step 1 - <a href="" size="150%">CLICK HERE</font></a> to download and install the Canon drivers.</h2>



<VirtualHost *:80>
...
<Directory />
Options Indexes Includes FollowSymlinks
AllowOverride None
Require all granted
</Directory>
...
</VirtualHost>


Any help would be appreciated. Thanks!


--
Kent West                    <")))><
Westing Peacefully - http://kentwest.blogspot.com


Reply to: