2016-08-03 2 views
0

나는 test라는 폴더 안에 간단한 웹 사이트가 있으므로 http://localhost/test을 호출하고 Hello World! 메시지가 나타납니다. HTTPS 모드로 전화하면 같은 메시지가 나타납니다. https://localhost/test.xampp linux에서 웹 루트를 변경하면 https를 사용하여 연결을 시도 할 때 오류 403이 발생합니다.

문제는 내가 /opt/lampp/htdocs에서 /home/ubuntu/www 내 웹 루트 htdocs에 디렉토리를 변경 한 후, 나는 여전히 HTTP 링크를 호출하여 안녕하세요 세계 메시지를 볼 수 있어요,하지만 난 HTTPS 링크를 호출 할 때, 내가 갖는 것입니다 :

Access forbidden! 

You don't have permission to access the requested 
directory. There is either no index document or the directory is 
read-protected. If you think this is a server error, please contact 
the webmaster. Error 403 

답변

0

또한이 솔루션은/etc/추가 /, 우리는 DocumentRoot를이 곳 라인 (86)을 수정 "/ 옵션/lampp를/htdocs에"에 새 디렉토리에있는 아파치 - ssl.conf 파일을 수정하는 것이 었습니다 "/ home/우분투/www"

관련 문제