아파치 설정에서 alias를 사용안하고싶습니다.
현재 test.the.com이라는 url을 사용하고있는데
alias를 잡은상태로 셋팅을해서 test.the.com/the/index.jsp로 접속이 됩니다.
제가 원하는건 test.the.com/index.jsp로 접속하고싶은데 어디서 설정을 변경해야할지 잘 모르겠습니다.
///////////////////////////httpd.conf 이건 아파치구요
ServerName test.the.com
Alias /the "D:/new_project/the/mobilehome/"
Options -Indexes
DirectoryIndex index.jsp
AllowOverride none
Order allow,deny
Allow from all
JkMount /* ajp13
JkMount /*.jsp gmddRoute
JkMount /*.do gmddRoute
JkMount /*.ajax gmddRoute
JkMount /the gmddRoute
JkMount /the/ gmddRoute
JkMount /the/*/ gmddRoute
//////////////이건 톰캣입니다.
driverClassName="oracle.jdbc.driver.OracleDriver"
maxActive="500"
maxIdle="30"
maxWait="-1"
name="jdbc/OracleDS"
password="home"
type="javax.sql.DataSource"
url="jdbc:oracle:thin:@127.0.0.1:1521:home"
removeAbandoned="true"
removeAbandonedTimeout="60"
logAbandoned="true"
username="home" />
////////////////////////////////////////////////////////////////
httpd.conf파일 3번째줄 보면 Alias /the "D:/new_project/the/mobilehome/" 이렇게 되어있는데
저게 url의 가상폴더를 쓴다고해서 Alias / "D:/new_project/the/mobilehome/" 이렇게 변경해도 안되고
톰캣 첫줄의 path="/the" -> path="/" 이렇게 변경했는데 안됐습니다.
결론은
http://test.the.com/the/index.jsp 대신에
http://test.the.com/index.jsp 이렇게 사용하고 싶은데 어디를 수정해야 하나요?
지금 http://test.the.com/index.jsp를 들어가면 톰캣기본페이지가 나옵니다.
도움 부탁드립니다. 감사합니다.
댓글 달기