This should be a relatively simple task ???

48 views
Skip to first unread message

austinfl...@gmail.com

unread,
Sep 27, 2017, 10:43:30 PM9/27/17
to highload-php-en

I am not quite getting what I want here and I am guessing it a simple task. I have trolled the internet for several days without seeing what I am looking for. Perhaps someone is doing the same and can help.

sequence of events.

Starting with a functioning apache server with ssl enabled and simple pages setup and tested.

Install php-fpm:                    dnf -y install php-fpm.x86_64

Change timezone:                sed -ie s/\;date\.timezone.*/date.timezone=America\\/Chicago/ /etc/php.ini

edit the /etc/php-fpm.conf: 
include=/etc/php-fpm.d/*.conf

[global]
pid = /run/php-fpm/php-fpm.pid
error_log = /var/log/php-fpm/error.log

daemonize = yes

edit the etc/php-fpm.d/www.conf
[www]
user = apache
group = apache
listen = 127.0.0.1:9000
listen.acl_users = apache,nginx
listen.allowed_clients = 127.0.0.1
pm = dynamic
pm.max_children = 50
pm.start_servers = 5
pm.min_spare_servers = 5
pm.max_spare_servers = 35
slowlog = /var/log/php-fpm/www-slow.log
php_admin_value[error_log] = /var/log/php-fpm/www-error.log
php_admin_flag[log_errors] = on
php_value[session.save_handler] = files
php_value[session.save_path]    = /var/lib/php/session
php_value[soap.wsdl_cache_dir]  = /var/lib/php/wsdlcache

edit the /etc/httpd/conf.d/proxy.conf

<IfModule proxy_module> ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/data/www/html/unencrypted/$1 ProxyPassMatch ^/(https.*\.phps(/.*)?)$ fcgi://127.0.0.1:9000/data/www/html/ssl/$1 </IfModule>

The last line is where I think I have gone wrong. I am trying to only match the SSL pages (/data/www/html/ssl) via https and the http pages to match to the unencrypted pages
(data/www/html/unencrypted/

I have tried a lot of different approaches, including some that seem downright silly

Is anyone doing this or is my concept a bit off.


Reply all
Reply to author
Forward
0 new messages