Précédent   Forum des professionnels en informatique > Systèmes > Linux > Distributions > Debian
Debian Vos questions sur la distribution Debian
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 12/03/2011, 15h04   #1
Membre habitué
 
Homme
Développeur Web
Inscription : janvier 2008
Messages : 365
Détails du profil
Informations personnelles :
Sexe : Homme
Âge : 24
Localisation : France

Informations professionnelles :
Activité : Développeur Web

Informations forums :
Inscription : janvier 2008
Messages : 365
Points : 140
Points : 140
Par défaut Mauvaise redirection vers mon VirtualUser

Bonjour,

J'ai un léger soucis de redirection vers mon virtual user.

Lorsque je me connect à mon nom de domaine j'ai :

Citation:
It works!

This is the default web page for this server.

The web server software is running but no content has been added, yet.
Alors que je devrais être redirigé vers http://mon_ip/~kenp/ qui affiche :

Citation:
<h1>Nouvel espace web cree</h1>
Voilà mon fichier de configuration :

Code :
# nano /etc/apache2/sites-available/kenp.com
Citation:
<VirtualHost *>
ServerAdmin postmaster@kenp.com
ServerName http://www.kenp.com
ServerAlias kenp.com *.kenp.com
DocumentRoot /home/kenp/public_html/
<Directory /home/kenp/public_html/>
Options -Indexes FollowSymLinks MultiViews
AllowOverride All
</Directory>
ErrorLog /home/kenp/logs/error.log
LogLevel warn
CustomLog /home/kenp/logs/access.log combined
ServerSignature Off
</VirtualHost>
Puis, j'ai rendu mon domaine disponible :

Code :
ln -s /etc/apache2/sites-available/kenp.com /etc/apache2/sites-enabled/kenp.com
et ensuite redemarré apache.

J'ai volontairement modifié le nom de domaine car il pointe vers ma connexion personnelle et j'ai pas envoi que celle ci soit saturé.

Merci
Khleo est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 13/03/2011, 20h28   #2
Membre Expert
 
Étudiant
Inscription : août 2004
Messages : 500
Détails du profil
Informations personnelles :
Âge : 22

Informations professionnelles :
Activité : Étudiant

Informations forums :
Inscription : août 2004
Messages : 500
Points : 1 017
Points : 1 017
Envoyer un message via MSN à Senaku-seishin
Tu veux utilisé les userdir. Exemple :

Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<IfModule mod_userdir.c>
        UserDir public_html
        UserDir disabled root
 
        <Directory /home/*/public_html>
                AllowOverride FileInfo AuthConfig Limit Indexes
                Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
                <Limit GET POST OPTIONS>
                        Order allow,deny
                        Allow from all
                </Limit>
                <LimitExcept GET POST OPTIONS>
                        Order deny,allow
                        Deny from all
                </LimitExcept>
        </Directory>
</IfModule>
__________________
Avoir un regard neutre sur notre vie dénuée de sens, c'est la voir tel un ignorant
Senaku-seishin est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 13/03/2011, 20h50   #3
Membre habitué
 
Homme
Développeur Web
Inscription : janvier 2008
Messages : 365
Détails du profil
Informations personnelles :
Sexe : Homme
Âge : 24
Localisation : France

Informations professionnelles :
Activité : Développeur Web

Informations forums :
Inscription : janvier 2008
Messages : 365
Points : 140
Points : 140
Oui, j'ai résolu le problème :

Citation:
<VirtualHost *:80>
ServerAdmin postmaster@test1.com
ServerName www.test1.com
ServerAlias test1.com
DocumentRoot /home/test1/public_html/
<Directory /home/test1/public_html/>
Options -Indexes FollowSymLinks MultiViews
AllowOverride All
</Directory>
ErrorLog /home/test1/logs/error.log
LogLevel warn
CustomLog /home/test1/logs/access.log combined
ServerSignature Off
</VirtualHost>
Sur ma version d'apache (2.2.16-6), il faut mettre <VirtualHost *:80> et non <VirtualHost *>
Khleo est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 00h28.


 
 
 
 
Partenaires

Hébergement Web