Package: apache2
Version: 2.2.3-3.2
Severity: normal

Today I moved from PHP4 to PHP5. With the same configuration, suddenly vhosts 
referenced 
via a /etc/hosts entry over my local network no longer work. vhosts referenced 
via a 
standard internet URL continue to work.

For example this virtual host:
<VirtualHost *:80>
        DocumentRoot /var/www/langex
        ServerName www.langex.net
        ServerAlias server langex.net *.langex.net
        ServerAdmin [EMAIL PROTECTED]
        CustomLog /var/log/apache2/access.log combined
</VirtualHost>

where "server" is pointed at an local network IP in /etc/hosts:

With PHP4 installed both "server" and "langex.net" result in the correct 
website being 
loaded in the browser, "server" via the local network IP and "langex.net" via 
the 
internet IP.

With PHP5 loaded "langex.net" continues to work as before. Pointing my browser 
at 
"server" results in a pop-up window asking if I want to save a file to disk.

For some websites the pop-up window asks if I want to save an "index.php" file 
(as 
though DirectoryIndex does not work) and for some the file field is blank.

My /etc/apache2/mods-available/dir.conf clearly contains index.php:
<IfModule mod_dir.c>
          DirectoryIndex index.html index.cgi index.pl index.php index.xhtml
</IfModule>

which clearly works for internet URLs like www.langex.net.

-- System Information:
Debian Release: 4.0
  APT prefers testing
  APT policy: (990, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-tp600e.3
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages apache2 depends on:
ii  apache2-mpm-prefork           2.2.3-3.2  Traditional model for Apache HTTPD

apache2 recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to