![Django 和 phpBB 服务器](https://linux22.com/image/643678/Django%20%E5%92%8C%20phpBB%20%E6%9C%8D%E5%8A%A1%E5%99%A8.png)
是否可以通过 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>
解决了。