是否可以通过 httpd.conf 文件中的某些 apache 指令整合 Django 网站和 PHP 论坛?例如:
<VirtualHost *:80> ServerName myserver DocumentRoot home/myserver/www/ WSGIScriptAlias / /home/myserver/www/mywebsite/mywebsite/wsgi.py <Directory "home/myserver/www/mywebsite"> Order allow,deny Allow from all </Directory> Alias /forum/ /home/myserver/www/mywebsite/forum/ <Directory /home/myserver/www/mywebsite/forum> *tell apache it's PHP* </Directory>
我已经看到了这个问题,但是没有人提到指令。
答案1
<Directory /home/myserver/www/mywebsite/forum> suPHP_UserGroup myuser myuser </Directory>
解决了。