묻고답하기

아파치 2.4.23, php 5.6.24 환경입니다.

1. rewrite 모듈은 정상적입니다.
[root@test ~]# /usr/local/apache/bin/apachectl -t -D DUMP_MODULES | grep rewrite
 rewrite_module (shared)

2. virtualhost설정없이 기본 htdocs에서는 정상적으로 짧은주소(rewrite_mod) 문제없습니다.

3. 문제는 virtualhost 설정을 하면 "짧은 주소를 사용할 수 없습니다. ....rewirte_mod" 문제가 발생합니다.

.htaccess 파일을 수정해야 될 것 같은데, 어떻게 수정해야 할 지 모르겠습니다.

조언 부탁드립니다.

아래는 httpd.conf htdocs 설정입니다.(기본설정에서 AllowOverride All 만 변경했습니다.)
DocumentRoot "/usr/local/apache/htdocs"
<Directory "/usr/local/apache/htdocs">
    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # http://httpd.apache.org/docs/2.4/mod/core.html#options
    # for more information.
    #
    Options Indexes FollowSymLinks

    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   AllowOverride FileInfo AuthConfig Limit
    #
    #AllowOverride None
    AllowOverride All

    #
    # Controls who can get stuff from this server.
    #
    Require all granted
</Directory>


아래는 virtualhost 설정입니다.
<VirtualHost '도메인':80>
    DocumentRoot "/home/'홈디렉토리'/public_html"
    ServerName '도메인'
    ErrorLog "|/usr/local/apache/bin/rotatelogs /usr/local/apache/logs/error_log_%Y%m%d 86400"
    CustomLog "|/usr/local/apache/bin/rotatelogs /usr/local/apache/logs/access_log_%Y%m%d 86400" combined
</VirtualHost>

<Directory "/home/'홈디렉토리'">
    Options FollowSymLinks
    AllowOverride All
    Require all granted
</Directory>
 

글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
Alexander 사이트맵에서 클릭시 새창열기로 가능한가요? [2] 2021.07.28 by Alexander
나비 html 사진 슬라이드 질문 [2] 2019.10.21 by 나비
thanksto html 미디어 쿼리 오류 어떻게 해결할 수 있나요? file  
립샤 고수님들 제발 도와주세요. 창크기에 따라서 위젯 위치가 자꾸 변합니다 [1] 2018.10.15 by 르미
freax hayseed.kr 메인 슬라이더,CAROUSEL 똑같은 위젯이나 소스,코드 알려주세요요 [5] 2017.10.02 by DoorWeb
웃음을주는사람 video 태그 질문입니다.  
대보름 아파치 virtualhost 짧은주소(rewrite) 문의 [5] 2016.07.26 by 대보름
디버 XE + CUBRID 문의 [1] 2016.03.29 by 기진곰
Hi_Roy 아래 코드가 IE8에선 동작하는데 크롬/파폭/IE11 에선 오동작을 하네요. 무엇이 문제일까요? ㅡ_ㅡ; [1] 2016.02.25 by 기진곰
thdwjdtjr 메뉴바를 길게하고자 합니다 [1] file 2015.11.25 by DoorWeb
제로보드신세계잼 카메론 bx 슬라이드 모바일 관련 질문입니다. [1] 2015.10.30 by treasurej
color77 서버 옮기고 나서 관리자페이지에서 회원삭제하면 Query ID값이 잘못 지정되었습니다. 뜹니다 [7] 2015.06.01 by Luatic™
GT네오 DB자동백업 XE에서도 될까요?.... [1] 2015.05.13 by 휘즈
모해 게시글 목록에서 mid가 나타나지 않게하기 [2] 2014.06.26 by 모해
현재를 즐겨라 [jquery+widgets] 제이쿼리배경에 위젯삽입하는 방법 좀 가르쳐 주세요.  
원조바다새 ilivid 다운로더 지울 수 있는 방법없을까요?  
sarahkim 검색기능  
bear11 contact us 모듈 설정?  
네오브레이크 XE를 사용하는 대부분의 웹사이트의 오픈아이디(OpenID)가 작동을 안합니다.  
까치™ 외부페이지 _post.mid, _get.mid 변수전달문제