-
Notifications
You must be signed in to change notification settings - Fork 0
/
Apuntes_Apache.txt
62 lines (46 loc) · 1.5 KB
/
Apuntes_Apache.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
Verificar Configuracion
=======================
httpd -t
Version del Apache
==================
httpd -v
Ver Modulos
===========
httpd -l
Modulos cargados en Apache
=========================
httpd -M
Host Virtuales en tu apache
===========================
httpd -S
+---------------------------------------------------------------------------------------------+
Creando un entorno de Web en Apache-Basico
Crear carpeta nombre del projecto
$ mkdir d7taller
Creando un enlace simbólico
$ sudo ln -s /home/angel/Documents/pry/d7taller/ /var/www/d7taller
Creando configuración de host
$ sudo cp /etc/apache2/sites-available/default /etc/apache2/sites-available/d7taller
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerAlias d7taller
DocumentRoot /var/www/d7taller
<Directory /var/www/d7taller>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error-d7.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access-d7.log combined
</VirtualHost>
Activando nueva configuración
$ sudo a2ensite d7taller
$ sudo service apache2 reload
Editar Hosts
$ sudo nano /etc/hosts -->agregamos
127.0.0.1 d7taller
+------------------------------------------------------------------------------------------------+