Set up
ssi~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Open the settings file and look for the following text:
#
# to use Server-parsedhtmlfiles
#
#AddType text/html. shtml
#AddHandler server-parsed. shtml
Delete the # symbol before the two lines of AddType and AddHandler. The AddType command will ask the server to return any attached file names
As a. shtml Web page, use text or HTML as the content format for passing back the file. AddHandler is used to instruct the server to place the contents of the file
Sent to mod_include for processing. After that, Mod_include will determine how to respond to such a file. Next, look for the following text:
There will be a line of options in this line of text and in the corresponding room. The original settings are:
Options Indexes followsymlinks MultiViews
Add includes at the end of the line, and the result looks like this:
Options Indexes followsymlinks MultiViews includes
This requires Apache to execute the Server-side includes program in the Htdocs subdirectory. In order for these changes to take effect, we must
Restart the server. Reactivate under Unix, execute "kill-hup ' cat/usr/local/apache/logs/httpd.pid '".
http://www.bkjia.com/PHPjc/317230.html www.bkjia.com true http://www.bkjia.com/PHPjc/317230.html techarticle Set ssi~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Open the settings file and look for these words: # #Touseserver-parsedhtmlfiles # ...