1
symfony의 탄력적 인 beanstalk PHP 애플리케이션에 대한 기본 http 인증을 구현하고 싶습니다. 나는 이미 this link where it is explained for an other php project을 찾았고 나의 심포니 요구를 위해 그것을 약간 조정했다.탄력있는 beanstalk PHP/Symfony의 기본 HTTP 인증
files:
"/etc/httpd/conf.d/allow_override.conf":
mode: "000644"
owner: ec2-user
group: ec2-user
encoding: plain
content: |
<Directory /var/www/html/www/ />
AllowOverride AuthConfig
</Directory>
"/etc/httpd/conf.d/auth.conf":
mode: "000644"
owner: ec2-user
group: ec2-user
encoding: plain
content: |
<Directory /var/www/html/www/ />
AuthType Basic
AuthName "Myproject Prototype"
AuthUserFile /etc/httpd/.htpasswd
Require valid-user
</Directory>
"/etc/httpd/.htpasswd":
mode: "000644"
owner: ec2-user
group: ec2-user
encoding: plain
content: |
admin:lala
문제점 : 거기에 설정할 디렉토리가 확실하지 않습니다. 내가 시도 :
- 의/var/www/html/www /에서
- 의/var/www/html/www가
- 의/var/www/html/
- 의/var/www /에서 html로
그러나이 중 아무 것도 작동하지 않습니다. 당신이 심포니를 사용하는 경우 내가 할 모든 일부 오류 503
이봐, 당신의 응답 : 몇 가지 이유의 폴더가 같은 이름 때문에 /www가가, 무사하다 주셔서 감사합니다. 그러나 AllowOverride 정보는 새로운 것입니다. 고마워요! 그동안 나는 vpn-access를 통해 나의 원래 문제를 해결했다. :) –