Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 09/10/2016, à 13:05

kamelito

"var/www/html" fichier local non détecté

Bonjour,
je suis en local avec vagrant et la box "ubuntu/trusty64",
le host fonctionne bien, mais lorsque je vais en ligne de commande
cd /var/www/html, mon index local n'y est pas.

Voici mon 000-default.conf :

<VirtualHost *:80>
        # The ServerName directive sets the request scheme, hostname and port that
        # the server uses to identify itself. This is used when creating
        # redirection URLs. In the context of virtual hosts, the ServerName
        # specifies what hostname must appear in the request's Host: header to
        # match this virtual host. For the default virtual host (this file) this
        # value is not decisive as it is used as a last resort host regardless.
        # However, you must set it for any further virtual host explicitly.
        ServerName www.dksymfony.dev

        ServerAdmin webmaster@localhost

        # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
        # error, crit, alert, emerg.
        # It is also possible to configure the loglevel for particular
        # modules, e.g.
        #LogLevel info ssl:warn

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined

        # The root folder of this virtual host.
        DocumentRoot /var/www/html/

        # Theses lines only apply of the rewrite module is enabled.
        # This is a security enhancement recommanded by the nessus tool.
        <IfModule mod_rewrite.c>
          RewriteEngine on
          RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
          RewriteRule .* - [F]
        </IfModule>

        # These section tel Apache 2 that it can follow symbolic links (cf. ln -s)
        # on your system. This can avoid a lot of problems... as well at
        # it can be a security issue if the links points to /etc...
        # be carefull at what you link :)
        <Directory />
          Options FollowSymLinks
          AllowOverride All
        </Directory>

        <Directory /var/www/html>
          Options Indexes FollowSymLinks MultiViews
        # If you want to enable overrides, you should read:
     # http://httpd.apache.org/docs/2.0/mod/core.html#allowoverride
          AllowOverride All
          Order allow,deny
          Allow from all
        </Directory>


        # For most configuration files from conf-available/, which are
        # enabled or disabled at a global level, it is possible to
        # include a line for only one particular virtual host. For example the
        # following line enables the CGI configuration for this host only
        # after it has been globally disabled with "a2disconf".
        #Include conf-available/serve-cgi-bin.conf
</VirtualHost>

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet

merci.

Hors ligne

#2 Le 09/10/2016, à 13:41

jplemoine

Re : "var/www/html" fichier local non détecté

kamelito a écrit :

je suis en local avec vagrant et la box "ubuntu/trusty64",

aucune idée de ce que ça veut dire....

kamelito a écrit :

le host fonctionne bien, mais lorsque je vais en ligne de commande
cd /var/www/html, mon index local n'y est pas.

c'est à dire : "cd /var/www/html" n'a jamais listé le moindre fichier.
que fais-tu exactement ? peux-tu donner les retours en bonne et due forme.


Membre de l'ALDIL (Association Lyonnaise pour le Développement de l'Informatique Libre)
- En pro, après 20 ans de développement, administrateur Linux / Unix depuis Avril 2019.
- En privé, sous Ubuntu-Xubuntu depuis 2009.

Hors ligne