내 Apache 서버에 파일을 업로드하기 위해 HTML 양식을 만들었습니다.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<title>upload</title>
</head>
<body>
<form action="http://localhost:8000" method="post" enctype="multipart/form-data">
<p><input type="file" name="file1">
<p><button type="submit">Submit</button>
</form>
</body>
</html>
Apache 구성에서 수신 대기하도록 포트를 변경하고 Apache 서비스를 다시 시작한 다음 양식을 열고 버튼을 클릭하여 .txt 파일을 업로드했습니다.
결과: Apache의 기본 페이지가 나타나지만,
/var/www/html
파일이 없습니다.
업로드가 안되는 이유를 모르겠습니다. 어떤 아이디어?