在我的Mac上成功安裝XAMP和Typo3後,我設置了一個虛擬主機,以避免在TYPO3上工作時輸入長URL。TYPO3在本地主機上的前端訪問(BE訪問正常工作)
我取消了處理http-vhosts.conf的http.conf行,以便設置虛擬主機,然後在httpd-vhosts.conf中添加我的虛擬主機(稱爲typo3dev),並最終編輯了我的主機文件因此。
到目前爲止這麼好,但現在我的問題是,雖然指向BE(與http://typo3dev/typo3/
)工作得很好(我可以登錄,並在那裏玩得開心),我看不到前端: 當指着我的瀏覽器http://typo3dev/
,我重定向到http://typo3dev/get-started/
在那裏我得到找不到網頁錯誤
在服務器錯誤日誌尋找在我拿到
$[Thu Jun 21 12:39:20 2012] [error] [client 127.0.0.1] File does not exist: /Applications/XAMPP/htdocs/typo3/introductionpackage-4.7.1/get-started
順便說一句,我的主人文件看起來像這樣:
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
fe80::1%lo0 localhost
127.0.0.1 typo3dev
我的httpd-vhosts.conf這樣的:
NameVirtualHost *:80
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#
<VirtualHost *:80>
DocumentRoot "/Applications/XAMPP/htdocs"
ServerName localhost
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "/Applications/XAMPP/htdocs/typo3/introductionpackage-4.7.1"
ServerName typo3dev
</VirtualHost>
非常感謝你提前爲任何幫助/評論/建議
乾杯
嘗試了第一個解決方案,它完美運作!非常感謝你!我現在可以平穩地重定向,並且開始工作! –