2013-01-19 29 views
0

我有一個yii站點。但我想讓Django服務於那些有url路徑 www.mysite.com/django或子域www.django.mysite.com的頁面。服務器安裝了fastcgi,它是一個共享服務器。如何部署Yii和Django在一起

爲警予我的.htaccess文件看起來像這樣(這是在WWW文件夾),因爲我已經爲index.php的URL清潔



    Options +FollowSymLinks 
` IndexIgnore */* 
    RewriteEngine on 

    # if a directory or a file exists, use it directly 
    RewriteCond %{REQUEST_FILENAME} !-f 
    RewriteCond %{REQUEST_FILENAME} !-d 

    # otherwise forward it to index.php 
    RewriteRule . index.php 

回答

0

通過共享服務器就意味着付出主機中刪除?真正的問題是你是否可以訪問apache conf,如果不能,你可以禮貌地向主機請求爲django插入一個VirtualHost。