Already in the service side of the two-level domain name of the point.
Httpd.conf:
DocumentRoot /var/www/www/ ProxyPassMatch ^/(.*\.php)$ fcgi://127.0.0.1:10000/var/www/www/$1 DirectoryIndex index.html index.php
DocumentRoot /var/www/www/a ServerName a.abc.com DirectoryIndex index.php
Now I can access to abc.com/a through a.abc.com, but the PHP script inside can't run, which is why?
Reply content:
Already in the service side of the two-level domain name of the point.
Httpd.conf:
DocumentRoot /var/www/www/ ProxyPassMatch ^/(.*\.php)$ fcgi://127.0.0.1:10000/var/www/www/$1 DirectoryIndex index.html index.php
DocumentRoot /var/www/www/a ServerName a.abc.com DirectoryIndex index.php
Now I can access to abc.com/a through a.abc.com, but the PHP script inside can't run, which is why?
It's so obvious that you don't have to set up a PHP forwarding agent ...
ProxyPassMatch ^/(.*\.php)$ fcgi://127.0.0.1:10000/var/www/www/a/$1