0
我的lampp運行在CentOS 6盒子上,有幾個虛擬主機正在運行,我的所有虛擬主機都運行良好,除了我最近添加的一個(abacusnurseryschool.com)。lampp最新的虛擬主機「禁止訪問」
我還沒有弄清楚爲什麼這是唯一不工作的虛擬主機。我的根LAMPP/htdocs目錄是被禁止的,但是我的所有其他directorys入店我的virual主機是(即samvella.co.uk)
聽到的是我的httpd-vhost.conf副本
# Virtual Hosts
#
# Required modules: mod_log_config
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs/2.4/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.
#
# 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 「/opt/lampp/htdocs/abacus/「
ServerName abacusnurseryschool.com
ServerAlias www.abacusnurseryschool.com
</VirtualHost>
<VirtualHost *:80>
DocumentRoot 「/opt/lampp/htdocs/betltc/「
ServerName betltc.co.uk
ServerAlias www.betltc.co.uk
</VirtualHost>
<VirtualHost *:80>
DocumentRoot 「/opt/lampp/htdocs/valeouse/「
ServerName valeouse.co.uk
ServerAlias www.valeouse.co.uk
</VirtualHost>
<VirtualHost *:80>
DocumentRoot 「/opt/lampp/htdocs/valeouse/「
ServerName samvella.co.uk
ServerAlias www.samvella.co.uk
</VirtualHost>
所有的虛擬主機都與abacusnurseryschool.com分開工作,不知道爲什麼,所有其他虛擬主機剛剛設置好了,所以我可能也改變了其他文件?但我想不出還有什麼需要改變。
問候, 山姆
嘗試這種(但使用sudo的/ opt/LAMPP/LAMPP重裝(因爲我使用LAMPP堆棧時),仍然一無所獲。 –
你嘗試沒有'sudo'如果你是root? – Conor
是,已嘗試使用兩者,也嘗試重新啓動,然後啓動lampp ... –