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 12/02/2019, à 22:36

Compte supprimé

problème wordpress dérrière reverse proxy apache2

bonjour je vous explique mon problème jai actuellment apache2 comme serveur principal est je veux via un serveur virtuel héberger un serveur web apache2 jai installer wordpress mais voilà le probleme
mal charger

le site et mal charger on dirais qui charge pas le css ou le style de la page.
voilà mon vhost qui gère la partie reverse proxy

<VirtualHost *:443>
servername test.exemple.fr
      ServerAlias test.exemple.fr
        Redirect permanent / https://test.exemple.fr

        RewriteEngine off
        #RewriteRule /login.view[/]?$ /login.view [R=permanent]

        SSLEngine on
        SSLCertificateFile /etc/letsencrypt/live/test.exemple.fr/fullchain.pem
        SSLCertificateKeyFile /etc/letsencrypt/live/test.exemple.fr/privkey.pem
        Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains"
        #Header always set Content-Security-Policy "default-src 'self' data: ; script-src 'self' ; style-src 'self' 'unsafe-inline' fonts.googleapis.com https://code.jquery.com ; font-src 'self' fonts.gsta$

        ProxyRequests Off
        ProxyPreserveHost On
        <Proxy *>

        </Proxy>
        ErrorLog /var/log/apache2/exemple-error.log
        CustomLog /var/log/apache2/exemple-access.log combined
        ProxyPassReverse / http://192.168.1.8:80/
        ProxyPass / http://192.168.1.8:80/


</Virtualhost>

<VirtualHost *:80>
        ServerAlias test.exemple.fr
        Redirect permanent / https://test.exemple.fr/
</Virtualhost>

merci d'avance pour vos futur réponse le serveur cible apache2 est configurer avec les paramètres de base

Dernière modification par Compte supprimé (Le 12/02/2019, à 22:37)

#2 Le 13/02/2019, à 10:48

Shanx

Re : problème wordpress dérrière reverse proxy apache2

Avant de chercher l'origine du problème... Pourquoi mettre un Apache derrière un Apache ?

Ensuite, pour chercher, il va falloir que tu ailles lire les logs : access.log et error.log pour les deux Apache. Regarde si tu reçois les requêtes sur les deux serveurs et si elles sont traitées correctement, ça permettra de repérer où est le problème.


Mes randos : grande traversées des Alpes, de l'Islande, de la Corse, du Japon (en vélo), etc.
Traversée des États-Unis à pied

Hors ligne

#3 Le 13/02/2019, à 16:46

Compte supprimé

Re : problème wordpress dérrière reverse proxy apache2

alors c'est simple c'est pour héberger la vm d'un amie, donc double serveur apache2
je précise que sa le fais que avec wordpress phpmyadmin n'a pas ce problème et lapage html par default nom-plus je vais vérifier mes log
la cest les log du apache2 qui gère le reverse proxy j'ai pas accès a son serveur dans l'immédiate enfaite j'ai pas le mot de passe

log apache2 qui gère reverse proxy
log acces

80.12.26.34 - - [13/Feb/2019:19:35:46 +0100] "GET /wp-admin/phpmyadmin/js/vendor/codemirror/lib/codemirror.css?v=4.8.5 HTTP/2.0" 200 2531 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0"
80.12.26.34 - - [13/Feb/2019:19:35:59 +0100] "POST /wp-admin/phpmyadmin/index.php HTTP/2.0" 302 25 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0"
80.12.26.34 - - [13/Feb/2019:19:35:59 +0100] "GET /wp-admin/phpmyadmin/index.php HTTP/2.0" 200 14003 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0"
80.12.26.34 - - [13/Feb/2019:19:36:00 +0100] "GET /wp-admin/phpmyadmin/phpmyadmin.css.php?nocache=4646983694ltr&server=1 HTTP/2.0" 200 20760 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0"
80.12.26.34 - - [13/Feb/2019:19:36:00 +0100] "POST /wp-admin/phpmyadmin/ajax.php HTTP/2.0" 200 1459 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0"
80.12.26.34 - - [13/Feb/2019:19:36:00 +0100] "POST /wp-admin/phpmyadmin/ajax.php HTTP/2.0" 200 1557 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0"
80.12.26.34 - - [13/Feb/2019:19:36:00 +0100] "POST /wp-admin/phpmyadmin/ajax.php HTTP/2.0" 200 1451 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0"
80.12.26.34 - - [13/Feb/2019:19:36:00 +0100] "POST /wp-admin/phpmyadmin/db_structure.php?ajax_request=1&favorite_table=1&sync_favorite_tables=1 HTTP/2.0" 200 164 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:65.0) Gecko/20100101 F$
80.12.26.34 - - [13/Feb/2019:19:36:00 +0100] "POST /wp-admin/phpmyadmin/version_check.php HTTP/2.0" 200 64 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0"
80.12.26.34 - - [13/Feb/2019:19:36:05 +0100] "GET /wp-admin/phpmyadmin/server_privileges.php?viewing_mode=server&ajax_request=true&ajax_page_request=true&_nocache=1550082964847238767&token=I)%5B%5C62%2CC6928n7F8 HTTP/2.0" 200 2998 "-$
80.12.26.34 - - [13/Feb/2019:19:36:08 +0100] "GET /wp-admin/phpmyadmin/server_databases.php?ajax_request=true&ajax_page_request=true&_nocache=1550082967803855487&token=I)%5B%5C62%2CC6928n7F8 HTTP/2.0" 200 6387 "-" "Mozilla/5.0 (Windo$
80.12.26.34 - - [13/Feb/2019:19:36:08 +0100] "GET /wp-admin/phpmyadmin/themes/pmahomme/img/s_asc.png HTTP/2.0" 200 146 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0"
80.12.26.34 - - [13/Feb/2019:19:36:14 +0100] "GET /wp-admin/phpmyadmin/server_privileges.php?viewing_mode=server&ajax_request=true&ajax_page_request=true&_nocache=1550082974075530792&token=I)%5B%5C62%2CC6928n7F8 HTTP/2.0" 200 2998 "-$
80.12.26.34 - - [13/Feb/2019:19:36:19 +0100] "GET /wp-admin/phpmyadmin/server_privileges.php?username=nillys&hostname=%25&dbname=&tablename=&routinename=&ajax_request=true&ajax_page_request=true&_nocache=1550082979133797283&token=I)%$
80.12.26.34 - - [13/Feb/2019:19:36:45 +0100] "POST /wp-admin/phpmyadmin/server_privileges.php HTTP/2.0" 200 3468 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0"
80.12.26.34 - - [13/Feb/2019:19:37:01 +0100] "POST /wp-admin/phpmyadmin/server_privileges.php HTTP/2.0" 200 3812 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0"
80.12.26.34 - - [13/Feb/2019:19:37:11 +0100] "GET /wp-admin/phpmyadmin/server_databases.php?ajax_request=true&ajax_page_request=true&_nocache=1550083030919341995&token=I)%5B%5C62%2CC6928n7F8 HTTP/2.0" 200 6387 "-" "Mozilla/5.0 (Windo$
80.12.26.34 - - [13/Feb/2019:19:38:43 +0100] "GET /wp-admin/ HTTP/2.0" 302 0 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0"
80.12.26.34 - - [13/Feb/2019:19:38:43 +0100] "POST /wp-admin/phpmyadmin/logout.php HTTP/2.0" 302 8641 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0"
80.12.26.34 - - [13/Feb/2019:19:38:43 +0100] "GET / HTTP/2.0" 302 0 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0"
80.12.26.34 - - [13/Feb/2019:19:38:44 +0100] "GET /wp-admin/phpmyadmin/index.php HTTP/2.0" 200 3495 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0"
80.12.26.34 - - [13/Feb/2019:19:38:44 +0100] "GET /wp-admin/ HTTP/2.0" 302 0 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0"
80.12.26.34 - - [13/Feb/2019:19:38:44 +0100] "GET /wp-admin/setup-config.php HTTP/2.0" 200 1169 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0"
80.12.26.34 - - [13/Feb/2019:19:38:44 +0100] "GET /wp-admin/setup-config.php HTTP/2.0" 200 1169 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0"
80.12.26.34 - - [13/Feb/2019:19:38:44 +0100] "GET /wp-admin/phpmyadmin/js/vendor/codemirror/lib/codemirror.css?v=4.8.5 HTTP/2.0" 200 0 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0"
80.12.26.34 - - [13/Feb/2019:19:38:44 +0100] "GET /favicon.ico HTTP/2.0" 404 299 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0"
80.12.26.34 - - [13/Feb/2019:19:38:48 +0100] "GET /wp-admin/setup-config.php?step=1&language=fr_FR HTTP/2.0" 200 1143 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0"
80.12.26.34 - - [13/Feb/2019:19:41:04 +0100] "POST /wp-admin/setup-config.php?step=2 HTTP/2.0" 200 719 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0"
80.12.26.34 - - [13/Feb/2019:19:41:17 +0100] "GET /wp-admin/install.php?language=fr_FR HTTP/2.0" 200 2341 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0"
80.12.26.34 - - [13/Feb/2019:19:43:58 +0100] "POST /wp-admin/install.php?step=2 HTTP/2.0" 200 1216 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0"
80.12.26.34 - - [13/Feb/2019:19:44:08 +0100] "GET /favicon.ico HTTP/2.0" 404 0 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0"
80.12.26.34 - - [13/Feb/2019:19:45:49 +0100] "GET / HTTP/2.0" 200 3818 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0"

log error

pas d'erreur

log de la machine cible
log access

192.168.1.2 - - [13/Feb/2019:19:36:14 +0100] "GET /wp-admin/phpmyadmin/server_privileges.php?viewing_mode=server&ajax_request=true&ajax_page_request=true&_nocache=1550082974075530792&token=I)%5B%5C62%2CC6928n7F8 HTTP/1.1" 200 4428 "-" "$
192.168.1.2 - - [13/Feb/2019:19:36:19 +0100] "GET /wp-admin/phpmyadmin/server_privileges.php?username=nillys&hostname=%25&dbname=&tablename=&routinename=&ajax_request=true&ajax_page_request=true&_nocache=1550082979133797283&token=I)%5B%$
192.168.1.2 - - [13/Feb/2019:19:36:45 +0100] "POST /wp-admin/phpmyadmin/server_privileges.php HTTP/1.1" 200 4884 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0"
192.168.1.2 - - [13/Feb/2019:19:37:01 +0100] "POST /wp-admin/phpmyadmin/server_privileges.php HTTP/1.1" 200 5224 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0"
192.168.1.2 - - [13/Feb/2019:19:37:11 +0100] "GET /wp-admin/phpmyadmin/server_databases.php?ajax_request=true&ajax_page_request=true&_nocache=1550083030919341995&token=I)%5B%5C62%2CC6928n7F8 HTTP/1.1" 200 7797 "-" "Mozilla/5.0 (Windows $
192.168.1.2 - - [13/Feb/2019:19:38:43 +0100] "GET /wp-admin/ HTTP/1.1" 302 519 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0"
192.168.1.2 - - [13/Feb/2019:19:38:43 +0100] "POST /wp-admin/phpmyadmin/logout.php HTTP/1.1" 302 10909 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0"
192.168.1.2 - - [13/Feb/2019:19:38:43 +0100] "GET / HTTP/1.1" 302 518 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0"
192.168.1.2 - - [13/Feb/2019:19:38:44 +0100] "GET /wp-admin/phpmyadmin/index.php HTTP/1.1" 200 5026 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0"
192.168.1.2 - - [13/Feb/2019:19:38:44 +0100] "GET /wp-admin/ HTTP/1.1" 302 518 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0"
192.168.1.2 - - [13/Feb/2019:19:38:44 +0100] "GET /wp-admin/setup-config.php HTTP/1.1" 200 1758 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0"
192.168.1.2 - - [13/Feb/2019:19:38:44 +0100] "GET /wp-admin/setup-config.php HTTP/1.1" 200 1758 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0"
192.168.1.2 - - [13/Feb/2019:19:38:44 +0100] "GET /wp-admin/phpmyadmin/js/vendor/codemirror/lib/codemirror.css?v=4.8.5 HTTP/1.1" 200 3112 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0"
192.168.1.2 - - [13/Feb/2019:19:38:44 +0100] "GET /favicon.ico HTTP/1.1" 404 574 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0"
192.168.1.2 - - [13/Feb/2019:19:38:48 +0100] "GET /wp-admin/setup-config.php?step=1&language=fr_FR HTTP/1.1" 200 1732 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0"
192.168.1.2 - - [13/Feb/2019:19:41:04 +0100] "POST /wp-admin/setup-config.php?step=2 HTTP/1.1" 200 1308 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0"
192.168.1.2 - - [13/Feb/2019:19:41:17 +0100] "GET /wp-admin/install.php?language=fr_FR HTTP/1.1" 200 2931 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0"
192.168.1.2 - - [13/Feb/2019:19:43:58 +0100] "POST /wp-admin/install.php?step=2 HTTP/1.1" 200 1806 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0"
192.168.1.2 - - [13/Feb/2019:19:44:08 +0100] "GET /favicon.ico HTTP/1.1" 404 574 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0"
192.168.1.2 - - [13/Feb/2019:19:45:49 +0100] "GET / HTTP/1.1" 200 4402 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0"

log error

[Wed Feb 13 19:00:47.313518 2019] [proxy_fcgi:error] [pid 826:tid 140564699780864] [client 192.168.1.2:48076] AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function wp() in /var/www/html/wp-blog-he$
[Wed Feb 13 19:00:48.477849 2019] [proxy_fcgi:error] [pid 826:tid 140564573890304] [client 192.168.1.2:48078] AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function wp() in /var/www/html/wp-blog-he$
[Wed Feb 13 19:00:48.626742 2019] [proxy_fcgi:error] [pid 826:tid 140564691388160] [client 192.168.1.2:48080] AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function wp() in /var/www/html/wp-blog-he$
[Wed Feb 13 19:01:05.783233 2019] [proxy_fcgi:error] [pid 825:tid 140564829697792] [client 192.168.1.2:48082] AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function wp() in /var/www/html/wp-blog-he$
[Wed Feb 13 19:01:06.213112 2019] [proxy_fcgi:error] [pid 826:tid 140564624246528] [client 192.168.1.2:48084] AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function wp() in /var/www/html/wp-blog-he$
[Wed Feb 13 19:01:06.351945 2019] [proxy_fcgi:error] [pid 826:tid 140564590675712] [client 192.168.1.2:48086] AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function wp() in /var/www/html/wp-blog-he$
[Wed Feb 13 19:01:20.160736 2019] [proxy_fcgi:error] [pid 826:tid 140564682995456] [client 192.168.1.2:48090] AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function wp() in /var/www/html/wp-blog-he$
[Wed Feb 13 19:01:20.597753 2019] [proxy_fcgi:error] [pid 825:tid 140564733351680] [client 192.168.1.2:48092] AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function wp() in /var/www/html/wp-blog-he$
[Wed Feb 13 19:01:21.652395 2019] [proxy_fcgi:error] [pid 825:tid 140564716566272] [client 192.168.1.2:48094] AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function wp() in /var/www/html/wp-blog-he$
[Wed Feb 13 19:01:21.795551 2019] [proxy_fcgi:error] [pid 825:tid 140564708173568] [client 192.168.1.2:48096] AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function wp() in /var/www/html/wp-blog-he$
[Wed Feb 13 19:01:21.979423 2019] [proxy_fcgi:error] [pid 826:tid 140564632639232] [client 192.168.1.2:48098] AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function wp() in /var/www/html/wp-blog-he$
[Wed Feb 13 19:01:36.874207 2019] [proxy_fcgi:error] [pid 825:tid 140564724958976] [client 192.168.1.2:48102] AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function wp() in /var/www/html/wp-blog-he$
[Wed Feb 13 19:01:37.324154 2019] [proxy_fcgi:error] [pid 826:tid 140564829697792] [client 192.168.1.2:48106] AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function wp() in /var/www/html/wp-blog-he$
[Wed Feb 13 19:01:37.476099 2019] [proxy_fcgi:error] [pid 825:tid 140564573890304] [client 192.168.1.2:48108] AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function wp() in /var/www/html/wp-blog-he$
[Wed Feb 13 19:01:37.611991 2019] [proxy_fcgi:error] [pid 826:tid 140564750137088] [client 192.168.1.2:48110] AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function wp() in /var/www/html/wp-blog-he$
[Wed Feb 13 19:01:37.739748 2019] [proxy_fcgi:error] [pid 825:tid 140564607461120] [client 192.168.1.2:48112] AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function wp() in /var/www/html/wp-blog-he$
[Wed Feb 13 19:01:37.875212 2019] [proxy_fcgi:error] [pid 825:tid 140564599068416] [client 192.168.1.2:48114] AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function wp() in /var/www/html/wp-blog-he$
[Wed Feb 13 19:01:38.012570 2019] [proxy_fcgi:error] [pid 825:tid 140564565497600] [client 192.168.1.2:48116] AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function wp() in /var/www/html/wp-blog-he$
[Wed Feb 13 19:01:38.155189 2019] [proxy_fcgi:error] [pid 826:tid 140564741744384] [client 192.168.1.2:48118] AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function wp() in /var/www/html/wp-blog-he$
[Wed Feb 13 19:01:38.323208 2019] [proxy_fcgi:error] [pid 826:tid 140564733351680] [client 192.168.1.2:48120] AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function wp() in /var/www/html/wp-blog-he$
[Wed Feb 13 19:01:38.432183 2019] [proxy_fcgi:error] [pid 826:tid 140564724958976] [client 192.168.1.2:48122] AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function wp() in /var/www/html/wp-blog-he$
[Wed Feb 13 19:01:47.483920 2019] [proxy_fcgi:error] [pid 826:tid 140564565497600] [client 192.168.1.2:48124] AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function wp() in /var/www/html/wp-blog-he$
[Wed Feb 13 19:01:47.946823 2019] [proxy_fcgi:error] [pid 826:tid 140564716566272] [client 192.168.1.2:48126] AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function wp() in /var/www/html/wp-blog-he$
[Wed Feb 13 19:01:49.724606 2019] [proxy_fcgi:error] [pid 826:tid 140564657817344] [client 192.168.1.2:48128] AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function wp() in /var/www/html/wp-blog-he$
[Wed Feb 13 19:01:49.860012 2019] [proxy_fcgi:error] [pid 826:tid 140564582283008] [client 192.168.1.2:48130] AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function wp() in /var/www/html/wp-blog-he$
[Wed Feb 13 19:01:50.019306 2019] [proxy_fcgi:error] [pid 826:tid 140564649424640] [client 192.168.1.2:48132] AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function wp() in /var/www/html/wp-blog-he$
[Wed Feb 13 19:01:50.147458 2019] [proxy_fcgi:error] [pid 826:tid 140564666210048] [client 192.168.1.2:48134] AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function wp() in /var/www/html/wp-blog-he$
[Wed Feb 13 19:01:50.339139 2019] [proxy_fcgi:error] [pid 826:tid 140564599068416] [client 192.168.1.2:48136] AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function wp() in /var/www/html/wp-blog-he$
[Wed Feb 13 19:01:50.476284 2019] [proxy_fcgi:error] [pid 826:tid 140564557104896] [client 192.168.1.2:48138] AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function wp() in /var/www/html/wp-blog-he$
[Wed Feb 13 19:01:51.196180 2019] [proxy_fcgi:error] [pid 826:tid 140564607461120] [client 192.168.1.2:48140] AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function wp() in /var/www/html/wp-blog-he$
[Wed Feb 13 19:11:35.076628 2019] [mpm_event:notice] [pid 824:tid 140565253704640] AH00493: SIGUSR1 received.  Doing graceful restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
[Wed Feb 13 19:11:35.100128 2019] [mpm_event:notice] [pid 824:tid 140565253704640] AH00489: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.0g configured -- resuming normal operations
[Wed Feb 13 19:11:35.100143 2019] [core:notice] [pid 824:tid 140565253704640] AH00094: Command line: '/usr/sbin/apache2'
[Wed Feb 13 19:11:57.129324 2019] [mpm_event:notice] [pid 824:tid 140565253704640] AH00493: SIGUSR1 received.  Doing graceful restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
[Wed Feb 13 19:11:57.138479 2019] [mpm_event:notice] [pid 824:tid 140565253704640] AH00489: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.0g configured -- resuming normal operations
[Wed Feb 13 19:11:57.138490 2019] [core:notice] [pid 824:tid 140565253704640] AH00094: Command line: '/usr/sbin/apache2'
[Wed Feb 13 19:41:04.182528 2019] [proxy_fcgi:error] [pid 2783:tid 140564599133952] [client 192.168.1.2:48914] AH01071: Got error 'PHP message: Erreur de la base de donn\xc3\xa9es WordPress Unknown column 'wp_' in 'field list' 

d'àpres ce que je vois les erreur viennent surtout au niveau de apache2 qui gère le reverse proxy

Dernière modification par Compte supprimé (Le 13/02/2019, à 21:11)

#4 Le 13/02/2019, à 21:16

Compte supprimé

Re : problème wordpress dérrière reverse proxy apache2

enfaite y a pas d'erreur c'est vraiment wordpress qui agis comme sa car phpmyadmin n'a aucun soucie ou même un site coder a la main fonctionne
dans ce tuto il parle du problème que j'ai quand on a wordpress derrière un reverse proxy sauf que ce tuto parle de reverse proxy nginx.
site du tuto

peux ton adapté la config  indiquer dans nginx pour apache2 qui sert de reverse proxy ?
merci d'avance pour votre aide

#5 Le 14/02/2019, à 03:04

krodelabestiole

Re : problème wordpress dérrière reverse proxy apache2

premierement tester que le wordpress fonctionne correctement en local. là tu as des erreurs php qui à vue de nez ne m'ont pas l'air liées à l'utilisation d'un proxy.

ensuite tester la config bête et méchante que j'ai indiquée là : https://doc.ubuntu-fr.org/apache2#mod_proxy (en remplaçant /emby par / et localhost par l'ip)
d'expérience jusqu'ici pour moi ça a marché partout sauf à avoir besoin de proxy websocket ou autre...

après pour wordpress il pourrait y avoir un problème spécifique : la redirection vers le nom de domaine indiquée dans la config (fichier ou bd) : https://doc.ubuntu-fr.org/wordpress#cha … de_domaine
je sais pas comment ça se passe derrière un proxy, j'ai jamais essayé (mais je suppose qu'il vaut mieux indiquer le ndd effectif que l'ip locale)

Dernière modification par krodelabestiole (Le 14/02/2019, à 03:08)

Hors ligne

#6 Le 14/02/2019, à 12:23

Compte supprimé

Re : problème wordpress dérrière reverse proxy apache2

alors en local nickel
1550139522-capture.png

et quand je contacte via l'url
1550139580-capture.png

voilà donc coté php on est ok
est le test bête est méchant est non fonctionnel toujours le même problème

voilà mon nouveau vhost

<VirtualHost *:443>
servername exemple.test.fr
      ServerAlias exemple.test.fr
        Redirect permanent / https://exemple.test.fr

        RewriteEngine off
        #RewriteRule /login.view[/]?$ /login.view [R=permanent]

        SSLEngine on
        SSLCertificateFile /etc/letsencrypt/live/exemple.test.fr/fullchain.pem
        SSLCertificateKeyFile /etc/letsencrypt/live/exemple.test.fr/privkey.pem
        Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains"
        #Header always set Content-Security-Policy "default-src 'self' data: ; script-src 'self' ; style-src 'self' 'unsafe-inline' fonts.googleapis.com https://code.jquery.com ; fo$

        ProxyRequests Off
        ProxyPreserveHost On
        <Proxy *>

        </Proxy>
        ErrorLog /var/log/apache2/sunshine-error.log
        CustomLog /var/log/apache2/sunshine-access.log combined
        <Location />
                ProxyPass http://192.168.1.8:80/
                ProxyPassReverse http://192.168.1.8:80/
                Require all granted
                SetEnv proxy-nokeepalive 1
                SetEnv proxy-sendchunked 1
        </Location>

</Virtualhost>

<VirtualHost *:80>
        ServerAlias exemple.test.fr
        Redirect permanent / https://exemple.test.fr/
</Virtualhost>

Dernière modification par Compte supprimé (Le 14/02/2019, à 12:28)

#7 Le 14/02/2019, à 12:43

bruno

Re : problème wordpress dérrière reverse proxy apache2

Il faut préciser ce que tu appelle en direct et via l'URL. Quels sont les URL utilisées dans chacun des cas ? Le nom de domaine ?

Par ailleurs ceci :

<VirtualHost *:443>
servername exemple.test.fr
      ServerAlias exemple.test.fr
        Redirect permanent / https://exemple.test.fr

va créer une boucle de redirection : toute requête arrivant sur https://exemple.test.fr est redirigé vers https://exemple.test.fr hmm

Et aussi ServerName et non servername et ServerAlias qui est inutile puisqu'il indique le me nom de domaine.

Dernière modification par bruno (Le 14/02/2019, à 13:46)

Hors ligne

#8 Le 14/02/2019, à 12:56

Compte supprimé

Re : problème wordpress dérrière reverse proxy apache2

alors j'ai pas mi la vrai url c'est juste pour anonymiser les données mais ouic'est le sous domaine
personnelment j'ai toujours fais comme sa sa n'a j'amais géné

Dernière modification par Compte supprimé (Le 14/02/2019, à 12:58)

#9 Le 14/02/2019, à 13:53

bruno

Re : problème wordpress dérrière reverse proxy apache2

Essaie déjà avec ceci :

<VirtualHost *:443>
        ServerName exemple.test.fr
        SSLEngine on
        SSLCertificateFile /etc/letsencrypt/live/exemple.test.fr/fullchain.pem
        SSLCertificateKeyFile /etc/letsencrypt/live/exemple.test.fr/privkey.pem
        Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains"

        ProxyPreserveHost On
        RequestHeader set X-Forwarded-Proto "https"

        ProxyPass http://192.168.1.8:80/
        ProxyPassReverse http://192.168.1.8:80/

        ErrorLog /var/log/apache2/sunshine-error.log
        CustomLog /var/log/apache2/sunshine-access.log combined

</Virtualhost>

<VirtualHost *:80>
        ServerAlias exemple.test.fr
        Redirect permanent / https://exemple.test.fr/
</Virtualhost>

Si le problème est toujours le même, il faut examiner le code source de la page envoyée dans le cas d'une connexion via le proxy pour voir l'URL des feuilles de styles.

Hors ligne

#10 Le 14/02/2019, à 14:32

Compte supprimé

Re : problème wordpress dérrière reverse proxy apache2

alors eu apache2 n'a pas aimé le vhost

rfévr. 14 13:35:55 domaine systemd[1]: Starting The Apache HTTP Server...
févr. 14 13:35:55 domaine apachectl[21035]: AH00526: Syntax error on line 10 of /etc/apache2/sites-enabled/sunshine-server.conf:
févr. 14 13:35:55 domaine apachectl[21035]: ProxyPass|ProxyPassMatch needs a path when not defined in a location
févr. 14 13:35:55 domaine apachectl[21035]: Action 'start' failed.
févr. 14 13:35:55 domaine apachectl[21035]: The Apache error log may have more information.
févr. 14 13:35:55 domaine systemd[1]: apache2.service: Control process exited, code=exited status=1
févr. 14 13:35:55 domaine systemd[1]: apache2.service: Failed with result 'exit-code'.
févr. 14 13:35:55 domaine systemd[1]: Failed to start The Apache HTTP Server.

Dernière modification par Compte supprimé (Le 14/02/2019, à 14:36)

#11 Le 14/02/2019, à 14:43

bruno

Re : problème wordpress dérrière reverse proxy apache2

Au temps pour moi, j'ai été un peu vite, il faut mettre :

        ProxyPass / http://192.168.1.8:80/
        ProxyPassReverse / http://192.168.1.8:80/

Hors ligne

#12 Le 14/02/2019, à 17:00

Compte supprimé

Re : problème wordpress dérrière reverse proxy apache2

toujours pareil.

voilà le code source de la page

<head>
	<meta name="viewport" content="width=device-width" />
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="robots" content="noindex,nofollow" />
	<title>WordPress &rsaquo; Fichier de configuration</title>
	<link rel='stylesheet' id='buttons-css'  href='http://exemple.test.fr/wp-includes/css/buttons.min.css?ver=5.0.3' type='text/css' media='all' />
<link rel='stylesheet' id='install-css'  href='http://exemple.test.fr/wp-admin/css/install.min.css?ver=5.0.3' type='text/css' media='all' />
</head>
<body class="wp-core-ui">
<p id="logo"><a href="https://wpfr.net" tabindex="-1">WordPress</a></p>
<h1 class="screen-reader-text">Avant de se lancer</h1>
<p>Bienvenue sur WordPress. Avant de nous lancer, nous avons besoin de certaines informations sur votre base de données. Il va vous falloir réunir les informations suivantes pour continuer.</p>
<ol>
	<li>Nom de la base de données</li>
	<li>Nom d’utilisateur MySQL</li>
	<li>Mot de passe de l’utilisateur</li>
	<li>Adresse de la base de données</li>
	<li>Préfixe de table (si vous souhaitez avoir plusieurs WordPress sur une même base de données)</li>
</ol>
<p>Nous allons utiliser ces informations pour créer le fichier <code>wp-config.php</code>.	<strong>Si pour une raison ou pour une autre la création automatique du fichier ne fonctionne pas, ne vous inquiétez pas. Sa seule action est d’ajouter les informations de la base de données dans un fichier de configuration. Vous pouvez aussi simplement ouvrir <code>wp-config-sample.php</code> dans un éditeur de texte, y remplir vos informations et l’enregistrer sous le nom de <code>wp-config.php</code>.</strong>
	Besoin d’aide ? <a href="https://codex.wordpress.org/fr:Modifier_wp-config.php">Nous sommes là</a>.</p>
<p>Vous devriez normalement avoir reçu ces informations de la part de votre hébergeur. Si vous ne les avez pas, il vous faudra contacter votre hébergeur afin de continuer. Si vous êtes prêt·e&hellip;</p>

<p class="step"><a href="setup-config.php?step=1&amp;language=fr_FR" class="button button-large">C’est parti !</a></p>
<script type='text/javascript' src='http://exemple.test.fr/wp-includes/js/jquery/jquery.js?ver=1.12.4'></script>
<script type='text/javascript' src='http://exemple.test.fr/wp-includes/js/jquery/jquery-migrate.min.js?ver=1.4.1'></script>
<script type='text/javascript' src='http://exemple.test.fr/wp-admin/js/language-chooser.min.js?ver=5.0.3'></script>
</body>
</html>

Dernière modification par Compte supprimé (Le 14/02/2019, à 17:00)

#13 Le 15/02/2019, à 10:21

Compte supprimé

Re : problème wordpress dérrière reverse proxy apache2

je précise que y à vraiment que wordpress qui est comme sa phpmyadmin ne fais pas sa mais apparament y a des truc a mettre dans le vhost mais je sais pas si vous avez d'autres idée  parce que bon les chemins d'accées des css on l'air correcte

#14 Le 15/02/2019, à 19:41

krodelabestiole

Re : problème wordpress dérrière reverse proxy apache2

krodelabestiole a écrit :

après pour wordpress il pourrait y avoir un problème spécifique : la redirection vers le nom de domaine indiquée dans la config (fichier ou bd) : https://doc.ubuntu-fr.org/wordpress#cha … de_domaine

je te conseille de tester indépendamment tes fichiers CSS :
http://exemple.test.fr/wp-includes/css/ … ?ver=5.0.3
http://exemple.test.fr/wp-admin/css/ins … ?ver=5.0.3
etc.

tu peux aussi t'aider de l'onglet réseau / network de l'inspecteur de ton navigateur, qui te montrera directement ce qui ne fonctionne pas.

Dernière modification par krodelabestiole (Le 15/02/2019, à 19:41)

Hors ligne

#15 Le 15/02/2019, à 19:45

krodelabestiole

Re : problème wordpress dérrière reverse proxy apache2

d'ailleurs là le truc c'est que les fichiers CSS sont inclus en http, alors que le site est en https, ça peut aussi être source de problème : https://serverfault.com/questions/90502 … omain-name

Hors ligne

#16 Le 15/02/2019, à 20:29

Compte supprimé

Re : problème wordpress dérrière reverse proxy apache2

voila le résultat des css

/*! This file is auto-generated */
html{background:#f1f1f1;margin:0 20px}body{background:#fff;color:#444;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;margin:140px auto 25px;padding:20px 20px 10px 20px;max-width:700px;-webkit-font-smoothing:subpixel-antialiased;box-shadow:0 1px 3px rgba(0,0,0,.13)}a{color:#0073aa}a:active,a:hover{color:#00a0d2}a:focus{color:#124964;box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.ie8 a:focus{outline:#5b9dd9 solid 1px}h1,h2{border-bottom:1px solid #ddd;clear:both;color:#666;font-size:24px;padding:0;padding-bottom:7px;font-weight:400}h3{font-size:16px}dd,dt,li,p{padding-bottom:2px;font-size:14px;line-height:1.5}.code,code{font-family:Consolas,Monaco,monospace}dl,ol,ul{padding:5px 5px 5px 22px}a img{border:0}abbr{border:0;font-variant:normal}fieldset{border:0;padding:0;margin:0}label{cursor:pointer}#logo{margin:6px 0 14px 0;padding:0 0 7px 0;border-bottom:none;text-align:center}#logo a{background-image:url(../images/w-logo-blue.png?ver=20131202);background-image:none,url(../images/wordpress-logo.svg?ver=20131107);background-size:84px;background-position:center top;background-repeat:no-repeat;color:#444;height:84px;font-size:20px;font-weight:400;line-height:1.3em;margin:-130px auto 25px;padding:0;text-decoration:none;width:84px;text-indent:-9999px;outline:0;overflow:hidden;display:block}#logo a:focus{box-shadow:none}.step{margin:20px 0 15px}.step,th{text-align:left;padding:0}.language-chooser.wp-core-ui .step .button.button-large{height:36px;font-size:14px;line-height:33px;vertical-align:middle}textarea{border:1px solid #ddd;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;width:100%;box-sizing:border-box}.form-table{border-collapse:collapse;margin-top:1em;width:100%}.form-table td{margin-bottom:9px;padding:10px 20px 10px 0;font-size:14px;vertical-align:top}.form-table th{font-size:14px;text-align:left;padding:10px 20px 10px 0;width:140px;vertical-align:top}.form-table code{line-height:18px;font-size:14px}.form-table p{margin:4px 0 0 0;font-size:11px}.form-table input{line-height:20px;font-size:15px;padding:3px 5px;border:1px solid #ddd;box-shadow:inset 0 1px 2px rgba(0,0,0,.07)}input,submit{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif}.form-table input[type=email],.form-table input[type=password],.form-table input[type=text],.form-table input[type=url]{width:206px}.form-table th p{font-weight:400}.form-table.install-success td,.form-table.install-success th{vertical-align:middle;padding:16px 20px 16px 0}.form-table.install-success td p{margin:0;font-size:14px}.form-table.install-success td code{margin:0;font-size:18px}#error-page{margin-top:50px}#error-page p{font-size:14px;line-height:18px;margin:25px 0 20px}#error-page code,.code{font-family:Consolas,Monaco,monospace}.wp-hide-pw>.dashicons{line-height:inherit}#pass-strength-result{background-color:#eee;border:1px solid #ddd;color:#23282d;margin:-2px 5px 5px 0;padding:3px 5px;text-align:center;width:218px;box-sizing:border-box;opacity:0}#pass-strength-result.short{background-color:#f1adad;border-color:#e35b5b;opacity:1}#pass-strength-result.bad{background-color:#fbc5a9;border-color:#f78b53;opacity:1}#pass-strength-result.good{background-color:#ffe399;border-color:#ffc733;opacity:1}#pass-strength-result.strong{background-color:#c1e1b9;border-color:#83c373;opacity:1}#pass1-text.short,#pass1.short{border-color:#e35b5b}#pass1-text.bad,#pass1.bad{border-color:#f78b53}#pass1-text.good,#pass1.good{border-color:#ffc733}#pass1-text.strong,#pass1.strong{border-color:#83c373}.pw-weak{display:none}.message{border-left:4px solid #dc3232;padding:.7em .6em;background-color:#fbeaea}#admin_email,#dbhost,#dbname,#pass1,#pass2,#prefix,#pwd,#uname,#user_login{direction:ltr}#pass1-text,.show-password #pass1{display:none}.show-password #pass1-text{display:inline-block}.form-table span.description.important{font-size:12px}.rtl input,.rtl submit,.rtl textarea,body.rtl{font-family:Tahoma,sans-serif}:lang(he-il) .rtl input,:lang(he-il) .rtl submit,:lang(he-il) .rtl textarea,:lang(he-il) body.rtl{font-family:Arial,sans-serif}@media only screen and (max-width:799px){body{margin-top:115px}#logo a{margin:-125px auto 30px}}@media screen and (max-width:782px){.form-table{margin-top:0}.form-table td,.form-table th{display:block;width:auto;vertical-align:middle}.form-table th{padding:20px 0 0}.form-table td{padding:5px 0;border:0;margin:0}input,textarea{font-size:16px}.form-table span.description,.form-table td input[type=email],.form-table td input[type=password],.form-table td input[type=text],.form-table td input[type=url],.form-table td select,.form-table td textarea{width:100%;font-size:16px;line-height:1.5;padding:7px 10px;display:block;max-width:none;box-sizing:border-box}}body.language-chooser{max-width:300px}.language-chooser select{padding:8px;width:100%;display:block;border:1px solid #ddd;background-color:#fff;color:#32373c;font-size:16px;font-family:Arial,sans-serif;font-weight:400}.language-chooser p{text-align:right}.screen-reader-input,.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.spinner{background:url(../images/spinner.gif) no-repeat;background-size:20px 20px;visibility:hidden;opacity:.7;filter:alpha(opacity=70);width:20px;height:20px;margin:2px 5px 0}.step .spinner{display:inline-block;vertical-align:middle;margin-right:15px}.button.hide-if-no-js,.hide-if-no-js{display:none}@media print,(-webkit-min-device-pixel-ratio:1.25),(min-resolution:120dpi){.spinner{background-image:url(../images/spinner-2x.gif)}}
/*! This file is auto-generated */
html{background:#f1f1f1;margin:0 20px}body{background:#fff;color:#444;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;margin:140px auto 25px;padding:20px 20px 10px 20px;max-width:700px;-webkit-font-smoothing:subpixel-antialiased;box-shadow:0 1px 3px rgba(0,0,0,.13)}a{color:#0073aa}a:active,a:hover{color:#00a0d2}a:focus{color:#124964;box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.ie8 a:focus{outline:#5b9dd9 solid 1px}h1,h2{border-bottom:1px solid #ddd;clear:both;color:#666;font-size:24px;padding:0;padding-bottom:7px;font-weight:400}h3{font-size:16px}dd,dt,li,p{padding-bottom:2px;font-size:14px;line-height:1.5}.code,code{font-family:Consolas,Monaco,monospace}dl,ol,ul{padding:5px 5px 5px 22px}a img{border:0}abbr{border:0;font-variant:normal}fieldset{border:0;padding:0;margin:0}label{cursor:pointer}#logo{margin:6px 0 14px 0;padding:0 0 7px 0;border-bottom:none;text-align:center}#logo a{background-image:url(../images/w-logo-blue.png?ver=20131202);background-image:none,url(../images/wordpress-logo.svg?ver=20131107);background-size:84px;background-position:center top;background-repeat:no-repeat;color:#444;height:84px;font-size:20px;font-weight:400;line-height:1.3em;margin:-130px auto 25px;padding:0;text-decoration:none;width:84px;text-indent:-9999px;outline:0;overflow:hidden;display:block}#logo a:focus{box-shadow:none}.step{margin:20px 0 15px}.step,th{text-align:left;padding:0}.language-chooser.wp-core-ui .step .button.button-large{height:36px;font-size:14px;line-height:33px;vertical-align:middle}textarea{border:1px solid #ddd;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;width:100%;box-sizing:border-box}.form-table{border-collapse:collapse;margin-top:1em;width:100%}.form-table td{margin-bottom:9px;padding:10px 20px 10px 0;font-size:14px;vertical-align:top}.form-table th{font-size:14px;text-align:left;padding:10px 20px 10px 0;width:140px;vertical-align:top}.form-table code{line-height:18px;font-size:14px}.form-table p{margin:4px 0 0 0;font-size:11px}.form-table input{line-height:20px;font-size:15px;padding:3px 5px;border:1px solid #ddd;box-shadow:inset 0 1px 2px rgba(0,0,0,.07)}input,submit{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif}.form-table input[type=email],.form-table input[type=password],.form-table input[type=text],.form-table input[type=url]{width:206px}.form-table th p{font-weight:400}.form-table.install-success td,.form-table.install-success th{vertical-align:middle;padding:16px 20px 16px 0}.form-table.install-success td p{margin:0;font-size:14px}.form-table.install-success td code{margin:0;font-size:18px}#error-page{margin-top:50px}#error-page p{font-size:14px;line-height:18px;margin:25px 0 20px}#error-page code,.code{font-family:Consolas,Monaco,monospace}.wp-hide-pw>.dashicons{line-height:inherit}#pass-strength-result{background-color:#eee;border:1px solid #ddd;color:#23282d;margin:-2px 5px 5px 0;padding:3px 5px;text-align:center;width:218px;box-sizing:border-box;opacity:0}#pass-strength-result.short{background-color:#f1adad;border-color:#e35b5b;opacity:1}#pass-strength-result.bad{background-color:#fbc5a9;border-color:#f78b53;opacity:1}#pass-strength-result.good{background-color:#ffe399;border-color:#ffc733;opacity:1}#pass-strength-result.strong{background-color:#c1e1b9;border-color:#83c373;opacity:1}#pass1-text.short,#pass1.short{border-color:#e35b5b}#pass1-text.bad,#pass1.bad{border-color:#f78b53}#pass1-text.good,#pass1.good{border-color:#ffc733}#pass1-text.strong,#pass1.strong{border-color:#83c373}.pw-weak{display:none}.message{border-left:4px solid #dc3232;padding:.7em .6em;background-color:#fbeaea}#admin_email,#dbhost,#dbname,#pass1,#pass2,#prefix,#pwd,#uname,#user_login{direction:ltr}#pass1-text,.show-password #pass1{display:none}.show-password #pass1-text{display:inline-block}.form-table span.description.important{font-size:12px}.rtl input,.rtl submit,.rtl textarea,body.rtl{font-family:Tahoma,sans-serif}:lang(he-il) .rtl input,:lang(he-il) .rtl submit,:lang(he-il) .rtl textarea,:lang(he-il) body.rtl{font-family:Arial,sans-serif}@media only screen and (max-width:799px){body{margin-top:115px}#logo a{margin:-125px auto 30px}}@media screen and (max-width:782px){.form-table{margin-top:0}.form-table td,.form-table th{display:block;width:auto;vertical-align:middle}.form-table th{padding:20px 0 0}.form-table td{padding:5px 0;border:0;margin:0}input,textarea{font-size:16px}.form-table span.description,.form-table td input[type=email],.form-table td input[type=password],.form-table td input[type=text],.form-table td input[type=url],.form-table td select,.form-table td textarea{width:100%;font-size:16px;line-height:1.5;padding:7px 10px;display:block;max-width:none;box-sizing:border-box}}body.language-chooser{max-width:300px}.language-chooser select{padding:8px;width:100%;display:block;border:1px solid #ddd;background-color:#fff;color:#32373c;font-size:16px;font-family:Arial,sans-serif;font-weight:400}.language-chooser p{text-align:right}.screen-reader-input,.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.spinner{background:url(../images/spinner.gif) no-repeat;background-size:20px 20px;visibility:hidden;opacity:.7;filter:alpha(opacity=70);width:20px;height:20px;margin:2px 5px 0}.step .spinner{display:inline-block;vertical-align:middle;margin-right:15px}.button.hide-if-no-js,.hide-if-no-js{display:none}@media print,(-webkit-min-device-pixel-ratio:1.25),(min-resolution:120dpi){.spinner{background-image:url(../images/spinner-2x.gif)}}

#17 Le 15/02/2019, à 20:38

krodelabestiole

Re : problème wordpress dérrière reverse proxy apache2

ouaipe mais j'imagine que tu es redirigé en https...
sur ta capture d'écran ils ne sont clairement pas chargés.

regarde ce que te dis l'onglet réseau..
et vérifie les erreurs dans la console. c'est habituel que les navigateurs bloquent le chargement de ressources non sécurisées depuis une page en https.

Hors ligne

#18 Le 15/02/2019, à 20:46

Compte supprimé

Re : problème wordpress dérrière reverse proxy apache2

1550256376-capture.png
effectivement y a des erreur 503

#19 Le 15/02/2019, à 20:48

krodelabestiole

Re : problème wordpress dérrière reverse proxy apache2

il n'y a même pas de requête vers tes css ni tes js. ça a clairement été bloqué au niveau du navigateur.

Dernière modification par krodelabestiole (Le 15/02/2019, à 20:49)

Hors ligne

#20 Le 15/02/2019, à 20:53

Compte supprimé

Re : problème wordpress dérrière reverse proxy apache2

je peut faire quoi du coup ?
car bon jellyfin jaimais eu de probleme transmission daemon nom plus les sites coder a la main nom plus

Dernière modification par Compte supprimé (Le 15/02/2019, à 20:55)

#21 Le 15/02/2019, à 21:19

krodelabestiole

Re : problème wordpress dérrière reverse proxy apache2

je tenterais l'installation en local, puis avec wp-cli un search-replace de http:// vers https://
à voir aussi côté thème si on trouve pas des occurrences de http://

et puis ajuster WP_HOME et WP_SITEURL pour forcer https.

Hors ligne

#22 Le 15/02/2019, à 21:25

Compte supprimé

Re : problème wordpress dérrière reverse proxy apache2

alors après quelques recherche j'ai suivie ce tuto
tuto

et voilà mon vhost

<VirtualHost *:443>
        ServerName exemple.test.fr
        SSLEngine on
        SSLCertificateFile /etc/letsencrypt/live/exemple.test.fr/fullchain.pem
        SSLCertificateKeyFile /etc/letsencrypt/live/exemple.test.fr/privkey.pem
        Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains"

        ProxyPreserveHost Off
        RequestHeader set X-Forwarded-Proto "https"

         <Location "/">
         Options None
         Require all granted
        </Location>

        <Location "/wp-admin">
        Options None
        Require all granted
        </Location>

        ProxyPass / http://192.168.1.8:80/
        ProxyPassReverse / http://192.168.1.8:80/

        ErrorLog /var/log/apache2/sunshine-error.log
        CustomLog /var/log/apache2/sunshine-access.log combined

</Virtualhost>

<VirtualHost *:80>
        ServerAlias exemple.test.fr
        Redirect permanent / https://exemple.test.fr/
</Virtualhost>

j'ai rajouté sa dans mon wp-config.php

define('FORCE_SSL_ADMIN', true);
$_SERVER['SERVER_PORT'] = 443;

et voilà problème régler

#23 Le 15/02/2019, à 21:48

Compte supprimé

Re : problème wordpress dérrière reverse proxy apache2

nouveau problème phpmyadmin redirige en ip local
alors allez savoir pourquoi

https://exemple.test.fr/phpmyadmin

redirige en local
mais si je fais

https://exemple.test.fr/phpmyadmin/

la c'est bon
si vous avez une idée pour faire un syttem de micro redirection au niveau du vhost sinon c'est pas grave.

Dernière modification par Compte supprimé (Le 15/02/2019, à 22:02)