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 11/04/2017, à 08:26

Claymenia

Impossible d'accéder à mon site sous apache 2 / Ubuntu server 16.04

Bonjour à toutes et tous !

Je suis très embêté car j'ai configuré un serveur apache sous Ubuntu 16.04, entre autre au travers des tutos de digitalocean.

Mais, j'ai sur mon serveur un disque rattaché indépendant que j'ai monté de manière permanente et sur lequel j'ai délocalisé le répertoire des sites apache.

De ce fait j'ai une arbo comme telle : /mnt/disk/html -> sur laquelle si je rentre l'ip de mon serveur, j'ai bien la page par défaut Apache/Ubuntu server qui apparaît (et dans laquelle j'arrive à charger un info.php par exemple)

Seulement voilà, j'ai ajouté un vhost avec une autre ip pour mon site sur un dossier séparé :

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.example.com

	##ServerAdmin webmaster@localhost
	##DocumentRoot /mnt/disk/html

	ServerAdmin webmaster@localhost
       	DocumentRoot /mnt/disk
        <Directory />
                Options FollowSymLinks
                AllowOverride None
       	</Directory>
      	<Directory /mnt/disk/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Require all granted
        </Directory>

	# 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

	# 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

Mon apache2.conf :

# 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.4/ for detailed information about
# the directives and /usr/share/doc/apache2/README.Debian about Debian specific
# hints.
#
#
# Summary of how the Apache 2 configuration works in Debian:
# The Apache 2 web server configuration in Debian is quite different to
# upstream's suggested way to configure the web server. This is because Debian's
# default Apache2 installation attempts to make adding and removing modules,
# virtual hosts, and extra configuration directives as flexible as possible, in
# order to make automating the changes and administering the server as easy as
# possible.

# It is split into several files forming the configuration hierarchy outlined
# below, all located in the /etc/apache2/ directory:
#
#	/etc/apache2/
#	|-- apache2.conf
#	|	`--  ports.conf
#	|-- mods-enabled
#	|	|-- *.load
#	|	`-- *.conf
#	|-- conf-enabled
#	|	`-- *.conf
# 	`-- sites-enabled
#	 	`-- *.conf
#
#
# * apache2.conf is the main configuration file (this file). It puts the pieces
#   together by including all remaining configuration files when starting up the
#   web server.
#
# * ports.conf is always included from the main configuration file. It is
#   supposed to determine listening ports for incoming connections which can be
#   customized anytime.
#
# * Configuration files in the mods-enabled/, conf-enabled/ and sites-enabled/
#   directories contain particular configuration snippets which manage modules,
#   global configuration fragments, or virtual host configurations,
#   respectively.
#
#   They are activated by symlinking available configuration files from their
#   respective *-available/ counterparts. These should be managed by using our
#   helpers a2enmod/a2dismod, a2ensite/a2dissite and a2enconf/a2disconf. See
#   their respective man pages for detailed information.
#
# * The binary is called apache2. Due to the use of environment variables, in
#   the default configuration, apache2 needs to be started/stopped with
#   /etc/init.d/apache2 or apache2ctl. Calling /usr/bin/apache2 directly will not
#   work with the default configuration.


# Global configuration
#

#
# 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 Mutex documentation (available
# at <URL:http://httpd.apache.org/docs/2.4/mod/core.html#mutex>);
# 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.
#
Mutex file:${APACHE_LOCK_DIR} default

#
# 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 5


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

#
# 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 severity of messages logged to the error_log.
# Available values: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the log level for particular modules, e.g.
# "LogLevel info ssl:warn"
#
LogLevel warn

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

# Include list of ports to listen on
Include ports.conf


# Sets the default security model of the Apache2 HTTPD server. It does
# not allow access to the root filesystem outside of /usr/share and /var/www.
# The former is used by web applications packaged in Debian,
# the latter may be used for local directories served by the web server. If
# your system is serving content from a sub-directory in /srv you must allow
# access here, or in any related virtual host.
<Directory />
	Options FollowSymLinks
	AllowOverride None
	Require all denied
</Directory>

<Directory /usr/share>
	AllowOverride None
	Require all granted
</Directory>

<Directory /mnt/disk/>
	Options Indexes FollowSymLinks
	AllowOverride None
	Require all granted
</Directory>

#<Directory /srv/>
#	Options Indexes FollowSymLinks
#	AllowOverride None
#	Require all granted
#</Directory>




# 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.
#
<FilesMatch "^\.ht">
	Require all denied
</FilesMatch>


#
# The following directives define some format nicknames for use with
# a CustomLog directive.
#
# These deviate from the Common Log Format definitions in that they use %O
# (the actual bytes sent including headers) instead of %b (the size of the
# requested file), because the latter makes it impossible to detect partial
# requests.
#
# Note that the use of %{X-Forwarded-For}i instead of %h is not recommended.
# Use mod_remoteip instead.
#
LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
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
IncludeOptional conf-enabled/*.conf

# Include the virtual host configurations:
IncludeOptional sites-enabled/*.conf

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

Mon vhost cutomisé sttanding.com.conf :

<VirtualHost 192.70.73.13:80>
    ServerAdmin admin@sttanding.com
    ServerName sttanding.com
    ServerAlias www.sttanding.com
    DocumentRoot /mnt/disk/sttanding.com/public_html
        <Directory />
                Options FollowSymLinks
                AllowOverride None
       	</Directory>
      	<Directory /mnt/disk/sttanding.com/public_html/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Require all granted
        </Directory>
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

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

Enfin mon /etc/hosts :

127.0.0.1	localhost

# 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
ff02::3	ip6-allhosts
127.0.1.1	serveur-2.localdomain	serveur-2
193.70.73.13    sttanding.com

les dossiers sont bien en 0755 sous l'utilisateur www-data
et là impossible d'accéder au site web, rien n'y fait. je suis en ERR_CONNECTION_TIMED_OUT permanent

Pourriez-vous m'aider ?

Dernière modification par Claymenia (Le 11/04/2017, à 09:24)

Hors ligne

#2 Le 11/04/2017, à 08:35

Claymenia

Re : Impossible d'accéder à mon site sous apache 2 / Ubuntu server 16.04

Pour information complémentaires, le dossier du vhost de ce site est monté en /mnt/disk/sttanding.com/public_html

j'ai également tenté de mettre le dossier sttanding.com dans /mnt/disk/html, et en redirectionnant les divers fichiers de config, rien n'y fait

Hors ligne

#3 Le 11/04/2017, à 08:48

Claymenia

Re : Impossible d'accéder à mon site sous apache 2 / Ubuntu server 16.04

J'ai créé un fichier index.html dans le public_html de sttanding.com

si je fais un http://ip_de_mon_serveur/sttanding.com/public_html/index.html j'ai al page qui se charge

par contre si je tente direct par l'url ou l'ip 193.70.73.13 cela ne fonctionne pas.

Il semblerait qu'il n'arrive pas à résoudre l'ip et le nameserver

Hors ligne

#4 Le 11/04/2017, à 08:56

Claymenia

Re : Impossible d'accéder à mon site sous apache 2 / Ubuntu server 16.04

par contre en faisant un ifconfig -a je remarque que je n'ai que l'ip de mon serveur sur une interface réseau ens3

je n'ai pas de trace de l'ip rattachée 193.70.73.13 (failover). Dois-je d'après vous faire un sudo ifconfig ens3:0 193.70.73.13 pour l'ajouter ?

Hors ligne

#5 Le 11/04/2017, à 09:10

Claymenia

Re : Impossible d'accéder à mon site sous apache 2 / Ubuntu server 16.04

j'ai édité /etc/apache2/ports.conf en ajoutant :

Listen *ip serveur*:80
Listen 193.70.73.13:80

Hors ligne

#6 Le 11/04/2017, à 09:14

Claymenia

Re : Impossible d'accéder à mon site sous apache 2 / Ubuntu server 16.04

dans etc/network/interfaces j'ai ajouté :

iface ens3:0 inet static
	address 193.70.73.13
	netmask 255.255.255.0
auto ens3:0

et maintenant j'ai ERR_CONNECTION_REFUSED

Hors ligne

#7 Le 11/04/2017, à 09:18

Claymenia

Re : Impossible d'accéder à mon site sous apache 2 / Ubuntu server 16.04

Lorsque je tente de renouveler mon certificat let's encrypt :

ubuntu@serveur-2:~$ sudo letsencrypt --apache -d sttanding.com -d www.sttanding.com
Failed authorization procedure. www.sttanding.com (tls-sni-01): urn:acme:error:malformed :: The request messag                                       e was malformed :: Failed to connect to 193.70.73.13:443 for tls-sni-01 challenge: Server only speaks HTTP, no                                       t TLS, sttanding.com (tls-sni-01): urn:acme:error:malformed :: The request message was malformed :: Failed to                                        connect to 193.70.73.13:443 for tls-sni-01 challenge: Server only speaks HTTP, not TLS

il semblerait donc que le ERR_CONNECTION_REFUSED puisse venir d'un problème d'écoute ssl

J'ai remodifié le 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.conf

Listen 80
Listen *ip serveur*:80
Listen 193.70.73.13:80

<IfModule ssl_module>
	Listen 443
	Listen *ip serveur*:443
	Listen 193.70.73.13:443
</IfModule>

<IfModule mod_gnutls.c>
	Listen 443
	Listen *ip serveur*:443
	Listen 193.70.73.13:443
</IfModule>

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

ainsi que le vhost sttanding.com.conf :

<VirtualHost 192.70.73.13:80>
    ServerAdmin admin@sttanding.com
    ServerName sttanding.com
    ServerAlias www.sttanding.com
    DocumentRoot /mnt/disk/sttanding.com/public_html
        <Directory />
                Options FollowSymLinks
                AllowOverride None
       	</Directory>
      	<Directory /mnt/disk/sttanding.com/public_html/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Require all granted
        </Directory>
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
<VirtualHost 192.70.73.13:443>
    ServerAdmin admin@sttanding.com
    ServerName sttanding.com
    ServerAlias www.sttanding.com
    DocumentRoot /mnt/disk/sttanding.com/public_html
        <Directory />
                Options FollowSymLinks
                AllowOverride None
       	</Directory>
      	<Directory /mnt/disk/sttanding.com/public_html/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Require all granted
        </Directory>
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

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

mais rien n'y fait !

Dernière modification par Claymenia (Le 11/04/2017, à 09:25)

Hors ligne

#8 Le 11/04/2017, à 09:30

Claymenia

Re : Impossible d'accéder à mon site sous apache 2 / Ubuntu server 16.04

J'ai également fait un

sudo ufw allow in "Apache Full"

sans plus de succès

Hors ligne

#9 Le 11/04/2017, à 09:49

Claymenia

Re : Impossible d'accéder à mon site sous apache 2 / Ubuntu server 16.04

dans mon log error d'apache, j'ai  '/mnt/disk/wp-cron.php' not found

hors normalement je devrais avoir : /mnt/disk/sttanding.com/public_html/wp-cron.php

Honnêtement je sèche complet là

Dernière modification par Claymenia (Le 11/04/2017, à 09:57)

Hors ligne

#10 Le 11/04/2017, à 09:54

jplemoine

Re : Impossible d'accéder à mon site sous apache 2 / Ubuntu server 16.04

<VirtualHost 192.70.73.13:80>
193.70.73.13    sttanding.com

Y a comme une erreur dans l'adresse IP....

Dans le logique, il faudrait la même adresse dans les 2 !!!

Ceci explique peut-être cela smile :


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

#11 Le 11/04/2017, à 10:01

Claymenia

Re : Impossible d'accéder à mon site sous apache 2 / Ubuntu server 16.04

jplemoine a écrit :
<VirtualHost 192.70.73.13:80>
193.70.73.13    sttanding.com

Y a comme une erreur dans l'adresse IP....

Dans le logique, il faudrait la même adresse dans les 2 !!!

Ceci explique peut-être cela smile :

Effectivement big_smile ! corrigé mais toujours la même erreur !

<VirtualHost 193.70.73.13:80>
    ServerAdmin admin@sttanding.com
    ServerName sttanding.com
    ServerAlias [url=http://www.sttanding.com]www.sttanding.com[/url]
    DocumentRoot /mnt/disk/sttanding.com/public_html
        <Directory />
                Options FollowSymLinks
                AllowOverride None
           </Directory>
          <Directory /mnt/disk/sttanding.com/public_html/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Require all granted
        </Directory>
    ErrorLog ${APACHE_LOG_DIR}/error.log
    LogLevel warn
    CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
<VirtualHost 193.70.73.13:443>
    ServerAdmin admin@sttanding.com
    ServerName sttanding.com
    ServerAlias [url=http://www.sttanding.com]www.sttanding.com[/url]
    DocumentRoot /mnt/disk/sttanding.com/public_html
        <Directory />
                Options FollowSymLinks
                AllowOverride None
           </Directory>
          <Directory /mnt/disk/sttanding.com/public_html/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Require all granted
        </Directory>
    ErrorLog ${APACHE_LOG_DIR}/error.log
    LogLevel warn
    CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

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

C'est un truc de fou !

J'ai ermis un html, impossible de le charger, toujours ERR_CONNECTION_REFUSED

Par contre apparemment le directionne sur /mnt/disk/sttanding.com/public_html à l'air de fonctionner dans les logs...

Dernière modification par Claymenia (Le 11/04/2017, à 10:10)

Hors ligne

#12 Le 11/04/2017, à 10:15

Claymenia

Re : Impossible d'accéder à mon site sous apache 2 / Ubuntu server 16.04

je ne sais pas si c'est lié mais j'ai toujours ce problème avec let's encrypt (oui le site est en https) :

 sudo letsencrypt --apache -d sttanding.com -d www.sttanding.com
Failed authorization procedure. www.sttanding.com (tls-sni-01): urn:acme:error:malformed :: The request message was malformed :: Failed to connect to 193.70.73.13:443 for tls-sni-01 challenge: Server only speaks HTTP, not TLS, sttanding.com (tls-sni-01): urn:acme:error:malformed :: The request message was malformed :: Failed to connect to 193.70.73.13:443 for tls-sni-01 challenge: Server only speaks HTTP, not TLS

IMPORTANT NOTES:
 - The following errors were reported by the server:

   Domain: www.sttanding.com
   Type:   malformed
   Detail: Failed to connect to 193.70.73.13:443 for tls-sni-01
   challenge: Server only speaks HTTP, not TLS

   Domain: sttanding.com
   Type:   malformed
   Detail: Failed to connect to 193.70.73.13:443 for tls-sni-01
   challenge: Server only speaks HTTP, not TLS

   To fix these errors, please make sure that you did not provide any
   invalid information to the client, and try running Let's Encrypt
   again.

Pourtant les ports 443 sont bien actifs !

Hors ligne

#13 Le 11/04/2017, à 10:30

mazarini

Re : Impossible d'accéder à mon site sous apache 2 / Ubuntu server 16.04

Eventuellement, la commande "apache2ctl  -D DUMP_VHOSTS" peut te permettre de voir ce qui est pris en compte par apache.

"ping sttanding.com" te permettra de vérifier qu'il pointe vers la bonne adresse.

Autrement il n'est pas utile de préciser une adresse s'il y a un servername de précisé (<VirtualHost 193.70.73.13:443> et ServerName sttanding.com).


S'il existait une école de la politique, les locaux devraient être édifiés rue de la Santé. Les élèves pourraient s'habituer. (Pierre Dac)

Hors ligne

#14 Le 11/04/2017, à 10:33

Claymenia

Re : Impossible d'accéder à mon site sous apache 2 / Ubuntu server 16.04

Merci beaucoup !

Alors résultat pour apache2ctl  -D DUMP_VHOSTS

VirtualHost configuration:
193.70.73.13:80        sttanding.com (/etc/apache2/sites-enabled/sttanding.com.conf:1)
193.70.73.13:443       sttanding.com (/etc/apache2/sites-enabled/sttanding.com.conf:19)
*:80                   serveur-2.localdomain (/etc/apache2/sites-enabled/000-default.conf:1)

Pour le ping :

Envoi d’une requête 'ping' sur sttanding.com [193.70.73.13] avec 32 octets de données :
Réponse de 193.70.73.13 : octets=32 temps=23 ms TTL=43
Réponse de 193.70.73.13 : octets=32 temps=23 ms TTL=43
Réponse de 193.70.73.13 : octets=32 temps=23 ms TTL=43
Réponse de 193.70.73.13 : octets=32 temps=22 ms TTL=43

Statistiques Ping pour 193.70.73.13:
    Paquets : envoyés = 4, reçus = 4, perdus = 0 (perte 0%),
Durée approximative des boucles en millisecondes :
    Minimum = 22ms, Maximum = 23ms, Moyenne = 22ms

mais le site ne fonctionne toujours pas ! et là je suis pas très avancé... je comprends pas ce qui bloque !

Dernière modification par Claymenia (Le 11/04/2017, à 10:35)

Hors ligne

#15 Le 11/04/2017, à 10:51

mazarini

Re : Impossible d'accéder à mon site sous apache 2 / Ubuntu server 16.04

Ajoutes ServerAlias www.sttanding.com dans la conf.

Je pense que tu as un .htaccess qui redirige vers https://www.sttanding.com quand on met l'adresse ip (sans garantie).


S'il existait une école de la politique, les locaux devraient être édifiés rue de la Santé. Les élèves pourraient s'habituer. (Pierre Dac)

Hors ligne

#16 Le 11/04/2017, à 10:54

Claymenia

Re : Impossible d'accéder à mon site sous apache 2 / Ubuntu server 16.04

mazarini a écrit :

Ajoutes ServerAlias www.sttanding.com dans la conf.

-> dans quel fichier de conf ? dans le vhost il y est déjà ! sad Mon diou que ça me fait chier big_smile

<VirtualHost 193.70.73.13:80>
    ServerAdmin admin@sttanding.com
    ServerName sttanding.com
    ServerAlias www.sttanding.com
    DocumentRoot /mnt/disk/sttanding.com/public_html
        <Directory />
                Options FollowSymLinks
                AllowOverride None
       	</Directory>
      	<Directory /mnt/disk/sttanding.com/public_html/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Require all granted
        </Directory>
    ErrorLog ${APACHE_LOG_DIR}/error.log
    LogLevel warn
    CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

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

Dernière modification par Claymenia (Le 11/04/2017, à 10:55)

Hors ligne

#17 Le 11/04/2017, à 10:57

Claymenia

Re : Impossible d'accéder à mon site sous apache 2 / Ubuntu server 16.04

Je viens de modifier mon htaccess en :

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

base wordpress mais toujours inaccessible !

Dernière modification par Claymenia (Le 11/04/2017, à 10:57)

Hors ligne

#18 Le 11/04/2017, à 11:04

Claymenia

Re : Impossible d'accéder à mon site sous apache 2 / Ubuntu server 16.04

J'ai fais un  sudo a2enmod ssl

et en retour j'ai une erreur pour la commande  sudo letsencrypt --apache -d sttanding.com -d www.sttanding.com  :

   File                                                               x
                                     x "/usr/lib/python2.7/dist-packages/letsencrypt_apache/configurator.py x
                                     x ", line 1575, in cleanup                                             x
                                     x     self.restart()                                                   x
                                     x   File                                                               x
                                     x "/usr/lib/python2.7/dist-packages/letsencrypt_apache/configurator.py x
                                     x ", line 1463, in restart                                             x
                                     x     self._reload()                                                   x
                                     x   File                                                               x
                                     x "/usr/lib/python2.7/dist-packages/letsencrypt_apache/configurator.py x
                                     x ", line 1474, in _reload                                             x
                                     x     raise errors.MisconfigurationError(str(err))                     x
                                     x MisconfigurationError: Error while running apache2ctl graceful.      x
                                     x httpd not running, trying to start                                   x
                                     x Action 'graceful' failed.                                            x
                                     x The Apache error log may have more information.                      x
                                     x (99)Cannot assign requested address: AH00072: make_sock: could not   x
                                     x bind to address 193.70.73.13:80                                      x
                                     x no listening sockets available, shutting down                        x
                                     x AH00015: Unable to open logs  

avec dans le log :

[Tue Apr 11 11:48:34.265053 2017] [mpm_prefork:notice] [pid 4855] AH00169: caught SIGTERM, shutting down

Y a bien quelque chose qui ne va pas... sad

Hors ligne