You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by rafet <ra...@maytap.org> on 2005/08/13 23:52:49 UTC
[users@httpd] mime type problem on .html file?
Hi,
the virtualhost's directoryindex has the index.html defined with it.
So, when I browse the ip address I get the page without any problem.
But since the page supposed to run as SSI page, I
had to add these in the .htaccess file:
------------------
Options +ExecCGI +Includes
AddType text/x-server-parsed-html .html
AddOutputFilter INCLUDES .html
----------------------
After adding these, the same index.html file is not being recognized
by my browser (I tried from other computers, they dont recognize
either) and a dilog box appears and asks me to "open, save or cancel"
the file. The strange thing is if I browse the page
http://206.131.254.24/index.html I can
see the page without any problem, when I browse it
http://206.131.254.24
than I the browser asks me to save the file.
Has anyone run into something like this ? What could I be missing or
doing wrong ?
Thanks and best regards.
Rafet M. Dagdelen
---------------------------------------------------------------------
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
Re: [users@httpd] mime type problem on .html file?
Posted by Joshua Slive <js...@gmail.com>.
On 8/13/05, rafet <ra...@maytap.org> wrote:
> Hi,
>
>
> the virtualhost's directoryindex has the index.html defined with it.
> So, when I browse the ip address I get the page without any problem.
> But since the page supposed to run as SSI page, I
> had to add these in the .htaccess file:
> ------------------
> Options +ExecCGI +Includes
> AddType text/x-server-parsed-html .html
The above directive should be removed. It is not needed with the
below directive, and is certainly the cause of your problems.
> AddOutputFilter INCLUDES .html
Joshua.
---------------------------------------------------------------------
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