|
From: Csere M. <cs...@gm...> - 2014-12-02 15:31:57
|
2014.12.02. 2:32 keltezéssel, Jamie Cameron írta:
> Right now, there is no way to do this - Virtualmin always copies all directives
> from the non-SSL virtualhost to the SSL version so that they remain in sync.
>
> What settings do you want to vary exactly?
I am using php-fpm with apache(2.2) FastCgiExternalServer.
For it to work I need to have something like this in my vhosts:
<IfModule mod_fastcgi.c>
AddHandler php5-fcgi .php
Action php5-fcgi /php5-fcgi
Alias /php5-fcgi /home/vhost/public_html/some-unique-name-all-trough-apache
FastCgiExternalServer
/home/vhost/public_html/some-unique-name-all-trough-apache -socket
/path/to/phpfpm-socket.
</IfModule>
Adding an SSL vhost compromises my path of
"/home/vhost/public_html/some-unique-name-all-trough-apache"
and apache fails to start with "FastCgiExternalServer: redefinition of
previously defined class
/home/vhost/public_html/some-unique-name-all-trough-apache"
Speaking of templates:
Since I am not using virutalmin's pre-set of php enviroments (in
virtualmin I have it set to mod_php), I would like to give my users an
opportunity
to choose between php versions.
So far I have got to the point where I have a Custom Field Menu, with
PHP versions in it, then generate the FastCgiExternalServer line's
socket path accordingly,
inside apache template (-socket
/path/to/php-fpm/socket/${FIELD_PHP}/php5-fpm.sock-${UID}, with PHP
having values 52,53,54)
This almost works as i want it to: when I change the field value the web
feature needs to be disabled/enabled so the vhost would update its file.
What solution would you suggest for this problem (let users choose
between my custom php versions automatically)?
Perhaps I need to write (if possible) a new feature plugin to handle all
this?
|