*.html 파일만 에러가 나옵니다 정보
*.html 파일만 에러가 나옵니다본문
홈페이지에서 php 파일과 htm 파일은 정상적으로 열립니다만(세번째 사진)
html 파일만 첫번째 사진 같은 메시지가 뜹니다.
error_log 파일에는 아래와 같은 메시지가 뜹니다.
Syntax error in type map, no ':' in /home/www/public_html/t.html for header <html>\n
httpd.conf에 아래와 같이 설정되어 있습니다.
<IfModule mime_module>
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddType application/x-httpd-php .html .htm .php .php4
</IfModule>
오래 전 보안패치를 하면서 ./data/ 디렉토리에 .htaccess 파일을 만들었습니다.
덕분에 세녀석 다 두번째 사진 같은 메시지가 나옵니다만
이 문제와는 상관 없다고 생각합니다.
그렇다면..... 어디를 살펴봐야 합니까?
[참고]
테스트용 파일은 다음과 같은 내용입니다.
<html>
<title>Test</title>
<body>
It is just TEST!!!
</body>
</html>
html 파일만 첫번째 사진 같은 메시지가 뜹니다.
error_log 파일에는 아래와 같은 메시지가 뜹니다.
Syntax error in type map, no ':' in /home/www/public_html/t.html for header <html>\n
httpd.conf에 아래와 같이 설정되어 있습니다.
<IfModule mime_module>
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddType application/x-httpd-php .html .htm .php .php4
</IfModule>
오래 전 보안패치를 하면서 ./data/ 디렉토리에 .htaccess 파일을 만들었습니다.
덕분에 세녀석 다 두번째 사진 같은 메시지가 나옵니다만
이 문제와는 상관 없다고 생각합니다.
그렇다면..... 어디를 살펴봐야 합니까?
[참고]
테스트용 파일은 다음과 같은 내용입니다.
<html>
<title>Test</title>
<body>
It is just TEST!!!
</body>
</html>
댓글 전체
httpd.conf 재설정후 아파치 리스타트 하셨어요?
또는 httpd.conf 파일이 실제 적용되는 파일인지 확인해 보셨는지??
*.html 파일 생성시 권한을 맞게 설정하셨는지??
또는 httpd.conf 파일이 실제 적용되는 파일인지 확인해 보셨는지??
*.html 파일 생성시 권한을 맞게 설정하셨는지??
httpd.conf 파일은 수정없이 열어서 확인만 했습니다.
*.html 파일은 SSH를 이용해서 root 권한으로 만들었습니다.
-rw-r--r-- 1 root root 69 2013-02-13 16:35 t.htm
-rw-r--r-- 1 root root 69 2013-02-13 17:10 t.html
-rw-r--r-- 1 root root 69 2013-02-13 13:40 t.php
죄송합니다만..... 'httpd.conf 파일이 실제 적용되는 파일'인지를 어떻게 확인해야 합니까?
파일 위치는 /usr/local/apache/conf/입니다.
*.html 파일은 SSH를 이용해서 root 권한으로 만들었습니다.
-rw-r--r-- 1 root root 69 2013-02-13 16:35 t.htm
-rw-r--r-- 1 root root 69 2013-02-13 17:10 t.html
-rw-r--r-- 1 root root 69 2013-02-13 13:40 t.php
죄송합니다만..... 'httpd.conf 파일이 실제 적용되는 파일'인지를 어떻게 확인해야 합니까?
파일 위치는 /usr/local/apache/conf/입니다.
cd /
find -name httpd.conf
해서 파일 찾기해보시고
해당파일 수정해보세요~
find -name httpd.conf
해서 파일 찾기해보시고
해당파일 수정해보세요~
해당 파일을 다른이름으로 변경하고
httpd 재시작해보면
위 파일이 실제 적용되던 파일이라면 재시작이 않되지 않을까요?
^^
httpd 재시작해보면
위 파일이 실제 적용되던 파일이라면 재시작이 않되지 않을까요?
^^
아는 분의 도움을 받아서 여러곳을 뒤져서 나온, '터무니없는 방법'대로 아래 부분을 수정했습니다.
httpd.conf 파일에서.....
<Directory "/home/www/public_html/">
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
<Files *.html>
SetHandler type-map
</Files>
SetEnvIf Request_URI ^/manual/(de|en|es|fr|ja|ko|ru)/ prefer-language=$1
RedirectMatch 301 ^/manual(?:/(de|en|es|fr|ja|ko|ru)){2,}(/.*)?$ /manual/$1$2
</Directory>
↓↓↓
<Directory "/home/www/public_html/">
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
<Files *.html>
# SetHandler type-map
</Files>
#SetEnvIf Request_URI ^/manual/(de|en|es|fr|ja|ko|ru)/ prefer-language=$1
#RedirectMatch 301 ^/manual(?:/(de|en|es|fr|ja|ko|ru)){2,}(/.*)?$ /manual/$1$2
</Directory>
이제는 에러없이 잘 열립니다.
정말..... 뭐가 문제였을까요?.....^^
httpd.conf 파일에서.....
<Directory "/home/www/public_html/">
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
<Files *.html>
SetHandler type-map
</Files>
SetEnvIf Request_URI ^/manual/(de|en|es|fr|ja|ko|ru)/ prefer-language=$1
RedirectMatch 301 ^/manual(?:/(de|en|es|fr|ja|ko|ru)){2,}(/.*)?$ /manual/$1$2
</Directory>
↓↓↓
<Directory "/home/www/public_html/">
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
<Files *.html>
# SetHandler type-map
</Files>
#SetEnvIf Request_URI ^/manual/(de|en|es|fr|ja|ko|ru)/ prefer-language=$1
#RedirectMatch 301 ^/manual(?:/(de|en|es|fr|ja|ko|ru)){2,}(/.*)?$ /manual/$1$2
</Directory>
이제는 에러없이 잘 열립니다.
정말..... 뭐가 문제였을까요?.....^^