이번엔 -_-; httpd가 미쳤습니다

weifuchs의 이미지

php파일은 보여지는데
html파일은 -_-; 다운이 됩니다 -_-;
다운받아집니다 아파치 설정에 어디가 잘못된건지 --;;

File attachments: 
첨부파일 크기
Plain text icon httpd.txt34.3 KB
cohuman1의 이미지

httpd.conf 에

AddType application/x-httpd-php .php .html .htm .inc

설정되어 있는지 보세요.
.html 이 없으면 추가해보시구요.

아직 초보라서 질문조차도 엉성할 수 있습니다.
이해하시구요.^^.
제 글을 읽어주시는 분들, 답변해주시는 분들께 항상 감사드립니다.

weifuchs의 이미지

httpd.conf에
AddType application/x-httpd-php .php4 .php3 .phtml .php .inc .html .htm
라고 써있습니다 >_<
그래도 안됩니다 T.T

당신의 가르침에 나는 무지한 나를 탓합니다

cohuman1의 이미지

아 역시 제 답변은 허접할 수 밖에 없습니다 ㅜㅜ

그럼
# cat httpd.conf | grep html

실행시켜서 결과값을 올려보세요.
제거랑 머가 다른지 보게요;;

아직 초보라서 질문조차도 엉성할 수 있습니다.
이해하시구요.^^.
제 글을 읽어주시는 분들, 답변해주시는 분들께 항상 감사드립니다.

jw0717의 이미지

httpd.conf를 함 올려보세요.. 윗분이랑 저랑

저의거 함 비교해볼게요..흐흐... 초보라서 딱 뭔지 몰겟네요..비교해봐야지..

흐흐..

jw0717의 이미지

호호혹시..

conf/ 밑에 httpd.conf에 mime타입을 지정하는 파일이 있거던요..

mime.types라구

설정부분은 없나요..^^;;

weifuchs의 이미지

왜이리 마음대로 안되는건지 -_-;
이상한건 -_-; 전에는 되었는데 당일날 왜 이렇게 안되는게 많은건지 T.T
파일 첨부하게씁니다

cat httpd.conf | grep html
# (available at <URL:http://httpd.apache.org/docs-2.0/mod/core.html#lockfile>);
DocumentRoot "/var/www/html"
<Directory " /var/www/html">
# http://httpd.apache.org/docs-2.0/mod/core.html#options
ErrorDocument 403 /error/noindex.html
# The path to the end user account 'public_html 'directory must be
# must have permissions of 711, ~userid/public_html must have permissions
# See also: http://httpd.apache.org/docs/misc/FAQ.html#forbidden
# To enable requests to /~user/ to serve the user's public_html
#UserDir public_html
#<Directory /home/*/public_html>
# The index.html.var file (a type-map) is used to deliver content-
DirectoryIndex index.php index.php3 index.php4 index.html index.htm
AddIcon /icons/layout.gif .html .shtml .htm .pdf
ReadmeName README.html
HeaderName HEADER.html
AddType application/x-httpd-php .php4 .php3 .phtml .php .inc .html .htm
AddType shtml .html .htm
# To parse .shtml files for server-side includes (SSI):
AddOutputFilter INCLUDES .shtml
#ErrorDocument 404 /missing.html
#ErrorDocument 402 http://www.example.com/subscription_info.html
# We use Alias to redirect any /error/HTTP_<error>.html.var response to
# default HTTP_<error>.html.var files by adding the line;
AddOutputFilter Includes html
ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
ErrorDocument 410 /error/HTTP_GONE.html.var
ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var
ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
ErrorDocument 415 /error/HTTP_SERVICE_UNAVAILABLE.html.var
ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var
ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var

댓글 첨부 파일: 
첨부파일 크기
Plain text icon 0바이트

당신의 가르침에 나는 무지한 나를 탓합니다

jw0717의 이미지

우선.. 님의 /etc/mime.types파일을 확인해보세요...

거기 이런식으로 mime 타입을 지정해주거던요..
text/html html htm

대신 장담은 못하겠어요.. 흐흐.. 저도 원체 초보라서요..

weifuchs의 이미지

에 text/html html htm
이라고 있습니다.. 풀썩.. 어디가 잘못된건지.... 큭....T.T

당신의 가르침에 나는 무지한 나를 탓합니다

jw0717의 이미지

죄송함다.. 흐흐.. 그 mime.types는 상관없겟네요.

슈퍼 유저 코리아에서도 찾아봤는데..

거기도 질문만 있구 답변은 없더군요..흐흐..

weifuchs의 이미지

지푸라기라도 잡고 싶은 심정에 그래도 답변이라도
해주시니깐 감사드립니다^^

당신의 가르침에 나는 무지한 나를 탓합니다

jw0717의 이미지

아파치 한국 사이트가도 이 질문은 많은데 답은 없네요..

아 글구 어떤분이.. www.xxx.xxx.xxx.xxx/index.html 은 화면이 뜨는데

www.xxx.xxx.xxx.xxx 하면 파일이 다운로드 된다고 하는군요..

그부분이면. DirectoryIndex 부분인데 님도 이런현상인가요?

codebank의 이미지

php는 출력이 가능하다고 했으니 php.ini설정에서 찾아보는게 좋지 않을까요?
제가 가지고 있는 php.ini에는

Quote:
default_mimetype = "text/html"

가 추가 되어있는데 이것도 한번 확인해보세요.

------------------------------
좋은 하루 되세요.

jw0717의 이미지

웅..아파치 한글 사이트 가보니까 답변이 몇개 있네요...

이부분 수정하는거랑..
AddModule mod_mime.c
mime.types 파일 수정에서
AddType application/x

html 파일들의 권한 확인해보라는거랑..

>>>>>>>>>>
저는 유닉스에 아파치를 설치하고 위와 같은 현상이 있었는데

다시 install를 하고 확인해보니 owner 와 퍼미션 문제더군요.

참고로 index.html 644 owner는 conf/httpd.conf file내에
User nobody
Group nobody
로 설정되어 있다면 1584로 owner를 바꾸고 해보세요.
>>>>>>>>>>>>>>>>> 요부분이랑요..헥헥..

자세한건... apache.kr.net에서 찾아보세요.. 건승하시길....글구 해결하시면

간단하게 메시지라도..흐흐..

faithpark의 이미지

ㅡㅡ;
미쵸..미쵸..
참; php설치할 때 skew 오류가 나더라구요..

왜 그럴까요.>

html은 잘 보이는데
php파일은 왜 다운할려고 하는지

모듈이랑 apache랑 연결에 문제가 있을듯 한데
찾는 중 입니다.

언제나 행복한 나날 되소소..
잘 살고 있나? 자문해 봅니다.

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.