已经在服务商那边搞好了二级域名的指向。
httpd.conf:
<code> 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</code>
现在我可以通过a.abc.com访问到abc.com/a,但是里面的php脚本无法运行,这是为什么呢?
回复内容:
已经在服务商那边搞好了二级域名的本文来源[email protected]搞@^&代*@码)网9搞代gaodaima码指向。
httpd.conf:
<code> 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</code>
现在我可以通过a.abc.com访问到abc.com/a,但是里面的php脚本无法运行,这是为什么呢?
这多明显,你没有设置php转发代理。。。
<code class="apache">ProxyPassMatch ^/(.*\.php)$ fcgi://127.0.0.1:10000/var/www/www/a/$1</code>