2017-04-24 12 views
0

그래서 Windows에 WAMP를 설치하여 Apache와 PHP를 실행했으며 네트워크 공유 \\ 10.0.0.177 \ FMS Studios \ Websites로 이동하는 가상 호스트를 만들어야합니다. 도메인에 갈 때 403 오류가 발생합니다. 이것은 내가 내 아파치 - vhosts.conf 파일에있는 것입니다 :네트워크 공유를 사용하여 가상 호스트를 만드는 방법은 무엇입니까?

<VirtualHost *:80> 
    ServerName tree.fmsds.xyz 
    DocumentRoot "\\10.0.0.177\FMS Studios\Websites" 
    <Directory "\\10.0.0.177\FMS Studios\Websites"> 
     AllowOverride All 
     Require all granted 
     Order deny,allow 
    </Directory> 
</VirtualHost> 

그것도 WAMP의 서버 관리자의 가상 호스트로 등록하지 않습니다 ..

WAMP does not see my virtualhost.

403 Error

+0

제거'주문 거부, 허용'은 아파치 2.2 구문을 허용하고 아파치 2.4 구문 인'모두 승인 됨 '과 잘 섞이지 않는다. – RiggsFolly

+0

여전히 403 오류. – Flyingmcsquid

답변

0

우선 모든 슬래시를 사용하기가 쉽다. 또는 역 슬래시를 사용한다면 모든 슬래시를 벗어나야한다.

두 번째 you shoul

<VirtualHost *:80> 
    ServerName tree.fmsds.xyz 
    DocumentRoot "//10.0.0.177/FMS Studios/Websites" 
    <Directory "//10.0.0.177/FMS Studios/Websites"> 
     AllowOverride All 
     Require all granted 
     # remove this as its Apache 2.2 syntax 
     #Order deny,allow 
    </Directory> 
</VirtualHost> 

또는 사용하는 백 슬래시는 아파치와 같은 지금이

<VirtualHost *:80> 
    ServerName tree.fmsds.xyz 
    DocumentRoot "\\\\10.0.0.177\\FMS Studios\\Websites" 
    <Directory "\\\\10.0.0.177\\FMS Studios\\Websites"> 
     AllowOverride All 
     Require all granted 
     # remove this as its Apache 2.2 syntax 
     #Order deny,allow 
    </Directory> 
</VirtualHost> 

과 같을 것이다 이전 구문을 제거하려면 아파치 2.4.x에서를 사용하고, 그래서 만약 아파치 2.2과 2.4 구문을 혼합 할 거라고 요구하는 것 네트워크 공유에 액세스하려면 Apache가 시작되는 계정에 해당 네트워크 공유에 액세스 할 수있는 권한이 있는지, 그리고 컴퓨터가 부팅되고 인간 관계가 필요하지 않을 때 공유를 사용할 수 있어야합니다.