SetHandler "Proxy: Unix: /run/php/php5.6-fpm.sock | fcgi: // localhost /" ON <virtualhost *:443=""> </virtualhost>

537
Mathieu

Ich habe einen Server unter Apache2 mit mehreren PHP-Versionen. Ich kann den Proxy für aber nicht für ich setzen

<FilesMatch \ .php $> # Apache 2.4.10+ can proxy to unix socket SetHandler "proxy:unix:/run/php/php5.6-fpm.sock|fcgi://localhost/" </ FilesMatch> 

Warum funktioniert es nicht auf der 443?

Mein Beispiel:

<IfModule mod_ssl.c> <VirtualHost *:443> ServerAdmin email@example.com ServerName example.com DocumentRoot /var/www/html/ <Directory /var/www/html/> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all </Directory> <FilesMatch \.php$> # Apache 2.4.10+ can proxy to unix socket SetHandler "proxy:unix:/run/php/php5.6-fpm.sock|fcgi://localhost/" </FilesMatch> SSLCertificateFile /etc/letsencrypt/live/example.com/fullchain.pem SSLCertificateKeyFile /etc/letsencrypt/live/example.com/privkey.pem Include /etc/letsencrypt/options-ssl-apache.conf </VirtualHost> </IfModule> 

Mein VirtualHost *: 80 (was funktioniert)

<VirtualHost *:80> ServerAdmin email@example.com ServerName example.com DocumentRoot /var/www/html/ <Directory /var/www/html/> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all </Directory> <FilesMatch \.php$> # Apache 2.4.10+ can proxy to unix socket SetHandler "proxy:unix:/run/php/php5.6-fpm.sock|fcgi://localhost/" </FilesMatch> </VirtualHost> 

Danke im Voraus

0
Fügen Sie der Frage info aus dem Fehler.log von apache hinzu Alex vor 5 Jahren 1

0 Antworten auf die Frage