2014-06-14 3 views
0

CentOS 6 상자에서 몇 개의 가상 호스트를 실행하면서 lampp을 실행 시켰습니다. 가장 최근에 추가 한 가상 호스트 (abacusnurseryschool.com)를 제외한 모든 가상 호스트가 정상적으로 실행 중입니다.lampp 가장 새로운 가상 호스트 "액세스 금지"

이것이 작동하지 않는 유일한 가상 호스트 인 이유를 알 수 없습니다. 내 루트 lampp를/htdocs에 디렉토리 (예 samvella.co.uk)이다

듣고 내 아파치 - vhost.conf의 사본 내 virual 호스트에 의해 그러나 모든 내 다른 directorys accesible, 금지되어 있습니다

# 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과 별개로 작동합니다. 왜 다른 가상 호스트가 얼마전에 설정 되었기 때문에 다른 파일도 변경되었을 수 있습니다. 그러나 나는 변화를 필요로하는 다른 무엇을 생각할 수 없다.

감사합니다,

답변

0

간단한 샘하지만, 일반적인 수정. Apache를 다시로드하십시오.

# sudo /etc/init.d/httpd reload 
+0

하지만 sudo는/옵션/lampp를/lampp를 다시로드 (로 인해 I lampp를 스택을 사용하여 오전) 아직 아무것도. –

+0

루트 있다면 당신은'sudo'없이 시도해 봤어? – Conor

+0

예, (이 시도 두 가지 모두 시도해 보았습니다. 다시 시작해 보았습니다. lampp을 멈추었다가 다시 시작해보십시오. –