You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Lynn Schaper <sc...@Colorado.EDU> on 2003/12/03 21:52:34 UTC
[users@httpd] SSI problem 1.3 vs. 2.0
I have a site that I'm upgrading from 1.3.26 to 2.0.48. SSI's are only
allowed for .shtml files in httpd.conf. Here's the 1.3.26 configuration
for SSI and override:
DocumentRoot "/usr/local/apache/htdocs"
<Directory "/usr/local/apache/htdocs">
Options Indexes FollowSymLinks Includes
AllowOverride All
Order allow,deny
Allow from all
</Directory>
AccessFileName .htaccess
<Files .htaccess>
Order allow,deny
Deny from all
</Files>
AddType text/html .shtml
AddHandler server-parsed .shtml
Users have added SSI for .html files by creating .htaccess in their
subdir under htdocs. The .htaccess file contains:
AddType text/x-server-parsed-html html
When I switch to apache2, instead of displaying, my browser tries to
download the .html files, telling me they are of the type
"text/x-server-parsed-html". Here are the related conf lines:
DocumentRoot "/usr/local/apache/htdocs"
<Directory "/usr/local/apache/htdocs">
Options Indexes FollowSymLinks Includes
AllowOverride All
Order allow,deny
Allow from all
</Directory>
AccessFileName .htaccess
<Files ~ "^\.ht">
Order allow,deny
Deny from all
</Files>
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
If I change the .htaccess file to (I remove the AddType):
AddHandler server-parsed html
it works fine under both versions.
My problem is that I'd rather not find and change all .htaccess files.
http://httpd.apache.org/docs-2.0/mod/mod_include.html says that
For backwards compatibility, the server-parsed handler also activates
the INCLUDES filter. As well, Apache will activate the INCLUDES
filter for any document with mime type text/x-server-parsed-html or
text/x-server-parsed-html3 (and the resulting output will have the
mime type text/html).
I'm not getting the behavior described in the second sentence. Is there
something I can add or change without changing individual .htaccess
files?
Lynn
--
Lynn Schaper Schaper@colorado.edu
Information Technology Services Central and Unix Services
University of Colorado at Boulder 303-492-3872
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
[users@httpd] Apache on Windows 2000 Server - Spikes to 100% cpu
Posted by Vern Six <Ve...@SpamRival.com>.
I'm having a problem that is particulary difficult for me to figure out.
My server is on a Windows 2000 Server. I have a simple web module that
I wrote in Delphi 7. This application connects to an Interbase database
for it's data, etc. Periodically, for no real traceable reason
APACHE.EXE spikes my CPU to 100% and everything grinds to a halt.
The database queries are highly optimized and the same problem does NOT
occur when I run it on IIS instead of Apache.
I'm curious if anyone has any ideas of where I should begin looking? I
would grealy appreciate any pointers no matter how small.
Thanks in advance,
Vern
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org