Step 1: If you haven't installed the APACHE server in Ubuntu, install the sudoapt-getinstallapache2 First Step 2: Create a symbolic link. sudoln-s/etc/apache2/mod-available/include. step 3 of load/etc/apache2/mod-enabled: Open/etc/apache2/sites-available/default
Step 1: If you have not installed the APACHE server in Ubuntu, install
Sudo apt-get install apache2
Step 2: Create a symbolic link.
Sudo ln-s/etc/apache2/mod-available/include. load/etc/apache2/mod-enabled
Step 3: Open the/etc/apache2/sites-available/default file and add the following code.
Sudo gedit/etc/apache2/sites-available/default
...
Options Indexes FollowSymLinks MultiViews + Includes
AllowOverride None
Order allow, deny
Allow from all
# This directive allows us to have apache2's default start page
# In/apache2-default/, but still have/go to the right place
# Commented out for Ubuntu
# RedirectMatch ^/$/apache2-default/
AddType text/html. shtml
AddOutputFilter between des. shtml
...
Step 4: restart Apache and create an ssitest file (linuxidc.shtml)
Then save it to the Apache website root directory. For example:/var/www /.
SSI Test Page
Step 5: test the SSI webpage.
Http: // localhost/linuxidc.shtml
If you can see your SHTML webpage, it means your configuration is successful! Congratulations !!