我需要使用具有相同 url 的 DjangoCMS 和 prestashop,例如:
localhost/shop = prestashop<br>
localhost/everythingElse = DjangoCMS<br>
我的 prestashop 安装在/var/www/prestashop
djangoCMS 安装在/var/www/djangoCMS
.
Linux Mint 14 64 位、apache2、mod_python、wsgi...
我试过这个 conf :
<VirtualHost *:80>
DocumentRoot "/var/www/djangoCMS"
ServerName localhost
WSGIScriptAlias / "/var/www/djangoCMS/djangoCMS/apache/django.wsgi"
<Directory "/var/www/djangoCMS/djangoCMS/apache">
Options +ExecCGI
Order allow,deny
Allow from all
</Directory>
<VirtualHost *:80>
DocumentRoot "/var/www/prestashop"
ServerName php.localhost
<Directory "/var/www/prestashop">
Options Indexes FollowSymLinks
AllowOverride None
Order Deny,Allow
Allow from all
</Directory>
Django 在 localhost 上运行良好,但我无法访问 php.localhost:糟糕!谷歌浏览器找不到 php.localhost