리눅스 분류
wget 관련해서 문의드립니다.
작성자 정보
- 개나리그늘 작성
- 작성일
컨텐츠 정보
- 3,640 조회
- 4 댓글
- 0 추천
- 목록
본문
안녕하세요.
제가 개인서버를 만들었습니다.
도메인(DNS)까지 구매해 놓았는데요..
왜 다른 컴퓨터에서 wget http://제서버주소/파일경로/파일
했는데 왜 계속 서버정보만 가져오는것입니까?ㅜㅜ 실질적인 파일은 가져오지 못하고 있습니다..index.html파일만 가져오고있습니다..ㅜㅜ
제가 개인서버를 만들었습니다.
도메인(DNS)까지 구매해 놓았는데요..
왜 다른 컴퓨터에서 wget http://제서버주소/파일경로/파일
했는데 왜 계속 서버정보만 가져오는것입니까?ㅜㅜ 실질적인 파일은 가져오지 못하고 있습니다..index.html파일만 가져오고있습니다..ㅜㅜ
관련자료
-
이전
-
다음
댓글 4
dslee님의 댓글
- dslee
- 작성일
정확한 경로를 입력하셔야 될것 같은데요
개나리그늘님의 댓글의 댓글
- 개나리그늘
- 작성일
정확한 경로요??
제가 따로 httㅔ://제서버주소/파일경로/파일 위치 인데요.
제가 개인적으로 서버주소 뒤에오는 경로를 제가 따로 지정을 해줘야하는것인가요?ㅜ
제가 따로 httㅔ://제서버주소/파일경로/파일 위치 인데요.
제가 개인적으로 서버주소 뒤에오는 경로를 제가 따로 지정을 해줘야하는것인가요?ㅜ
dslee님의 댓글의 댓글
- dslee
- 작성일
예를들어서
vi /usr/local/apache/conf/extra/httpd-vhosts.conf
<VirtualHost *:80>
ServerAdmin test
DocumentRoot "/home/test/www/"
ServerName test.com
</VirtualHost>
아파치에 요렇게 설정 되어있다면요,
님이 파일을 /home/test/www/ 아래에 올려둡니다.
예를들어 aaa.zip 파일이 www 아래에 있다고 칩니다.
그리고 wget 으로 다른곳에서 다운을 받길 원한다면
wget http://test.com/aaa.zip
하면 정상적으로 다운로드 가능!!
vi /usr/local/apache/conf/extra/httpd-vhosts.conf
<VirtualHost *:80>
ServerAdmin test
DocumentRoot "/home/test/www/"
ServerName test.com
</VirtualHost>
아파치에 요렇게 설정 되어있다면요,
님이 파일을 /home/test/www/ 아래에 올려둡니다.
예를들어 aaa.zip 파일이 www 아래에 있다고 칩니다.
그리고 wget 으로 다른곳에서 다운을 받길 원한다면
wget http://test.com/aaa.zip
하면 정상적으로 다운로드 가능!!
개나리그늘님의 댓글의 댓글
- 개나리그늘
- 작성일
dslee님 답변감사합니다....따로 www 디렉토리를 설정되주어야하는것인가요..?
그리고 serveradmin은 기본적인 제 부계정지정해주면 되나요?
그리고 왜 제 아파치가 service httpd start는 되는데...
왜 소스설치한 아파치는 apachctl을 실행하면
httpd (no pid file) not running
[root@ns bin]# ./apachectl start
(98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
(98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
AH00015: Unable to open logs
[root@ns bin]# ./apachectl status
Not Found
The requested URL /server-status was not found on this server.
--------------------------------------------------------------------------
Apache/2.2.3 (CentOS) Server at localhost Port 80
이렇게 나오는것일까요,....
답변 감사합니다...ㅜ
dslee님 답변감사합니다....따로 www 디렉토리를 설정되주어야하는것인가요..?
그리고 serveradmin은 기본적인 제 부계정지정해주면 되나요?
그리고 왜 제 아파치가 service httpd start는 되는데...
왜 소스설치한 아파치는 apachctl을 실행하면
httpd (no pid file) not running
[root@ns bin]# ./apachectl start
(98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
(98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
AH00015: Unable to open logs
[root@ns bin]# ./apachectl status
Not Found
The requested URL /server-status was not found on this server.
--------------------------------------------------------------------------
Apache/2.2.3 (CentOS) Server at localhost Port 80
이렇게 나오는것일까요,....
답변 감사합니다...ㅜ
그리고 serveradmin은 기본적인 제 부계정지정해주면 되나요?
그리고 왜 제 아파치가 service httpd start는 되는데...
왜 소스설치한 아파치는 apachctl을 실행하면
httpd (no pid file) not running
[root@ns bin]# ./apachectl start
(98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
(98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
AH00015: Unable to open logs
[root@ns bin]# ./apachectl status
Not Found
The requested URL /server-status was not found on this server.
--------------------------------------------------------------------------
Apache/2.2.3 (CentOS) Server at localhost Port 80
이렇게 나오는것일까요,....
답변 감사합니다...ㅜ
dslee님 답변감사합니다....따로 www 디렉토리를 설정되주어야하는것인가요..?
그리고 serveradmin은 기본적인 제 부계정지정해주면 되나요?
그리고 왜 제 아파치가 service httpd start는 되는데...
왜 소스설치한 아파치는 apachctl을 실행하면
httpd (no pid file) not running
[root@ns bin]# ./apachectl start
(98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
(98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
AH00015: Unable to open logs
[root@ns bin]# ./apachectl status
Not Found
The requested URL /server-status was not found on this server.
--------------------------------------------------------------------------
Apache/2.2.3 (CentOS) Server at localhost Port 80
이렇게 나오는것일까요,....
답변 감사합니다...ㅜ