Bonjour!
J'ai un petit soucis avec mon serveur Apache sous Fedora 11, le site en local ne fonctionne pas sur le réseau local.
Bien entendu, beaucoup de topic traitent déjà ce problème. Je les ai consultés, mais malgrès les solutions proposées, ça ne fonctionne toujours pas 🙁
Voici le résultats des commandes souvent demandées :
httpd -S
VirtualHost configuration:
Syntax OK
netstat -laputen | grep LISTEN
tcp 0 0 0.0.0.0:47329 0.0.0.0:* LISTEN 0 6579 1654/rpc.statd
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 27 7102 1880/mysqld
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 0 5513 1414/rpcbind
tcp 0 0 0.0.0.0:10000 0.0.0.0:* LISTEN 0 7938 2179/perl
tcp 0 0 192.168.122.1:53 0.0.0.0:* LISTEN 0 7817 2127/dnsmasq
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 0 6816 1722/sshd
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 0 5656 1447/cupsd
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 0 49088 8748/sendmail: acce
tcp 0 0 :::111 :::* LISTEN 0 5518 1414/rpcbind
tcp 0 0 :::80 :::* LISTEN 0 46984 8041/httpd
tcp 0 0 :::22 :::* LISTEN 0 6818 1722/sshd
tcp 0 0 ::1:631 :::* LISTEN 0 5655 1447/cupsd
cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
#::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
cat /etc/httpd/conf/httpd.conf | grep Listen
# Listen: Allows you to bind Apache to specific IP addresses and/or
# Change this to Listen on specific IP addresses as shown below to
#Listen 12.34.56.78:80
Listen 80
cat /etc/httpd/conf/http.conf | grep ServerName
# ServerName gives the name and port that the server uses to identify itself.
ServerName 172.20.2.24
ifconfig
eth0 Link encap:Ethernet HWaddr 00:1C:25:C5:EE:EA
inet adr:172.20.2.24 Bcast:172.20.255.255 Masque:255.255.0.0
adr inet6: fe80::21c:25ff:fec5:eeea/64 Scope:Lien
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:75277 errors:0 dropped:0 overruns:0 frame:0
TX packets:12019 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
RX bytes:25589720 (24.4 MiB) TX bytes:1570545 (1.4 MiB)
Interruption:17
lo Link encap:Boucle locale
inet adr:127.0.0.1 Masque:255.0.0.0
adr inet6: ::1/128 Scope:Hôte
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:15635 errors:0 dropped:0 overruns:0 frame:0
TX packets:15635 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:0
RX bytes:4205305 (4.0 MiB) TX bytes:4205305 (4.0 MiB)
virbr0 Link encap:Ethernet HWaddr 4A:F1:02:83:CD:7F
inet adr:192.168.122.1 Bcast:192.168.122.255 Masque:255.255.255.0
adr inet6: fe80::48f1:2ff:fe83:cd7f/64 Scope:Lien
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:30 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:0
RX bytes:0 (0.0 b) TX bytes:5322 (5.1 KiB)
J'ai désactivé le firewall et le service iptables. SELinux accepte le port 80 http.
J'ai accès au site sur
http://localhost et
http://127.0.0.1, mais impossible avec sur
http://172.20.2.24/
Le serveur Apache tourne avec le user "apache" du groupe "apache".
Je suis sous Proxy!
Merci d'avance 🙂
Edith : Petite découverte, sous Firefox, dans les paramètres de connexion, si je désactive le Proxy, j'ai accès à
http://172.20.2.24/ (mais plus à internet). Mais toujours rien sur le réseau local 😐