Apache Server Side Includes Won't Work

Apache Server Side Includes Won't Work

Post by Lou Perso » Sat, 03 Jun 1995 04:00:00



Hello all.  Thank you in advance for reading this and considering
my problem:

I cannot get server side includes to work in Apache 0.6.2
on Solaris 2.4.

------
I compiled setting

CFLAGS= -g -DMULTI_ADDRESS_BIND -DVIRTUAL_HOST
-DDBM_AUTH -DXBITHACK

------

I added

AddType text/x-server-parsed-html .html

to srm.conf

------

My access.conf looks like:

<Directory /dttree/main>

        Options Indexes FollowSymLinks IncludesNOEXEC
        AllowOverride None
        AuthGroupFile /dev/null
        AuthName ID and Password required
        AuthType Basic
        <Limit GET>
                require valid-user
        </Limit> </Directory>

Does anyone know what I am doing/not doing correctly?
Thank you very much for your help.

________________________________________________________________

 
 
 

Apache Server Side Includes Won't Work

Post by Lou Perso » Mon, 05 Jun 1995 04:00:00


________________________________________________________________


> Hello all.  Thank you in advance for reading this and considering
> my problem:

> I cannot get server side includes to work in Apache 0.6.2
> on Solaris 2.4.

> I added

> AddType text/x-server-parsed-html .html

> to srm.conf

The problem was in the srm.conf file.  

1) Why does
        AddType text/x-server-parsed-html .html NOT work bu
        AddType text/x-server-parsed-html html does work?

2) I had to comment out
        AddType text/html html

3) Make sure directory has a access clause in access.conf

 
 
 

Apache Server Side Includes Won't Work

Post by Michael Kels » Mon, 05 Jun 1995 04:00:00



[...]
|> 1) Why does
|>   AddType text/x-server-parsed-html .html NOT work bu
|>   AddType text/x-server-parsed-html html does work?

Because the argument line to "AddType" is supposed to be of the same syntax
as an entry in a .mime.types configuration file.  In that context, the dot
(".") is used as a delimiter between the filename and filetype, _not_ as
part of the filetype string itself.

Your line

|>   AddType text/x-server-parsed-html .html NOT work bu

would mark a file such as "foo_bar..html" as server-parsed HTML.

                                                -- Mike Kelsey
--
[ My opinions are not endorsed by SLAC, Caltech, or the US government ]
 "I've seen things you people wouldn't believe.  Attack ships on fire
  off the shoulder of Orion. I've watched C-beams glitter in the dark
  near the Tannhauser Gate.  All these memories will be lost in time,
  like tears in rain."                                    -- Roy Baty

 
 
 

Apache Server Side Includes Won't Work

Post by Stef » Sat, 17 Jun 1995 04:00:00


: My access.conf looks like:

: <Directory /dttree/main>

:         Options Indexes FollowSymLinks IncludesNOEXEC
                                         ^^^^^^^^^^^^^^

IncludesNoExec disables execution in the directories stated.

Use a different option here...

Steff


: URL: http://sw.cse.bris.ac.uk/
: Make the world a better place - Use Un*x!!!

 
 
 

1. Apache - Can't get Server Side Includes Working

First, are there any specific Apache news groups?  I looked and didn't find
any on my server.

  Failing that, can anyone help me configure my Apache server to accept
server side includes?

  I've checked the /etc/httpd/conf files.

        * The mod_include.so is there and loaded in the httpd.conf
          file.
        * I have the "Options Indexes Includes FollowSymLinks" line
          turned on in the access.conf
        * I have the line <!--#include file="foo.html"--> in the
          original file (test.html)
        * the file (foo.html) is in the same (html) directory, and is
          world readable.

  Still, when I load the test page, I get NOTHING from the included file.

  The logs (/var/log/httpd) don't give any indication of an error or
permissions problem.

  What am I missing???

--

    Your Servant,                     <><

_________________________________________________________________________
    "Never laugh at live dragons, Bilbo you fool!"
                  --Bilbo, after a scorching from Smaug.

2. TkDesk

3. getting server side includes to work with apache server

4. installing patch to 13

5. Problem getting Server Side Include to work on IBM HTTP Server (Apache Build).

6. install from floppy (ASAP doing now!!!)

7. Apache, Server Side Include: include

8. Caching Images

9. Problem getting server side includes working on Apache

10. HELP: Can't do Apache server side includes

11. Apache 1.1.1 and Server Side Includes

12. Server Side Includes - Apache