我真的被困在這。我有一個magento安裝和一個apache2服務器。由於MultiStore進行的,我需要一些領域這樣的映射:Apache2忽略虛擬主機
/var/www/magento -> Magento installation
/var/www/magento/bienenkorb -> store1
/var/www/magento/sarto24 -> store2
如果我有過IP一切正常:
http://91.250.115.212/magento/bienenkorb/導致了第一家專賣店
http://91.250.115.212/magento/sarto24/導致了第二個店
現在我將一個域(臨時)http://bienenkorb24.eu映射到IP 91.250.115.212
然後創建在/ etc/apache2的/一個bienenkorb24.eu.conf文件的網站,avalable並通過a2ensite激活它,包含:
NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www/magento/bienenkorb
ServerRoot /var/www/magento/bienenkorb
ServerName bienenkorb24.eu
<Directory /var/www/magento/bienenkorb>
Require all granted
</Directory>
</VirtualHost>
但我依然對根的土地(在/ var/WWW),而不是store1地址。
有人可以幫我嗎?
沒有特別的錯誤,在error.log中:
Tue Jul 21 19:51:08 2015] [notice] Digest: generating secret for digest authentication ...
[Tue Jul 21 19:51:08 2015] [notice] Digest: done
[Tue Jul 21 19:51:08 2015] [notice] Apache/2.2.22 (Debian) DAV/2 mod_perl/2.0.7 Perl/v5.14.2 configured -- resuming normal operations
[Tue Jul 21 19:51:11 2015] [error] [client 66.249.64.224] File does not exist: /var/www/gmundner
你能檢查你的apache2錯誤日誌嗎?例如某處位於/ var/log(並在此發佈任何可能的相關內容;)) – insaneivan
error.log文件附帶:) –
您是否重新加載** Apache Web服務? –