apache-configure¶
Creates and configures Apache's default index page
Apache Configure Task¶
This task handles the creation and placement of Apache's default index.html file using a template-based approach. It ensures proper configuration across different operating systems and Apache installations.
Requirements¶
- Apache Web Server must be installed
- Template file must be available
- Write permissions to web root directory
Template Variables¶
The task uses the following Machine parameters in the template:
- .Machine.Uuid
: Machine's unique identifier
- .Machine.Address
: Machine's IP address
- .Machine.Name
: Machine's hostname
Operating System Support¶
Path Configuration¶
- Photon OS:
/etc/httpd/html/index.html
- Other OS:
/var/www/html/index.html
Integration Points¶
- Uses
apache/template
parameter - Supports Machine parameter expansion
- Works with apache-install task
Template Usage¶
The task uses the template specified in apache/template
parameter to generate the index.html file. The template should be valid HTML and can include Machine parameter references.