Se ofrecen a continuación unas posibles soluciones de los ejercicios Apache.
DocumentRoot "C:\tmp\apache-1"
<Directory "C:/xampp/htdocs">
#
...
DocumentRoot "C:\tmp\apache-1"
<Directory "C:\tmp\apache-1">
#
...
<IfModule dir_module>
DirectoryIndex index.php index.pl index.cgi index.asp index.shtml home.html index.htm \
default.php default.pl default.cgi default.asp default.shtml default.html default.htm \
home.php home.pl home.cgi home.asp home.shtml index.html home.htm
</IfModule>
<IfModule dir_module>
DirectoryIndex prueba-1.html index.php index.pl index.cgi index.asp index.shtml home.html index.htm \
default.php default.pl default.cgi default.asp default.shtml default.html default.htm \
home.php home.pl home.cgi home.asp home.shtml index.html home.htm
</IfModule>
Alias /prueba "C:\Users\XXX\Documents\IAW\PHP\prueba"
<Directory "C:\Users\XXX\Documents\IAW\PHP\prueba">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Require all granted
</Directory>
Confirme que las directivas modificadas a lo largo de estos ejercicios contienen los valores originales:
DocumentRoot "C:/xampp/htdocs"
<Directory "C:/xampp/htdocs">
#
...
Listen 80
<IfModule dir_module>
DirectoryIndex index.php index.pl index.cgi index.asp index.shtml index.html index.htm \
default.php default.pl default.cgi default.asp default.shtml default.html default.htm \
home.php home.pl home.cgi home.asp home.shtml home.html home.htm
</IfModule>
El alias sería el siguiente (donde XXX es el nombre del usuario de Windows):
Alias /iaw/php "C:\Users\XXX\Documents\IAW\PHP"
<Directory "C:\Users\XXX\Documents\IAW\PHP">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Require all granted
</Directory>