Skip to content

Commit 273ce2a

Browse files
committed
2 parents f19f729 + 5b7be4b commit 273ce2a

File tree

21 files changed

+564
-39
lines changed

21 files changed

+564
-39
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
/NOTAS.txt
2-
/TMP/
2+
/TMP/*
33
/test.sh
4+
test.sh

Accesos_Directos/firefox-developer.desktop

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ GenericName=Web Browser for Developers
77
GenericName[es]=Navegador web
88
X-GNOME-FullName=Firefox Developer
99
X-GNOME-FullName[es]=Navegador web Firefox Developer
10-
Exec=.local/bin/firefox-developer %u -P Firefox-Developer
10+
Exec=$HOME/.local/bin/firefox-developer -P Firefox-Developer %u
1111
Terminal=false
1212
X-MultipleArgs=false
1313
Type=Application

Accesos_Directos/firefox-nightly.desktop

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ GenericName=Web Browser
77
GenericName[es]=Navegador web
88
X-GNOME-FullName=Firefox Nightly Web Browser
99
X-GNOME-FullName[es]=Navegador web Firefox Nightly
10-
Exec=.local/bin/firefox-nightly %u -P Firefox-Nightly
10+
Exec=$HOME/.local/bin/firefox-nightly -P Firefox-Nightly %u
1111
Terminal=false
1212
X-MultipleArgs=false
1313
Type=Application

Agregar_Repositorios.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ function agregar_llaves() {
5050
echo -e "$verde Agregando clave para$rojo Docker$gris"
5151
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys F76221572C52609D
5252

53+
## Heroku
54+
echo -e "$verde Agregando clave para$rojo Heroku$gris"
55+
curl -L https://cli-assets.heroku.com/apt/release.key | sudo apt-key add -
56+
5357
# Mi propio repositorio en launchpad
5458
echo -e "$verde Agregando clave para$rojo Fryntiz Repositorio$gris"
5559
gpg --keyserver keyserver.ubuntu.com --recv-key B5C6D9592512B8CD && gpg -a --export $PUBKRY | sudo apt-key add -

Apache2/etc/apache2/ports.conf

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# If you just change the port or add more ports here, you will likely also
2+
# have to change the VirtualHost statement in
3+
# /etc/apache2/sites-enabled/000-default.conf
4+
5+
Listen 80
6+
7+
<IfModule ssl_module>
8+
Listen 443
9+
</IfModule>
10+
11+
<IfModule mod_gnutls.c>
12+
Listen 443
13+
</IfModule>
14+
15+
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<VirtualHost *:80>
2+
ServerAdmin tecnico@fryntiz.es
3+
DocumentRoot /var/www/html
4+
ErrorLog ${APACHE_LOG_DIR}/error.log
5+
CustomLog ${APACHE_LOG_DIR}/access.log combined
6+
</VirtualHost>
7+
8+
9+
#Algunas directivas útiles:
10+
ServerName localhost
11+
#ServerAlias localhost.local
12+
#ServerAlias www.localhost.local
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<VirtualHost privado.local:80>
2+
ServerAdmin tecnico@fryntiz.es
3+
DocumentRoot /var/www/html/Privado
4+
ErrorLog ${APACHE_LOG_DIR}/error.log
5+
CustomLog ${APACHE_LOG_DIR}/access.log combined
6+
<Directory /var/www/html/Privado/>
7+
AllowOverride All
8+
</Directory>
9+
</VirtualHost>
10+
11+
12+
#Algunas directivas útiles:
13+
ServerName privado.local
14+
#ServerAlias privado.local
15+
#ServerAlias www.privado.local
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<VirtualHost publico.local:80>
2+
ServerAdmin tecnico@fryntiz.es
3+
DocumentRoot /var/www/html/Publico
4+
ErrorLog ${APACHE_LOG_DIR}/error.log
5+
CustomLog ${APACHE_LOG_DIR}/access.log combined
6+
</VirtualHost>
7+
8+
9+
#Algunas directivas útiles:
10+
ServerName publico.local
11+
#ServerAlias localhost.local
12+
#ServerAlias www.localhost.local

Apache2/www/html/Privado/.htaccess

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#Bloquear descarga del htaccess
2+
<Files .htaccess>
3+
Order allow,deny
4+
Deny from all
5+
</Files>
6+
7+
#Bloquear descarga del htpasswd
8+
<Files .htpasswd>
9+
Order allow,deny
10+
Deny from all
11+
</Files>
12+
13+
#Permitir mostrar directorios
14+
Options +Indexes
15+
16+
#Quitar atributos al listar directorios
17+
IndexOptions -FancyIndexing
18+
19+
20+
#Proteger mediante contraseña --> 123456, comando para añadir usuario: htpasswd -c /var/www/.htpasswd usuario
21+
AuthType Basic
22+
AuthName "Zona Privada"
23+
AuthUserFile /var/www/.htpasswd
24+
Require valid-user
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#Bloquear descarga del htaccess
2+
<Files .htaccess>
3+
Order allow,deny
4+
Deny from all
5+
</Files>
6+
7+
#Bloquear descarga del htpasswd
8+
<Files .htpasswd>
9+
Order allow,deny
10+
Deny from all
11+
</Files>
12+
13+
#Permitir mostrar directorios
14+
Options +Indexes
15+
16+
#Quitar atributos al listar directorios
17+
IndexOptions -FancyIndexing
18+
19+
AuthType Basic
20+
AuthName "Zona Pública"
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<!DOCTYPE html>
2+
<?php
3+
/**
4+
* @author Raúl Caro Pastorino
5+
* @copyright Copyright © 2017 Raúl Caro Pastorino
6+
* @license https://www.gnu.org/licenses/gpl-3.0-standalone.html
7+
*/
8+
?>
9+
<html lang="es">
10+
<head>
11+
<meta charset="utf-8">
12+
<title>Gestores de contenido</title>
13+
<meta name="description" content="Gestores de contenido"/>
14+
<meta name="keywords" content="programa, script, php, programación, Raúl Caro Pastorino, Fryntiz"/>
15+
<meta name="author" content="Raúl Caro Pastorino"/>
16+
</head>
17+
<body>
18+
<?php
19+
function listar_archivos($carpeta){
20+
if(is_dir($carpeta)){
21+
if($dir = opendir($carpeta)){
22+
while(($archivo = readdir($dir)) !== false){
23+
if($archivo != '.' && $archivo != '..' && $archivo != '.htaccess'){
24+
echo '<TR><TD><a target="_blank" href="'.$carpeta.'/'.$archivo.'">'.$archivo.'</a></TD></TR>';
25+
}
26+
}
27+
closedir($dir);
28+
}
29+
}
30+
}
31+
?>
32+
</body>
33+
</html>

Apache2/www/html/Publico/.htaccess

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#Bloquear descarga del htaccess
2+
<Files .htaccess>
3+
Order allow,deny
4+
Deny from all
5+
</Files>
6+
7+
#Bloquear descarga del htpasswd
8+
<Files .htpasswd>
9+
Order allow,deny
10+
Deny from all
11+
</Files>
12+
13+
#Permitir mostrar directorios
14+
Options +Indexes
15+
16+
#Quitar atributos al listar directorios
17+
IndexOptions -FancyIndexing
18+
19+
AuthType Basic
20+
AuthName "Zona Pública"

Apache2/www/html/favicon.ico

5.8 KB
Binary file not shown.

Apache2/www/html/favicon.png

670 Bytes
Loading

Apache2/www/html/index.php

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
<!DOCTYPE html>
2+
<?php
3+
/**
4+
* @author Raúl Caro Pastorino
5+
* @copyright Copyright © 2017 Raúl Caro Pastorino
6+
* @license https://www.gnu.org/licenses/gpl-3.0-standalone.html
7+
*/
8+
?>
9+
<html lang="es">
10+
<head>
11+
<meta charset="utf-8">
12+
<title>Servidor WEB Apache2 en localhost</title>
13+
<meta name="description" content="Servidor WEB Apache2 en localhost"/>
14+
<meta name="keywords" content="programa, script, php, programación, Raúl Caro Pastorino, Fryntiz"/>
15+
<meta name="author" content="Raúl Caro Pastorino"/>
16+
<link rel="shortcut icon" href="./favicon.ico"/>
17+
<link rel="shortcut icon" href="./favicon.png"/>
18+
<link rel="stylesheet" href="./styles.css"/>
19+
<script src="./scripts.js"></script>
20+
</head>
21+
22+
<body>
23+
<div id="cajatitulo">
24+
<h1 id="titulo">Servidor WEB Apache2 en localhost</h1>
25+
<h2 id="subtitulo">Elige a que lugar del servidor acceder</h2>
26+
</div>
27+
28+
<?php
29+
if ($_SERVER['SERVER_ADDR'] == '::1') {
30+
$direccion = 'localhost';
31+
} else {
32+
$direccion = $_SERVER['SERVER_ADDR'] ?? 'localhost';
33+
}
34+
?>
35+
36+
<div id="cajacontenido">
37+
<ul>
38+
<li>
39+
<a href="
40+
<?= 'http://'.$direccion.'/Publico'; ?>"
41+
title="Sitio Público">
42+
Sitio Público
43+
</a>
44+
</li>
45+
46+
<li>
47+
<a href="
48+
<?= 'http://'.$direccion.'/Privado'; ?>"
49+
title="Sitio Privado">
50+
Sitio Privado
51+
</a>
52+
</li>
53+
</ul>
54+
</div>
55+
56+
57+
<div id="cajafooter">
58+
<footer>
59+
<p id="autor">
60+
Raúl Caro Pastorino
61+
</p>
62+
63+
<p id="licencia">
64+
Proyecto bajo licencia <a href="https://www.gnu.org/licenses/gpl-3.0-standalone.html" title="Licencia GPLv3" target="_blank">GPLv3</a>
65+
<br />
66+
Licencia libre con reconocimiento de autoría y proyectos derivados bajo las mismas condiciones
67+
</p>
68+
69+
<p id="repositorios">
70+
<a href="https://github.com/fryntiz" title="Repositorios Oficiales de Raúl Caro Pastorino" target="_blank">Repositorios en GitHub Oficial del desarrollador</a>
71+
</p>
72+
73+
<p id="fecha">
74+
<?=date('d-m-Y H:i');?>
75+
</p>
76+
</footer>
77+
</div>
78+
</body>
79+
</html>

Apache2/www/html/scripts.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/**
2+
* @author Raúl Caro Pastorino
3+
* @copyright Copyright © 2017 Raúl Caro Pastorino
4+
* @license https://www.gnu.org/licenses/gpl-3.0-standalone.html
5+
*/

Apache2/www/html/styles.css

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
@charset "UTF-8";
2+
/**
3+
* @author Raúl Caro Pastorino
4+
* @copyright Copyright © 2017 Raúl Caro Pastorino
5+
* @license https://www.gnu.org/licenses/gpl-3.0-standalone.html
6+
*/
7+
8+
9+
body {
10+
margin: 0;
11+
background-color: black;
12+
background-image: url('../images/patron.jpg');
13+
}
14+
15+
16+
/*
17+
Aquí se contienen los estilos generales
18+
No deben afectar a la aplicación de ningún modo
19+
*/
20+
21+
22+
/*
23+
***********************
24+
Título
25+
***********************
26+
*/
27+
#cajatitulo {
28+
margin: 15px 0;
29+
width: 100%;
30+
text-align: center;
31+
background-color: #50c936;
32+
border-top: 3px groove #ffe74a;
33+
border-bottom: 3px groove #ffe74a;
34+
}
35+
36+
#cajatitulo #titulo {
37+
color: #ff0f00;
38+
font-size: 2.4em;
39+
text-shadow:
40+
2px 2px 2px black,
41+
-2px 2px 2px black,
42+
2px -2px 2px black,
43+
-2px -2px 2px black;
44+
}
45+
46+
#cajatitulo #subtitulo {
47+
color: #fff06a;
48+
text-shadow: 2px 2px 2px black;
49+
}
50+
51+
52+
/*
53+
***********************
54+
Contenido
55+
***********************
56+
*/
57+
#cajacontenido {
58+
margin: 15px auto;
59+
padding: 6px 0;
60+
min-width: 300px;
61+
max-width: 800px;
62+
background-color: #ffffff;
63+
border: 3px solid #50c936;
64+
border-radius: 8px;
65+
}
66+
67+
68+
/*
69+
***********************
70+
Footer
71+
***********************
72+
*/
73+
#cajafooter {
74+
width: 100%;
75+
text-align: center;
76+
background-color: #ffffff;
77+
border-top: 3px solid #50c936;
78+
border-bottom: 3px solid #50c936;
79+
}
80+
81+
#cajafooter footer {
82+
margin: auto;
83+
min-width: 300px;
84+
max-width: 800px;
85+
}
86+
87+
#cajafooter #autor {
88+
font-size: 1.6em;
89+
border-bottom: 2px solid black;
90+
}
91+
92+
#cajafooter #licencia {
93+
font-weight: bold;
94+
font-style: italic;
95+
}
96+
97+
#cajafooter #repositorios a {
98+
color: orange;
99+
font-weight: bolder;
100+
}
101+
102+
#cajafooter #fecha {
103+
color: #ff2600;
104+
font-size: 1.6em;
105+
border-top: 2px solid black;
106+
border-bottom: 2px solid black;
107+
text-shadow:
108+
1px 1px 1px #000000,
109+
-1px 1px 1px #000000,
110+
1px -1px 1px #000000,
111+
-1px -1px 1px #000000;
112+
}

0 commit comments

Comments
 (0)