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 23/02/2013, à 04:13

kr2sis

configauration de Apache --- help please !!!

bonjour

autre souci que j'ai négligé par nécessité (il a fallu s'occuper du lourd avant de faire le léger...)  : apache

je ne sais pas si c'est moi qui comprends rien, mais meme en cherchant partout, je ne trouve pas de tuto qui veuille que je réussisse une bonne configuration de site.
j'ai tenté de configurer les fichiers "apache2.conf", "ports.conf", "sites-available" sans succes et toujour sles memes messages qui reviennent

Restarting web server: apache2[Sat Feb 23 02:44:24 2013] [error] (EAI 2)Name or
service not known: Could not resolve host name www.tralala.fr -- ignoring!
[Sat Feb 23 02:44:24 2013] [error] (EAI 2)Name or service not known: Could not r
esolve host name www.tralala.fr -- ignoring!
[Sat Feb 23 02:44:24 2013] [error] (EAI 2)Name or service not known: Could not r
esolve host name www.tralala.fr -- ignoring!
[Sat Feb 23 02:44:24 2013] [error] (EAI 2)Name or service not known: Could not r
esolve host name www.tralala.fr -- ignoring!
Action 'start' failed.
The Apache error log may have more information.
 failed!

voici mes différents fichiers :
- ports.conf

# If you just change the port or add more ports here, you will likely also
# have to change the VirtualHost statement in
# /etc/apache2/sites-enabled/000-default
# This is also true if you have upgraded from before 2.2.9-3 (i.e. from
# Debian etch). See /usr/share/doc/apache2.2-common/NEWS.Debian.gz and
# README.Debian.gz

NameVirtualHost www.tralala.fr:80
Listen 80

<IfModule mod_ssl.c>
    # If you add NameVirtualHost *:443 here, you will also have to change
    # the VirtualHost statement in /etc/apache2/sites-available/default-ssl
    # to <VirtualHost *:443>
    # Server Name Indication for SSL named virtual hosts is currently not
    # supported by MSIE on Windows XP.
    Listen 443
</IfModule>

<IfModule mod_gnutls.c>
    Listen 443
</IfModule>

- sites-available/tralala.fr

NameVirtualHost *:80
<VirtualHost www.tralala.fr:80>
        ServerAdmin webmaster@tralalafr
        ServerName www.tralala.fr
        ServerAlias *.tralalafr
        DocumentRoot /media/home/sftp/home/gintoxic/www/
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /media/home/sftp/home/gintoxic/www/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        </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 /media/home/sftp/homegintoxic/www/tralala.error.log

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn

        CustomLog /media/home/sftp/home/gintoxic/www/tralala.access.log combi$
</VirtualHost>

- apache2.conf

#
# Based upon the NCSA server configuration files originally by Rob McCool.
#
# This is the main Apache server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See http://httpd.apache.org/docs/2.2/ for detailed information about
# the directives.
#
# Do NOT simply read the instructions in here without understanding
# what they do.  They're here only as hints or reminders.  If you are unsure
# consult the online docs. You have been warned.
#
# The configuration directives are grouped into three basic sections:
#  1. Directives that control the operation of the Apache server process as a
#     whole (the 'global environment').
#  2. Directives that define the parameters of the 'main' or 'default' server,
#     which responds to requests that aren't handled by a virtual host.
#     These directives also provide default values for the settings
#     of all virtual hosts.
#  3. Settings for virtual hosts, which allow Web requests to be sent to
#     different IP addresses or hostnames and have them handled by the
#     same Apache server process.
#
# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with "/" (or "drive:/" for Win32), the
# server will use that explicit path.  If the filenames do *not* begin
# with "/", the value of ServerRoot is prepended -- so "foo.log"
# with ServerRoot set to "/etc/apache2" will be interpreted by the
# server as "/etc/apache2/foo.log".
#

### Section 1: Global Environment
#
# The directives in this section affect the overall operation of Apache,
# such as the number of concurrent requests it can handle or where it
# can find its configuration files.
#

#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# NOTE!  If you intend to place this on an NFS (or otherwise network)
# mounted filesystem then please read the LockFile documentation (available
# at <URL:http://httpd.apache.org/docs/2.2/mod/mpm_common.html#lockfile>);
# you will save yourself a lot of trouble.
#
# Do NOT add a slash at the end of the directory path.
#
ServerRoot "/etc/apache2"

#
# The accept serialization lock file MUST BE STORED ON A LOCAL DISK.
#
LockFile ${APACHE_LOCK_DIR}/accept.lock

#
# PidFile: The file in which the server should record its process
# identification number when it starts.
# This needs to be set in /etc/apache2/envvars
#
PidFile ${APACHE_PID_FILE}

#
# Timeout: The number of seconds before receives and sends time out.
#
Timeout 300

#
# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to "Off" to deactivate.
#
KeepAlive On

#
# MaxKeepAliveRequests: The maximum number of requests to allow
# during a persistent connection. Set to 0 to allow an unlimited amount.
# We recommend you leave this number high, for maximum performance.
#
MaxKeepAliveRequests 100

#
# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same client on the same connection.
#
KeepAliveTimeout 15

##
## Server-Pool Size Regulation (MPM specific)
##

# prefork MPM
# StartServers: number of server processes to start
# MinSpareServers: minimum number of server processes which are kept spare
# MaxSpareServers: maximum number of server processes which are kept spare
# MaxClients: maximum number of server processes allowed to start
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule mpm_prefork_module>
    StartServers          5
    MinSpareServers       5
    MaxSpareServers      10
    MaxClients          150
    MaxRequestsPerChild   0
</IfModule>

# worker MPM
# StartServers: initial number of server processes to start
# MaxClients: maximum number of simultaneous client connections
# MinSpareThreads: minimum number of worker threads which are kept spare
# MaxSpareThreads: maximum number of worker threads which are kept spare
# ThreadLimit: ThreadsPerChild can be changed to this maximum value during a
#              graceful restart. ThreadLimit can only be changed by stopping
#              and starting Apache.
# ThreadsPerChild: constant number of worker threads in each server process
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule mpm_worker_module>
    StartServers          2
    MinSpareThreads      25
    MaxSpareThreads      75
    ThreadLimit          64
    ThreadsPerChild      25
    MaxClients          150
    MaxRequestsPerChild   0
</IfModule>

# event MPM
# StartServers: initial number of server processes to start
# MaxClients: maximum number of simultaneous client connections
# MinSpareThreads: minimum number of worker threads which are kept spare
# MaxSpareThreads: maximum number of worker threads which are kept spare
# ThreadsPerChild: constant number of worker threads in each server process
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule mpm_event_module>
    StartServers          2
    MaxClients          150
    MinSpareThreads      25
    MaxSpareThreads      75
    ThreadLimit          64
    ThreadsPerChild      25
    MaxRequestsPerChild   0
</IfModule>

# These need to be set in /etc/apache2/envvars
User ${APACHE_RUN_USER}
Group ${APACHE_RUN_GROUP}

#
# 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.
#
<Files ~ "^\.ht">
    Order allow,deny
    Deny from all
    Satisfy all
</Files>

#
# DefaultType is the default MIME type the server will use for a document
# if it cannot otherwise determine one, such as from filename extensions.
# If your server contains mostly text or HTML documents, "text/plain" is
# a good value.  If most of your content is binary, such as applications
# or images, you may want to use "application/octet-stream" instead to
# keep browsers from trying to display binary files as though they are
# text.
#
DefaultType text/plain


#
# HostnameLookups: Log the names of clients or just their IP addresses
# e.g., www.apache.org (on) or 204.62.129.132 (off).
# The default is off because it'd be overall better for the net if people
# had to knowingly turn this feature on, since enabling it means that
# each client request will result in AT LEAST one lookup request to the
# nameserver.
#
HostnameLookups Off

# ErrorLog: The location of the error log file.
# If you do not specify an ErrorLog directive within a <VirtualHost>
# container, error messages relating to that virtual host will be
# logged here.  If you *do* define an error logfile for a <VirtualHost>
# container, that host's errors will be logged there and not here.
#
ErrorLog ${APACHE_LOG_DIR}/error.log

#
# LogLevel: Control the number of messages logged to the error_log.
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
#
LogLevel warn

# Include module configuration:
Include mods-enabled/*.load
Include mods-enabled/*.conf

# Include all the user configurations:
Include httpd.conf

# Include ports listing
Include ports.conf

#
# The following directives define some format nicknames for use with
# a CustomLog directive (see below).
# If you are behind a reverse proxy, you might want to change %h into %{X-Forwa$
#
LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" $
LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combin$
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
Include conf.d/

# Include the virtual host configurations:
Include /etc/apache2/sites-enabled/[^.#]*

pourriez-vous m'aider svp, je tourne en rond et je ne comprends pas ce qu'il me dit...

merci par avance

Hors ligne

#2 Le 23/02/2013, à 09:50

tiramiseb

Re : configauration de Apache --- help please !!!

Salut,

Remplace "www.tralala.fr" par "*" dans la configuration.

En fait les arguments à "NameVirtualHost" et à "VirtualHost" ne doivent pas correspondre à l'adresse du site à desservir mais à l'adresse IP sur laquelle écouter (ou alors "*" pour "toutes les adresses IP desservies par le serveur").

L'URL du site est précisée dans ServerName (et éventuellement ServerAlias), comme tu l'as correctement fait.


PS : attention, il y a des "tralalafr" dans ta configuration là où on s'attendrait à voir "tralala.fr".

je ne comprends pas ce qu'il me dit

En clair, il te dit :

« Désolé monsieur, tu m'as demandé d'écouter sur l'adresse qui correspond à "www.tralala.fr", alors j'ai essayé de résoudre "www.tralala.fr" mais je n'arrive pas à le résoudre dans mes DNS, je ne peux donc pas savoir sur quelle interface écouter... je suis perdu ! Peux-tu me donner une autre instruction pour que je sache sur quelle(s) interface(s) écouter ? Merci ! »

Dernière modification par tiramiseb (Le 23/02/2013, à 09:52)

Hors ligne

#3 Le 23/02/2013, à 12:30

kr2sis

Re : configauration de Apache --- help please !!!

salut et merci à toi
je viens de modofié comme tu l'as judicieusement signalé mais

Restarting web server: apache2[Sat Feb 23 11:25:26 2013] [error] (EAI 2)Name or
service not known: Could not resolve host name www.tralala.fr -- ignoring!
 ... waiting [Sat Feb 23 11:25:27 2013] [error] (EAI 2)Name or service not known
: Could not resolve host name www.tralala.fr -- ignoring!
.

Hors ligne

#4 Le 23/02/2013, à 12:36

tiramiseb

Re : configauration de Apache --- help please !!!

Que donne la commande suivante ?

grep -r www.tralala.fr /etc/apache2

Hors ligne

#5 Le 23/02/2013, à 12:46

kr2sis

Re : configauration de Apache --- help please !!!

root@debian-server:~# grep -r www.tralala.fr /etc/apache2
/etc/apache2/sites-enabled/tralala.fr:        ServerName www.tralala.fr
/etc/apache2/ports.conf:NameVirtualHost www.tralala.fr:80
/etc/apache2/sites-available/tralala.fr:      ServerName www.tralala.fr

Hors ligne

#6 Le 23/02/2013, à 12:46

za_ian

Re : configauration de Apache --- help please !!!

que donne le resultat de la commande
ping www.tralala.fr


Ne laisser jamais à demain ce que l'on peut faire aujourd'hui!

Hors ligne

#7 Le 23/02/2013, à 12:53

kr2sis

Re : configauration de Apache --- help please !!!

64 bytes from localhost (127.0.0.1): icmp_req=1 ttl=64 time=0.024 ms
64 bytes from localhost (127.0.0.1): icmp_req=2 ttl=64 time=0.023 ms
64 bytes from localhost (127.0.0.1): icmp_req=3 ttl=64 time=0.024 ms
64 bytes from localhost (127.0.0.1): icmp_req=4 ttl=64 time=0.026 ms
64 bytes from localhost (127.0.0.1): icmp_req=5 ttl=64 time=0.026 ms
64 bytes from localhost (127.0.0.1): icmp_req=6 ttl=64 time=0.029 ms
64 bytes from localhost (127.0.0.1): icmp_req=7 ttl=64 time=0.027 ms
64 bytes from localhost (127.0.0.1): icmp_req=8 ttl=64 time=0.027 ms
64 bytes from localhost (127.0.0.1): icmp_req=9 ttl=64 time=0.026 ms
64 bytes from localhost (127.0.0.1): icmp_req=10 ttl=64 time=0.025 ms
64 bytes from localhost (127.0.0.1): icmp_req=11 ttl=64 time=0.025 ms
64 bytes from localhost (127.0.0.1): icmp_req=12 ttl=64 time=0.025 ms
64 bytes from localhost (127.0.0.1): icmp_req=13 ttl=64 time=0.024 ms
64 bytes from localhost (127.0.0.1): icmp_req=14 ttl=64 time=0.026 ms
64 bytes from localhost (127.0.0.1): icmp_req=15 ttl=64 time=0.026 ms
64 bytes from localhost (127.0.0.1): icmp_req=16 ttl=64 time=0.026 ms
64 bytes from localhost (127.0.0.1): icmp_req=17 ttl=64 time=0.024 ms
64 bytes from localhost (127.0.0.1): icmp_req=18 ttl=64 time=0.026 ms
64 bytes from localhost (127.0.0.1): icmp_req=19 ttl=64 time=0.027 ms
64 bytes from localhost (127.0.0.1): icmp_req=20 ttl=64 time=0.027 ms
64 bytes from localhost (127.0.0.1): icmp_req=21 ttl=64 time=0.025 ms
64 bytes from localhost (127.0.0.1): icmp_req=22 ttl=64 time=0.026 ms
64 bytes from localhost (127.0.0.1): icmp_req=23 ttl=64 time=0.026 ms
64 bytes from localhost (127.0.0.1): icmp_req=24 ttl=64 time=0.027 ms
64 bytes from localhost (127.0.0.1): icmp_req=25 ttl=64 time=0.026 ms
64 bytes from localhost (127.0.0.1): icmp_req=26 ttl=64 time=0.025 ms
64 bytes from localhost (127.0.0.1): icmp_req=27 ttl=64 time=0.025 ms
64 bytes from localhost (127.0.0.1): icmp_req=28 ttl=64 time=0.026 ms
64 bytes from localhost (127.0.0.1): icmp_req=29 ttl=64 time=0.025 ms
64 bytes from localhost (127.0.0.1): icmp_req=30 ttl=64 time=0.025 ms
64 bytes from localhost (127.0.0.1): icmp_req=31 ttl=64 time=0.026 ms
64 bytes from localhost (127.0.0.1): icmp_req=32 ttl=64 time=0.025 ms
64 bytes from localhost (127.0.0.1): icmp_req=33 ttl=64 time=0.024 ms
64 bytes from localhost (127.0.0.1): icmp_req=34 ttl=64 time=0.024 ms
64 bytes from localhost (127.0.0.1): icmp_req=35 ttl=64 time=0.026 ms
64 bytes from localhost (127.0.0.1): icmp_req=36 ttl=64 time=0.026 ms
64 bytes from localhost (127.0.0.1): icmp_req=37 ttl=64 time=0.024 ms
64 bytes from localhost (127.0.0.1): icmp_req=38 ttl=64 time=0.026 ms
64 bytes from localhost (127.0.0.1): icmp_req=39 ttl=64 time=0.025 ms
64 bytes from localhost (127.0.0.1): icmp_req=40 ttl=64 time=0.025 ms

64 bytes from localhost (127.0.0.1): icmp_req=41 ttl=64 time=0.023 ms
64 bytes from localhost (127.0.0.1): icmp_req=42 ttl=64 time=0.025 ms
64 bytes from localhost (127.0.0.1): icmp_req=43 ttl=64 time=0.024 ms
64 bytes from localhost (127.0.0.1): icmp_req=44 ttl=64 time=0.026 ms
64 bytes from localhost (127.0.0.1): icmp_req=45 ttl=64 time=0.025 ms
64 bytes from localhost (127.0.0.1): icmp_req=46 ttl=64 time=0.025 ms
64 bytes from localhost (127.0.0.1): icmp_req=47 ttl=64 time=0.025 ms
64 bytes from localhost (127.0.0.1): icmp_req=48 ttl=64 time=0.025 ms
64 bytes from localhost (127.0.0.1): icmp_req=49 ttl=64 time=0.024 ms
64 bytes from localhost (127.0.0.1): icmp_req=50 ttl=64 time=0.025 ms
64 bytes from localhost (127.0.0.1): icmp_req=51 ttl=64 time=0.024 ms
64 bytes from localhost (127.0.0.1): icmp_req=52 ttl=64 time=0.025 ms

Hors ligne

#8 Le 23/02/2013, à 12:53

tiramiseb

Re : configauration de Apache --- help please !!!

za_ian: ne compliquons pas les choses, il n'est pas nécessaire (et même déconseillé) d'utiliser le FQDN du serveur dans la configuration d'Apache2, alors ne cherchons pas à faire marcher cette résolution de nom.

Hors ligne

#9 Le 23/02/2013, à 12:54

tiramiseb

Re : configauration de Apache --- help please !!!

kr2sis a écrit :
root@debian-server:~# grep -r www.tralala.fr /etc/apache2
/etc/apache2/sites-enabled/tralala.fr:        ServerName www.tralala.fr
/etc/apache2/ports.conf:NameVirtualHost www.tralala.fr:80
/etc/apache2/sites-available/tralala.fr:      ServerName www.tralala.fr

Dans le fichier ports.conf, tu n'as pas changé :

NameVirtualHost www.tralala.fr:80

en :

NameVirtualHost *:80

comme je te l'ai suggéré en #2. Il est donc normal que ça ne marche toujours pas, vu que tu n'as pas corrigé la configuration qui ne marche pas.

Hors ligne

#10 Le 23/02/2013, à 12:55

kr2sis

Re : configauration de Apache --- help please !!!

ah aussi un truc :
quand je tape mon adresse ip locale, je tombe sur la page "it works"
mais je l'ai changé dans tralala en "voici mon nouveau site"

mais ca ne pointe pas sur le site mais a priori sur "default"

Hors ligne

#11 Le 23/02/2013, à 12:57

tiramiseb

Re : configauration de Apache --- help please !!!

quand je tape mon adresse ip locale, je tombe sur la page "it works"

Le fichier de configuration 000-default est-il toujours présent dans sites-enabled ?
Si oui, alors c'est normal que tu tombes en priorité sur celui-là...

... auquel cas tu dois passer clairement par http://www.tralala.fr pour que ça marche.

Hors ligne

#12 Le 23/02/2013, à 12:58

kr2sis

Re : configauration de Apache --- help please !!!

euh non , par contre je l'arrete comment le défilé dans le moniteur ?

Hors ligne

#13 Le 23/02/2013, à 13:00

kr2sis

Re : configauration de Apache --- help please !!!

chou blanc, google ne trouve pas (je n'ai pas encore de serveur DNS, en passant)

Hors ligne

#14 Le 23/02/2013, à 13:02

kr2sis

Re : configauration de Apache --- help please !!!

Le fichier de configuration 000-default est-il toujours présent dans sites-enabled ?

oui

Hors ligne

#15 Le 23/02/2013, à 13:06

tiramiseb

Re : configauration de Apache --- help please !!!

kr2sis a écrit :

euh non , par contre je l'arrete comment le défilé dans le moniteur ?

Ctrl-C.

kr2sis a écrit :

Le fichier de configuration 000-default est-il toujours présent dans sites-enabled ?

oui

Donc, comme je l'ai dit, c'est normal que tu obtiennes le "it works".

Deux possibilités :

1/ désactiver ce fichier avec la commande "a2dissite"

2/ accéder à ton site avec la bonne URL (éventuellement en entrant l'adresse du serveur dans le fichier /etc/hosts de ta machine...)

Hors ligne

#16 Le 23/02/2013, à 13:12

kr2sis

Re : configauration de Apache --- help please !!!

oki
je viens d'aller voir dans sites-enabled et il n'avait pas fai les modifs que tu m'as demandé de faire, donc je l'ai fait
puis un restart et j'otiens ça :

Restarting web server: apache2[Sat Feb 23 12:09:02 2013] [warn] NameVirtualHost
*:80 has no VirtualHosts
 ... waiting [Sat Feb 23 12:09:03 2013] [warn] NameVirtualHost *:80 has no Virtu
alHosts
.

je tourne en rond....:rolleyes:

Hors ligne

#17 Le 23/02/2013, à 13:28

tiramiseb

Re : configauration de Apache --- help please !!!

Que donne la commande suivante ?

grep -r VirtualHost /etc/apache2

Hors ligne

#18 Le 23/02/2013, à 13:31

kr2sis

Re : configauration de Apache --- help please !!!

je n'ai plus de message d'erreur suite au fait d'avoir viré la ligne NameVirtualHost *:80 dans ports.conf
mais je ne sais pas si mon probleme est réglé....
comment le savoir d'ailleurs puisque je ne suis pas sur de ma config

je vais faire ta ligne de commande et je te rapporte le retour

Hors ligne

#19 Le 23/02/2013, à 13:34

kr2sis

Re : configauration de Apache --- help please !!!

root@debian-server:~# grep -r VirtualHost /etc/apache2
/etc/apache2/sites-enabled/tralala.fr:NameVirtualHost *:80
/etc/apache2/sites-enabled/tralala.fr:<VirtualHost *:80>
/etc/apache2/sites-enabled/tralala.fr:</VirtualHost>
/etc/apache2/apache2.conf:# If you do not specify an ErrorLog directive within a
 <VirtualHost>
/etc/apache2/apache2.conf:# logged here.  If you *do* define an error logfile fo
r a <VirtualHost>
/etc/apache2/ports.conf:# have to change the VirtualHost statement in
/etc/apache2/ports.conf:    # If you add NameVirtualHost *:443 here, you will al
so have to change
/etc/apache2/ports.conf:    # the VirtualHost statement in /etc/apache2/sites-av
ailable/default-ssl
/etc/apache2/ports.conf:    # to <VirtualHost *:443>
/etc/apache2/conf.d/localized-error-pages:# even on a per-VirtualHost basis.  If
 you include the Alias in the global server
/etc/apache2/conf.d/other-vhosts-access-log:# Define an access log for VirtualHo
sts that don't define their own logfile
/etc/apache2/sites-available/tralala.fr:NameVirtualHost *:80
/etc/apache2/sites-available/tralala.fr:<VirtualHost *:80>
/etc/apache2/sites-available/tralala.fr:</VirtualHost>
/etc/apache2/sites-available/default:<VirtualHost *:80>
/etc/apache2/sites-available/default:</VirtualHost>
/etc/apache2/sites-available/default-ssl:<VirtualHost _default_:443>
/etc/apache2/sites-available/default-ssl:</VirtualHost>

Hors ligne

#20 Le 23/02/2013, à 13:41

tiramiseb

Re : configauration de Apache --- help please !!!

Ok, tu dois avoir NameVirtualHost une seule fois, de préférence dans ports.conf.

Donc enlève la ligne NameVirtualHost (qui est correcte) de tralala.fr et mets-la dans ports.conf.

En l'état actuel ça marche sans problème, mais déplacer cette ligne sera plus propre d'un point de vue logique.

Hors ligne

#21 Le 23/02/2013, à 13:42

kr2sis

Re : configauration de Apache --- help please !!!

message en gros "Forbidden" maintenant sur la page web
il reconnait mon ip interne et mon serveur

Hors ligne

#22 Le 23/02/2013, à 13:45

tiramiseb

Re : configauration de Apache --- help please !!!

Là il faut que tu approfondisse en regardant tes logs (access.log et error.log)...

En tout cas le problème de VirtualHost que tu avais au début est corrigé.

Hors ligne

#23 Le 23/02/2013, à 13:51

kr2sis

Re : configauration de Apache --- help please !!!

oui et je t'en remercie smile
je vais cherché mais je ne sais pas trop quoi chercher en fait... bon je vais déjà aller voir big_smile

Hors ligne

#24 Le 23/02/2013, à 13:58

kr2sis

Re : configauration de Apache --- help please !!!

error log

[Sat Feb 23 12:49:10 2013] [crit] [client 74.125.182.24] (13)Permission denied: /media/home/sftp/home/gintoxic/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable

Hors ligne

#25 Le 23/02/2013, à 14:35

tiramiseb

Re : configauration de Apache --- help please !!!

C'est un problème de droitS.
L'utilisateur qui fait tourner Apache2 (www-data) a besoin d'avoir les droits de lecture sur les fichiers concernés.

Hors ligne