Article:
  Apache Web-Serving with Mac OS X: Part 2
Subject:   Still not getting .shtml to work right.
Date:   2002-08-26 09:17:21
From:   oliverspapa
I have gone through this article a dozen (literally) times and all of the suggestions in this discussion and *still* cannot get the .shtml to work properly.


If I target it specifically, it works, so I know that it is able to process SSI (correct?). The problem is, when I swap out the .html with the modified .shtml, I get the default Apache page with the "Not seeing the page you expected..." message.


What gives? I have dumped my cache (it is set to never cache and has 0MB assigned to the file). I have stopped and started Apache. I have made sure that I was adding 'Include' to the proper directory. I even went in to DirectoryIndex and added 'index.shtml' before 'index.html'! I really do not know where to go from here.


I have gone so far as to try editing the ...conf.default page; add 'Includes' to my user file; and any other outside option I ran across. I know this should not be as difficult as it is, but for whatever reason it is.


I am brand new to doing any of this, but what could I be missing? I even tested the .conf for errors and got the 'Syntax ok' approval.


Please offer any suggestion you may have. I will greatly and definitely appreciate them.


Regards,
Craig

Full Threads Oldest First

Showing messages 1 through 4 of 4.

  • Still not getting .shtml to work right.
    2002-09-25 16:45:04  philocon [View]

    No chance to find the answer in the article. -
    It's here:
    Search for

    'DirectoryIndex index.html'

    add 'index.shtml'
    so it reads

    'DirectoryIndex index.html index.shtml'

    For further explanation read

    http://www.onlamp.com/pub/a/apache/2000/03/02/configuring_apache.html
    • Getting .shtml to work right!
      2006-06-22 05:24:21  carlco2 [View]

      sudo pico /etc/httpd/httpd.conf
      # DirectoryIndex: Name of the file or files to use as a pre-written HTML
      # directory index. Separate multiple entries with spaces.
      #
      <IfModule mod_dir.c>
      DirectoryIndex index.html index.shtml default.html default.shtml index.php index.cgi
      </IfModule>
      that should get about any default page working.

    • Still not getting .shtml to work right.
      2003-11-09 19:33:05  anonymous2 [View]

      I certainly had the same error, but adding index.shtml didn't help. It works as 127.0.0.1/index.shtml (so the shtml reading must be activated) but when i load 127.0.0.1 it goes to the Apache default page. My DirectoryIndex change looks like so:

      <IfModule mod_dir.c>
      DirectoryIndex index.html index.shtml
      </IfModule>

      Any suggestions?
    • Still not getting .shtml to work right.
      2003-03-29 22:55:31  anonymous2 [View]

      Thanks! That helped! :)