Apache - Error al acceder a la web

 
Vista:

Error al acceder a la web

Publicado por KirVela (2 intervenciones) el 11/11/2015 17:23:41
Tengo uan maquina que utilizo como un servidor de desarrollo, que no es en mi local.
Es una maquina de Linux (Kernel) que tiene instalado Apache

Ejecuto para ver la version httpd -v
Server version: Apache/2.4.6 (Red Hat Enterprise Linux)
Server built: Aug 10 2015 07:39:34
netstat -tulpn | grep ':80'

Miro a ver el estado del servicio y veo que esta activo

Ejecuto sudo service httpd status

Redirecting to /bin/systemctl status httpd.service
httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled)
Active: active (running) since Fri 2015-10-30 12:31:09 CET; 1 weeks 5 days ago
Process: 11520 ExecReload=/usr/sbin/httpd $OPTIONS -k graceful (code=exited, status=0/SUCCESS)
Main PID: 27299 (httpd)
Status: "Total requests: 0; Current requests/sec: 0; Current traffic: 0 B/sec"
CGroup: /system.slice/httpd.service
├─11523 /usr/sbin/httpd -DFOREGROUND
├─11524 /usr/sbin/httpd -DFOREGROUND
├─11525 /usr/sbin/httpd -DFOREGROUND
├─11526 /usr/sbin/httpd -DFOREGROUND
├─11527 /usr/sbin/httpd -DFOREGROUND
└─27299 /usr/sbin/httpd -DFOREGROUND

Oct 30 12:31:09 FRPARCARRELAMP2 systemd[1]: Started The Apache HTTP Server.
Nov 01 03:15:01 FRPARCARRELAMP2 systemd[1]: Reloading The Apache HTTP Server.
Nov 01 03:15:01 FRPARCARRELAMP2 systemd[1]: Reloaded The Apache HTTP Server.
Nov 09 03:14:01 FRPARCARRELAMP2 systemd[1]: Reloading The Apache HTTP Server.
Nov 09 03:14:01 FRPARCARRELAMP2 systemd[1]: Reloaded The Apache HTTP Server.
Nov 11 13:55:39 FRPARCARRELAMP2 systemd[1]: Started The Apache HTTP Server.
Nov 11 14:02:36 FRPARCARRELAMP2 systemd[1]: Reloading The Apache HTTP Server.
Nov 11 14:02:36 FRPARCARRELAMP2 systemd[1]: Reloaded The Apache HTTP Server.



Pero intento acceder a http://10.24.203.93 y me da error
This webpage is not available


Que puedo tener mal configurado????
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder
Imágen de perfil de xve
Val: 103
Oro
Ha mantenido su posición en Apache (en relación al último mes)
Gráfica de Apache

Error al acceder a la web

Publicado por xve (284 intervenciones) el 12/11/2015 08:49:24
Hola, puede ser que no tengas ninguna carpeta web asignada a la IP? que todo este asignado a un dominio?
También pudiera ser que se hubiera borrado la carpeta donde indica el <VirtualHost>

Faltaría ver la configuración del Apache y los VirtualHost
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

Error al acceder a la web

Publicado por kirivela (2 intervenciones) el 12/11/2015 17:30:48
MI httpd-vhosts.conf es

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
<VirtualHost *:80>
    ServerAdmin webmaster@dummy-host.example.com
    DocumentRoot "/var/www/html/terminales/servidor_web"
    ServerName FRPARCARRELAMP2.corp.capgemini.com
    ServerAlias www.FRPARCARRELAMP2.corp.capgemini.com
    ErrorLog "/var/log/httpd/terminales.FRPARCARRELAMP2.corp.capgemini.com-error_log"
    CustomLog "/var/log/httpd/terminales.FRPARCARRELAMP2.corp.capgemini.com" common
 
<Directory "/var/www/html/terminales/servidor_web">
    allow from all
    Options All
    AllowOverride All
    Require all granted
</Directory>
 
 
CacheRoot /var/local/apache_cache
CacheEnable disk /Index/Secciones
CacheEnable disk /Index/Terminal
 
 
 
</VirtualHost>
 
<VirtualHost *:80>
    ServerAdmin webmaster@dummy-host2.example.com
    DocumentRoot "/var/www/html/virtual1"
    ServerName virtual1.FRPARCARRELAMP2.corp.capgemini.com
    ErrorLog "/var/log/httpd/virtual1.FRPARCARRELAMP2.corp.capgemini.com-error_log"
    CustomLog "/var/log/httpd/virtual1.FRPARCARRELAMP2.corp.capgemini.com-access_log" common
 
	CacheEnable disk /blog
    CacheRoot /var/local/apache_cache
    CacheDefaultExpire 3600
    CacheMinExpire 3600
</VirtualHost>
 
<VirtualHost *:80>
    ServerAdmin webmaster@dummy-host.example.com
    DocumentRoot "/var/www/html/terminales_desa/servidor_web"
    ServerName FRPARCARRELAMP2-desa.corp.capgemini.com
    ServerAlias www.FRPARCARRELAMP2-desa.corp.capgemini.com
    ErrorLog "/var/log/httpd/terminales.FRPARCARRELAMP2-desa.corp.capgemini.com-error_log"
    CustomLog "/var/log/httpd/terminales.FRPARCARRELAMP2-desa.corp.capgemini.com" common
 
<Directory "/var/www/html/terminales_desa/servidor_web">
    allow from all
    Options All
    AllowOverride All
    Require all granted
</Directory>
</VirtualHost>



Y mi httpd.conf

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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
ServerRoot "/etc/httpd"
 
Listen 80
 
Include conf.modules.d/*.conf

User apache
Group apache

ServerAdmin caiglesi@capgemini.com

<Directory />
    AllowOverride none
    Require all denied
</Directory>

DocumentRoot "/var/www/html"


<Directory "/var/www">
    AllowOverride None
    # Allow open access:
    Require all granted
</Directory>

# Further relax access to the default document root:
<Directory "/var/www/html">
     Options Indexes FollowSymLinks
    AllowOverride None
     Require all granted
</Directory>

<IfModule dir_module>
    DirectoryIndex index.html
</IfModule>

<Files ".ht*">
    Require all denied
</Files>

ErrorLog "logs/error_log"

LogLevel warn

<IfModule log_config_module>
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
    LogFormat "%h %l %u %t \"%r\" %>s %b" common

    <IfModule logio_module>
      # You need to enable mod_logio.c to use %I and %O
      LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
    </IfModule>

    CustomLog "logs/access_log" combined
</IfModule>

<IfModule alias_module>

    ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"

</IfModule>

<Directory "/var/www/cgi-bin">
    AllowOverride None
    Options None
    Require all granted
</Directory>

<IfModule mime_module>
   TypesConfig /etc/mime.types

 
<IfModule mime_magic_module>
    
    MIMEMagicFile conf/magic
</IfModule>


EnableSendfile on

UseCanonicalName On
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar
Imágen de perfil de xve
Val: 103
Oro
Ha mantenido su posición en Apache (en relación al último mes)
Gráfica de Apache

Error al acceder a la web

Publicado por xve (284 intervenciones) el 13/11/2015 08:32:01
El acceso que va por web, utiliza la configuración del archivo httpd.conf...

Puedes cambiar todos los : Require all denied por Require all granted para probar?

No dispongo de ningún Centos para probarlo, ya que utilizamos Debian, pero puede ser que estés denegando el acceso a la raiz, y archivos .ht*??
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar