<< Click to Display Table of Contents >> Navigation: Install > Web Servers > Additional Apache configuration |
Some demo projects in IntraWeb 17 require additional Apache configuration to ensure their URLs work correctly during development.
To handle custom paths like /demo/Guess/, Apache needs to know which local folder corresponds to that URL segment. This is done by defining virtual paths using the Alias directive, and allowing access to those folders using <Directory> blocks.
Include the IntraWeb 17 project config
At the end of the httpd.conf file in the C:\Apache24\conf\ directory, add this line:
Include "C:/src/IW17/DevSetup/httpd-iw17.conf"
Make sure to use forward slashes / in the path and check that the file httpd-iw17.conf exists.
We also need to add the following configuration at the end of the C:\src\IW17\DevSetup\httpd-iw17.conf file:
<Directory "C:/src/IW17/Demos">
Options Indexes FollowSymLinks Includes
AllowOverride All
Require all granted
</Directory>
Alias /demo/ "C:/src/IW17/Demos/"
This is required in order to make our application accessible via the desired custom URL path.
Creating the Demos Directory
Now let’s create a dedicated directory to store all demo projects.
1.Navigate to C:\src\IW17;
2.Inside this location, create a new folder named Demos. This will be the root for all your demonstration applications.
At this point, the additional Apache configuration is complete. You’re now ready to begin working with demo projects under the /demo/ URL path.