I'm using python for my intelligent web contect creation. I installed apache 2.0.54-r32 and mod_python 3.1.4-r1 and enabled -D PYTHON at the /etc/conf.d/apache2 file. I use this .htaccess file: <IfModule mod_python.c> AddHandler python-program .py AddHandler python-program .phtml PythonHandler mainprogramfile PythonDebug On PythonAutoReload On </IfModule> And edited the /etc/mime.types file that the phtml file is a text/html file, not the original type. I use this like: http://www.something.hu/page.phtml The python program gets the handling, it generats a html text, and puts back to the client via the mod_python and the apache. This mechanism working well, but after i upgraded to the apache 2.0.54-r30 version it not handling correctly the mime type. My browser wants to download the file not render it on screen, because of unknown file type. If i save that file and open with an editor it shows the correct content, so the mod_python and everything else is working well, just the mime.type recognition or something with it is wrong. This was appear after i upgraded to the apache 2.0.54-r30 version (from apache 2.0.54-r14 i think). Oh, if i use the http://www.something.hu/main.py link, its working well. Just the phtml is wrong. Reproducible: Always Steps to Reproduce: 1. 2. 3. my `emerge info` is: Portage 2.0.52-r1 (hardened/x86/2.6, gcc-3.4.3-20050110, glibc-2.3.4.20050125- r1, 2.6.11-hardened-r15-mars-03 i686) ================================================================= System uname: 2.6.11-hardened-r15-mars-03 i686 Intel(R) Celeron(R) CPU 2.60GHz Gentoo Base System version 1.12.0_pre8 dev-lang/python: 2.4.1-r1 sys-apps/sandbox: 1.2.13 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.20 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium4 -mtune=pentium4 -mfpmath=sse -pipe -fomit-frame- pointer -msse -mmmx" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /opt/openjms/config /usr/kde/2/share/config /usr/kde/3.4/e nv /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr /lib/X11/xkb /usr/share/config /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=pentium4 -mtune=pentium4 -mfpmath=sse -pipe -fomit-frame- pointer -msse -mmmx" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig buildpkg distlocks fixpackages sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.mirror.icd.hu/ ftp://ftp.gentoo.mesh- solutions.com/gentoo/ ftp://mirror.nutsmaas.nl/gentoo/ ftp://linux.rz.ruhr-uni- bochum.de/gentoo-mirror/ ftp://212.219.56.146/sites/www.ibiblio.org/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/" LANG="hu_HU.utf8" LC_ALL="hu_HU.utf8" MAKEOPTS="-j2" PKGDIR="/usr/portage//packages/x86/" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage/" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X aac accounting acl acpi acpi4linux activefilter adns apache2 apm arts asm bash-completion bcmath berkdb bzip2 bzlib c++ calendar cap caps cdparanoia cdr cdrom chroot clamac clamav cracklib crypt ctype cups curl curlwrappers cyrus dba dbase dbm devfs devfs26 devmap dhcp dio directfb dlloader dmx dnd dnsdb drac dv dvb dvd dvdr dvdread encode erandom escreen esd ethereal evms2 exif extensions f2c fam fastcgi flac freetype fs ftp gcj gd gdbm geoip gif gmp gnutls gpm gtk gtk2 guile hal hardened iconv idled image imagemagick imap imlib inifile innodb intl ipv6 java javascript jikes jpeg jpeg2k junit lesstif libg++ libwww live lm_sensors logrotate lzo lzw lzw-tiff mad mcal memlimit mhash mime mmap mmx mmx2 mng motif mp3 mpeg mpeg4 mpm-prefork mpm-worker mppe- mppc msdav msession mysql ncurses nethack network nls nptl nptlonly ntlm oav objc odbc ogg oggvorbis openal opengl openssh pam parse-clocks pcap pcntl pcre pdf pdflib perl pg-vacuumdelay php pic png pnp posix postgres pthreads pwdb python qt readline recode rpc samba sasl sdl sftplogging shared sharedmem simplexml skey slang smime sms snmp sockets spell squid sse ssl svg svga symlink sysvipc tcltk tcpd threads tiff transcode truetype type1 underscores unicode usb userlocales vhosts virus-scan vorbis wmf x86 xfs xinetd xml xml2 xmlrpc xpm zero-penalty-hit zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LDFLAGS, LINGUAS
This may not be a mime.types issue. With the new-style apache, you have to explicetly turn on .htaccess files. Change the value of the Options in /etc/apache2/httpd.conf from None to one of the values listed here: http://httpd.apache.org/docs/2.0/mod/core.html#options This should make the changes in .htaccess take effect. If this doesn't work, then please reopen the bug with the contents of the /var/log/apache2/error_log or visit us in #gentoo-apache on irc.freenode.net