Bonjour tout le monde.
Mon but est d'héberger un petit site sur un raspberry pi3. J'ai installé apache2, php5 et tout le toutim, moralité le site fonctionne bien en local quand je tape 192.168.1.11 ( IP local de mon PI)
J'ai configuré ma liveBox pour quelle redirige le port 80 et 443 vers le raspberryPI.
Le soucis, c'est si j'essai de l'extérieur , la page ne charge pas. Et encore plus bizarre : ma livebox fait une redirection vers 192.168.1.11 ( ce qui n'a évidemment aucun sens hors de mon réseau local)
P.S : Je suis déjà au courant de l'impossibilité d'accéder a un serveur par une adresse publique , si le serveur et present sur le reseau local.
Quand je dis de l'exterieur, je veux bien dire par une autre ligne internet ou bien tout simplement en 3G avec mon tel portable.

J'avoue que je n'y comprend plus rien.

De l'aide serait la bienvenue


la commande ifconfig retourne ceci :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
eth0      Link encap:Ethernet  HWaddr b8:27:eb:b4:60:7c
          inet addr:192.168.1.11  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: xxx::xxx:xxx:xxx:xxx/64 Scope:Link
          inet6 addr: xxxx:cb08:82f1:e700:xxxx:8978:2a17:3a49/64 Scope:Global
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:216636 errors:0 dropped:12134 overruns:0 frame:0
          TX packets:177562 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:117495236 (112.0 MiB)  TX bytes:61105378 (58.2 MiB)
 
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:31353 errors:0 dropped:0 overruns:0 frame:0
          TX packets:31353 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1
          RX bytes:13802706 (13.1 MiB)  TX bytes:13802706 (13.1 MiB)
et voici le contenu de /etc/apache2/apache2.conf
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
Mutex file:${APACHE_LOCK_DIR} default
 
PidFile ${APACHE_PID_FILE}
 
Timeout 300
 
KeepAlive On
 
MaxKeepAliveRequests 100
 
KeepAliveTimeout 5
 
 
User ${APACHE_RUN_USER}
Group ${APACHE_RUN_GROUP}
 
HostnameLookups Off
 
ErrorLog ${APACHE_LOG_DIR}/error.log
 
LogLevel warn
 
# Include module configuration:
IncludeOptional mods-enabled/*.load
IncludeOptional mods-enabled/*.conf
 
# Include list of ports to listen on
Include ports.conf
 
 
# Sets the default security model of the Apache2 HTTPD server. It does
# not allow access to the root filesystem outside of /usr/share and /var/www.
# The former is used by web applications packaged in Debian,
# the latter may be used for local directories served by the web server. If
# your system is serving content from a sub-directory in /srv you must allow
# access here, or in any related virtual host.
<Directory />
        Options FollowSymLinks
        AllowOverride None
        Require all denied
</Directory>
 
<Directory /usr/share>
        AllowOverride None
        Require all granted
</Directory>
 
<Directory /var/www/>
        Options Indexes FollowSymLinks
        AllowOverride None
        Require all granted
</Directory>
 
#<Directory /srv/>
#       Options Indexes FollowSymLinks
#       AllowOverride None
#       Require all granted
#</Directory>
 
 
 
 
# AccessFileName: The name of the file to look for in each directory
# for additional configuration directives.  See also the AllowOverride
# directive.
#
AccessFileName .htaccess
 
#
# The following lines prevent .htaccess and .htpasswd files from being
# viewed by Web clients.
#
<FilesMatch "^\.ht">
        Require all denied
</FilesMatch>
 
 
#
# The following directives define some format nicknames for use with
# a CustomLog directive.
#
# These deviate from the Common Log Format definitions in that they use %O
# (the actual bytes sent including headers) instead of %b (the size of the
# requested file), because the latter makes it impossible to detect partial
# requests.
#
# Note that the use of %{X-Forwarded-For}i instead of %h is not recommended.
# Use mod_remoteip instead.
#
LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %O" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
 
# Include of directories ignores editors' and dpkg's backup files,
# see README.Debian for details.
 
# Include generic snippets of statements
IncludeOptional conf-enabled/*.conf
 
# Include the virtual host configurations:
IncludeOptional sites-enabled/*.conf
 
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet