Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to make SSI work

Status
Not open for further replies.

alan123

MIS
Oct 17, 2002
149
US
I installed apache server on win2k, tried to create an .shtml page by using server side includes, however it doesn't work, I checked httpd.conf and uncomment:
AddType text/html .shtml
AddHandler server-parsed .shtml
then restarted server, why it cannot display .shtml page?
I read from somewhere I need to add "Options +Includes" to httpd.conf, I added this to the end of lines, but it still doesn't work. does it work on windows os?
 
It needs to go in your main server configuration here--->

<Directory &quot;/var/
#
# This may also be &quot;None&quot;, &quot;All&quot;, or any combination of &quot;Indexes&quot;,
# &quot;Includes&quot;, &quot;FollowSymLinks&quot;, &quot;ExecCGI&quot;, or &quot;MultiViews&quot;.
#
# Note that &quot;MultiViews&quot; must be named *explicitly* --- &quot;Options All&quot;
# doesn't give it to you.
#
Options Indexes FollowSymLinks +ExecCGI +Includes
...........................................................
And also in your vhost containers if you have one/more of them ...........--------->
<VirtualHost *>
.....yada yada yada ......
Options +ExecCgi +Includes IncludesNOEXEC Indexes

Having said that, I have no idea if the same config will work for win2K but gee, everyone uses includes either as a generator or end-user so there has to be a way!
 
wlwoman

Your post above has redundant code in it.

The following:

Options Indexes FollowSymLinks +ExecCGI +Includes

is just the same as:

Options All


Also, there is no need to repeat the directives inside a virtualhost unless you want that particular vhost to use a different config.

alan123

Can you post your full httpd.conf file and also details of what directory etc, that you are trying to get this to work in.

Hope this helps Wullie

sales@freshlookdesign.co.uk

The pessimist complains about the wind. The optimist expects it to change. The leader adjusts the sails. - John Maxwell
 
At some point in time it was necessary to list some options by name as Options All didn't produce the desired results and I added a directory-specific directive to overcome the failure. That may not be the case now and I'll have to experiment to see what I can get rid of! Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top