Se ofrecen a continuación unas posibles soluciones de los ejercicios Apache.
<IfModule alias_module>
# ...
# 2021-09-16. Ejercicios Apache. Ejercicio 1
Alias /ejercicio-01 "C:\tmp\apache-1\e01"
<Directory "C:\tmp\apache-1\e01">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Require all granted
</Directory>
# ...
</IfModule>
<IfModule alias_module>
# ...
# 2021-09-16. Ejercicios Apache. Ejercicio 2
Alias /ejercicio-02/paginas "C:\tmp\apache-1\e02"
<Directory "C:\tmp\apache-1\e02">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Require all granted
</Directory>
# ...
</IfModule>
{
"label": "Abrir en localhost (Firefox)",
"command": "explorer",
"windows": {
"command": "C:\\Program Files\\Mozilla Firefox\\firefox.exe"
},
"args": [
"localhost/ejercicio-03/${relativeFile}"
],
"presentation": {
"reveal": "never"
}
},
{
"label": "Abrir en localhost (Chrome)",
"command": "explorer",
"windows": {
"command": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe"
},
"args": [
"localhost/ejercicio-03/${relativeFile}"
],
"presentation": {
"reveal": "never"
}
}
<IfModule alias_module>
# ...
# 2021-09-16. Ejercicios Apache. Ejercicio 3
Alias /ejercicio-03 "C:\tmp\apache-1\e03\archivos"
<Directory "C:\tmp\apache-1\e03\archivos">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Require all granted
</Directory>
# ...
</IfModule>
{
"label": "Abrir en localhost (Firefox)",
"command": "explorer",
"windows": {
"command": "C:\\Program Files\\Mozilla Firefox\\firefox.exe"
},
"args": [
"localhost/ejercicio-04/ficheros/${relativeFile}"
],
"presentation": {
"reveal": "never"
}
},
{
"label": "Abrir en localhost (Chrome)",
"command": "explorer",
"windows": {
"command": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe"
},
"args": [
"localhost/ejercicio-04/ficheros/${relativeFile}"
],
"presentation": {
"reveal": "never"
}
}
<IfModule alias_module>
# ...
# 2021-09-16. Ejercicios Apache. Ejercicio 4
Alias /ejercicio-04/ficheros "C:\tmp\apache-1\e04"
<Directory "C:\tmp\apache-1\e04">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Require all granted
</Directory>
# ...
</IfModule>
{
"label": "Abrir en localhost (Firefox)",
"command": "explorer",
"windows": {
"command": "C:\\Program Files\\Mozilla Firefox\\firefox.exe"
},
"args": [
"localhost/iaw/php/${relativeFile}"
],
"presentation": {
"reveal": "never"
}
},
{
"label": "Abrir en localhost (Chrome)",
"command": "explorer",
"windows": {
"command": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe"
},
"args": [
"localhost/iaw/php/${relativeFile}"
],
"presentation": {
"reveal": "never"
}
}
<IfModule alias_module>
# ...
# 2021-09-16. Ejercicios Apache. Ejercicio 5
Alias /iaw/php "C:\Users\NombreUsuario\Documents\IAW\PHP"
<Directory "C:\Users\NombreUsuario\Documents\IAW\PHP">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Require all granted
</Directory>
# ...
</IfModule>