mod_rewrite 를 사용하지 않는것 같아서..
다시 추가를 해주려고
./configure --enable-module=rewrite 해서 make파일 만들고
make 했습니다.
이상없이 된것 같은데...
./httpd -l 해도 rewrite 에대한 글은 없내요.
Compiled-in modules:
http_core.c
mod_env.c
mod_log_config.c
mod_mime.c
mod_negotiation.c
mod_status.c
mod_include.c
mod_autoindex.c
mod_dir.c
mod_cgi.c
mod_asis.c
mod_imap.c
mod_actions.c
mod_userdir.c
mod_alias.c
mod_access.c
mod_auth.c
mod_setenvif.c
mod_php4.c
suexec: disabled; invalid wrapper /usr/local/apache/bin/suexec
혹시 그렇게 해준다음에 httpd.conf 에 추가로 적어줘야하는건가요?
고수님들 부탁드립니다.
: 이미 아파치와 php 는 설치된 상황입니다.
:
: ./httpd -l 을 치면 아래와 같이 나옵니다.
: Compiled-in modules:
: http_core.c
: mod_env.c
: mod_log_config.c
: mod_mime.c
: mod_negotiation.c
: mod_status.c
: mod_include.c
: mod_autoindex.c
: mod_dir.c
: mod_cgi.c
: mod_asis.c
: mod_imap.c
: mod_actions.c
: mod_userdir.c
: mod_alias.c
: mod_access.c
: mod_auth.c
: mod_setenvif.c
: mod_php4.c
: suexec: disabled; invalid wrapper /usr/local/apache/bin/suexec
:
: 그럼 mod_rewrite 는 쓰고있지 않다는 거죠?
: 그런데 modulese 를 찾아보니
:
: /usr/local/src/apache_1.3.14/src/modules/standard/ 에 rewrite모듈이 있더군요
:
: Makefile mod_auth.c mod_dir.c mod_log_config.c mod_so.c
: Makefile.OS2 mod_auth.o mod_dir.o mod_log_config.o mod_speling.c
: Makefile.tmpl mod_auth_anon.c mod_env.c mod_log_referer.c mod_status.c
: libstandard.a mod_auth_db.c mod_env.o mod_mime.c mod_status.o
: mod_access.c mod_auth_db.module mod_expires.c mod_mime.o mod_unique_id.c
: mod_access.o mod_auth_dbm.c mod_headers.c mod_mime_magic.c mod_userdir.c
: mod_actions.c mod_autoindex.c mod_imap.c mod_negotiation.c mod_userdir.o
: mod_actions.o mod_autoindex.o mod_imap.o mod_negotiation.o mod_usertrack.c
: mod_alias.c mod_cern_meta.c mod_include.c <b>mod_rewrite.c</b> mod_vhost_alias.c
: mod_alias.o mod_cgi.c mod_include.o <b>mod_rewrite.h</b>
: mod_asis.c mod_cgi.o mod_info.c mod_setenvif.c
: mod_asis.o mod_digest.c mod_log_agent.c mod_setenvif.o
:
:
: 이걸 httpd.conf에 적어줬습니다.(잘모르지만 그냥 시도했봤어요. -_-;)
:
: 중간부분에
: BindAddress *
:
: #
: # Dynamic Shared Object (DSO) Support
: #
: # To be able to use the functionality of a module which was built as a DSO you
: # have to place corresponding `LoadModule' lines at this location so the
: # directives contained in it are actually available _before_ they are used.
: # Please read the file README.DSO in the Apache 1.3 distribution for more
: # details about the DSO mechanism and run `httpd -l' for the list of already
: # built-in (statically linked and thus always available) modules in your httpd
: # binary.
: #
: # Note: The order in which modules are loaded is important. Don't change
: # the order below without expert advice.
: #
: # Example:
: # LoadModule foo_module libexec/mod_foo.so
:
:
: AddModule mod_php4.c
: <b>AddModule mod_rewrite.c</b>
: #
: # ExtendedStatus controls whether Apache will generate "full" status
: # information (ExtendedStatus On) or just basic information (ExtendedStatus
: # Off) when the "server-status" handler is called. The default is Off.
: #
: #ExtendedStatus On
:
: 그리고 apachectl configtest 했더니
: Syntax error on line 210 of /usr/local/apache/conf/httpd.conf:
: Cannot add module via name 'mod_rewrite.c': not in list of loaded modules
: 이런식으로 나오더라구요.
:
: 어떻게 사용을 해야하는건지 좀 알려주시기 바랍니다.
: 다른곳에서 찾아는 봤지만...
: 설치나 적용에 대한 것 안나왔더라구요 (제가 잘못찾은것인지..-_-)
: 그냥 rewrite 는 이렇게 사용하는거다.. 라는것만 나와서..
: 고수님들 부탁드립니다.
:
: --
: 리눅스를 배울길 잘했네 어허야~ 디야~~--리눅스를 배울길 잘했네 어허야~ 디야~~