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 15/02/2008, à 00:45

jnrt

listage de répertoire entre http et https différent +pbs

Bonsoir,

pourqoui ais-je un listage de fichiers/répertoire différent entre un acces en http et en https ?
les 2 pointent vers le même répertoire (virtualhost)

j'en ai + en https qu'en http !

j'ai aussi plein d'erreur Apache alors que le serveur fonctionne bien !

--------------------------
[Wed Feb 13 22:47:52 2008] [error] VirtualHost *:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
[Wed Feb 13 22:47:52 2008] [error] VirtualHost *:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
[Wed Feb 13 22:47:52 2008] [error] VirtualHost *:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
[Wed Feb 13 22:47:52 2008] [warn] NameVirtualHost *:443 has no VirtualHosts
[Wed Feb 13 22:47:52 2008] [warn] NameVirtualHost *:0 has no VirtualHosts
[Wed Feb 13 22:47:52 2008] [warn] NameVirtualHost *:80 has no VirtualHosts
--------------------------

pouvez vous me faire des commentaire sur le fichier de conf.

--------------------------
NameVirtualHost *:80
<VirtualHost *:80>
    ServerAdmin webmaster@localhost
   
<IfModule mod_ssl.c>
RewriteEngine on
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R]
</IfModule>

    DocumentRoot /var/www/
    <Directory />
        Options FollowSymLinks
        AllowOverride None
    </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>

NameVirtualHost *
DavLockDB /tmp/DavLock

<VirtualHost *:80>
     DocumentRoot /home/cbesle/www
     ServerName www.pressbook-rp.fr
     <Directory "/home/cbesle/www">
     allow from all
     Options +Indexes
     </Directory>

     <Directory "/home/cbesle/www/DAVtest">
     DAV on
     AuthType Basic
     AuthName "Accès sécurisé WebDAV"
     AuthUserFile /home/cbesle/www/xxx/.DAVusers
     Require valid-user
     </Directory>

     <Directory "/home/cbesle/www/xxx">
     Options None
     Order deny,allow
     Deny from all
     </Directory>

     <Directory />
     Options None
     Order deny,allow
     Deny from all
     </Directory>
</VirtualHost>

NameVirtualHost *:443
<VirtualHost *:443>
     DocumentRoot /home/cbesle/www
     <Directory "/home/cbesle/www">
     allow from all
     Options +Indexes
     </Directory>
     SSLEngine on
     SSLCertificateFile /etc/apache2/ssl.crt/www.pressbook-rp.fr.cert
     SSLCertificateKeyFile /etc/apache2/ssl.crt/private-deprotect.key
     SSLCACertificateFile /etc/apache2/ssl.crt/www.pressbook-rp.fr.chain
</VirtualHost>

NameVirtualHost *
<VirtualHost *:80>
     ServerName www.peep-pasteur.org
     DocumentRoot "/home/peep/www"
     <Directory "/home/peep/www">
     allow from all
     Options +Indexes
     </Directory>
</VirtualHost>

NameVirtualHost *:443
<VirtualHost *:443>
     ServerName ns27840.ovh.net
     DocumentRoot "/var/www/"
     <Directory "/var/www/">
     allow from all
     Options +Indexes
     </Directory>
</VirtualHost>

merci pour votre aide

bien à vous

#2 Le 15/02/2008, à 08:35

Thamior

Re : listage de répertoire entre http et https différent +pbs

Salut,

peut tu poser à plat tes désidérata ? je veux pouvoir acceder a tel site avec telle adresse, faire un Webdav sécu sur tel url, etc....
Parce que là, c'est pas correct, heureusement qu' Apache n'est pas susceptible ^^

Hors ligne

#3 Le 15/02/2008, à 08:48

HymnToLife

Re : listage de répertoire entre http et https différent +pbs

NameVirtualHost *

Remplace en

NameVirtualHost *:443


- Rodrigue, as-tu du cœur ?
- Non, mais j'ai du pique !

Hors ligne