在Django上有兩個網站。他們的配置文件是相同的(重命名名稱,項目路徑)。但首先是工作,第二不工作。Django.Wsgi.Apache。 Apache2中的錯誤403
在Django上有兩個網站。他們的配置文件是相同的(重命名名稱,項目路徑)。但首先是工作,第二不工作。
firstweb.conf.
<VirtualHost *:80>
WSGIScriptAlias//var/www/firstweb/firstweb/wsgi.py
ServerName firstweb.com
Alias /static /var/www/firstweb/static
<Directory /var/www/firstweb>
Order deny,allow
Deny from all
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
現在從第二個網站(twoweb)我得到了錯誤403(禁止)。
訪問項目:
drwxrwxrwx 3 andrey andrey 4096 июл 14 14:19 firstweb
drwxrwxrwx 3 andrey andrey 4096 июл 14 14:28 twoweb
我在做什麼錯?
感謝和抱歉我的英語。
對不起,不能幫你解決問題,但也有一個https://ru.stackoverflow.com。如果你有問題解釋自己,也許他們可以幫助你;) – hansTheFranz