XAMPP를 설정하고 구성했습니다. 내 프로젝트는 'gpstudios'라고 불리며 "local.gpstudios"라는 가상 서버가 있습니다 (호스트에서도 선언 됨). 이를 통해 올바른 루트 디렉토리 액세스를 허용하는 "local.gpstudios /"를 사용할 수 있습니다. htdocs에서 작동하는 .htaccess가 있습니다. 다른 여러 프로젝트에서 사용 중입니다. htdocs/gpstudios에서 자체적으로 다른 .htaccess를 갖고 싶습니다. 나는 httpd.conf 파일을 변경하고 아파치를 다시 시작하려고했습니다하위 디렉토리의 XAMPP .htaccess가 작동하지 않습니다.
:
<Directory "C:/xampp/htdocs/gpstudios">
AllowOverride all
Require all granted
</Directory>
을하지만 아무것도 변경되지 않습니다. htdocs/gpstudios의 .htaccess는 내가 작성한 내용에 상관없이 아직 한 번 작동하지 않습니다. 현재 "deny from all"행만 포함되어있어 브라우저에서 오류가 발생합니다.
다른 .htaccess를 삭제/이동하지 않는 동안 어떻게 작동 시키나요?
[편집]
나는 모든 것을 시도했습니다. 내 가상 호스트 설정이 완벽 해 보입니다. Everywhwere는 AllowOverride All과 Allow from all이라고 말합니다. 완전히 엉망이되었습니다. 당신의 httpd-vhosts.conf
NameVirtualHost local.gpstudios:80
<VirtualHost local.gpstudios:80>
ServerAdmin [email protected]
DocumentRoot "C:/xampp/htdocs/gpstudios"
ServerName local.gpstudios
ServerAlias www.local.gpstudios
<Directory "C:/xampp/htdocs/gpstudios">
AllowOverride ALL
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>
흠, 나는 그것을 시도하고 차이를 만들었지 만, 여전히 작동하지 않습니다. NameVirtualHost local.gpstudios : 80 및은 NameVirtualHost * : 80 및 입니다. 이제 local.gpstudios는 루트 .htaccess를 상속하지만 여전히 자신의 것을 무시합니다. –
hedgehog90
'.htaccess' 파일은 ** gpstudios ** 또는 하위 디렉토리에 있습니다. – undone
gpstudios에 있습니다. 솔직히, 나는 아무런 일을하지 않고, 체크하고 트리플 체크를하고, 구글 결과를 통해 제안 된 모든 것을 시도했다. 나는 하루 종일 일하게하려고 애썼다. 단지 미친 것. – hedgehog90