Bonjour,
Sur une machine tournant sous ubuntu, je cherche à rendre accessible le service gitlab depuis le réseau local, via l'ip: sans succès.
La difficulté vient du faite je veut que l'ip seul - http://IP - pointe toujours sur le dossier /var/www, contenant des sites webs en preprod, et que je n'y connait pas grand chose en configuration de apache x).
Actuelement, localement à la machine, le service est accessible avec les configurations suivantes:
fichier /etc/apache2/site-available/gitlab:

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
<VirtualHost *:80>
      ServerName gitlab
      DocumentRoot /home/gitlab/gitlab/public
      <Directory /home/gitlab/gitlab/public>
Options Indexes FollowSymLinks Includes
         AllowOverride all
         Options -MultiViews
      </Directory>
   </VirtualHost>

et dans le fichier host:


En local, J'accède donc au service via l'adresse http://gitlab. mais bien sur depuis le réseau, impossible d'y accèder.
J'ai essayer la config suivante:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
 
<VirtualHost *:8080>
      ServerName 192.168.x.x:8080
      DocumentRoot /home/gitlab/gitlab/public
      <Directory /home/gitlab/gitlab/public>
Options Indexes FollowSymLinks Includes
         AllowOverride all
         Options -MultiViews
      </Directory>
   </VirtualHost>

et dans le fichier host:

Code : Sélectionner tout - Visualiser dans une fenêtre à part
127.0.0.1:8080 	http://192.168.x.x:8080/

mais si je rentre l'adresse http://192.168.x.x:8080/ j'ai "Unable to connect" sous firefox.
J'ai essayé différentes combinaisons du genre, mais en faite j'avence complêtment à taton, ce qui en plus de ne pas fonctionner n'est pas vraiment la bonne méthode d'aprentissage, donc si quelqu'un pouvait m'éclairer un peut, je le remerci par avance ^^
Voici mon fichier ".../site-available/default":

NameVirtualHost *
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
<VirtualHost *:80>
        ServerAdmin webmaster@localhost
 
        DocumentRoot /var/www/
        <Directory />
                Options FollowSymLinks
                AllowOverride all
        </Directory>
        <Directory /var/www/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride all
                Order allow,deny
                allow from all
                # This directive allows us to have apache2's default start page
                # in /apache2-default/, but still have / go to the right place
               # RedirectMatch ^/$ /apache2-default/
        </Directory>
 
        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
        <Directory "/usr/lib/cgi-bin">
                AllowOverride None
                Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
                Order allow,deny
                Allow from all
        </Directory>
 
        ErrorLog /var/log/apache2/error.log
 
        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn
 
        CustomLog /var/log/apache2/access.log combined
        ServerSignature On
 
    Alias /doc/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>
 
</VirtualHost>
fichier hosts complet:

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
127.0.0.1 	gitlab
127.0.0.1	localhost.localdomain localhost user-system-name
# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters