5/28/2023 0 Comments Enable a2enmod centosThe following is an example of using an SSI with conditional statements to give us a different output depending on the time according to our server. You can view what modules are available and enabled by taking a look at /etc/apache2/mods-available/ and /etc/apache2/mods-enabled/ respectively.Įnable the include module and then restart Apache. Next we'll enable the include module using the a2enmod command. This will allow for Apache includes for this directory and will tell Apache to parse files with the extensions. We'll want our site's directory to at least have to following directives: AddOutputFilter INCLUDES. Check if modrewrite is already installed CentOS 7 and later versions have modrewrite installed and enabled by default. This will be located in /etc/apache2/sites-enabled/nf. Here are the steps to enable modrewrite for Apache in CentOS 1. This process will be slightly different if you're familiar with Apache on CentOS.įirst we'll need to add some directives to our Apache configuration. ![]() Enabling Apache Server-Side Includes on Ubuntu 14.04Īpache Server-Side Includes (SSIs) allows Apache to serve dynamically generated content to your webpage.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
June 2023
Categories |