resin에서 호스트 계정과 유저별 계정 jsp 환경 설정

kjw7945의 이미지

코드: <resin> 
. 
. 
. 
<server> 
.. 
.. 

    <host id=''> 
      <access-log path="logs/access.log" 
            format='%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"' 
            rollover-period="1W"/> 
            <web-app id='/' url-regexp='/~([^/]*)' document-directory='/user/*/$1/public_html'> 
            <web-app id='/' document-directory="/home/webmaster/public_html"/> 
    </host> 
. 
. 
. 
</server> 
</resin> 
 

로 설정해 놓았으나 작동이 잘 되지 않습니다.
하나의 <host> 아래에
web-app의 설정을 보면 두개로 썼습니다.
유저별 계정과 다른 하나는
실제 서버(호스트)에서 사용하는 웹페이지 경로 입니다.
근데 위의 유저별 계정 설정을 주석 처리 후
밑의 호스트 설정만 써 놓으면 서버의 웹페이지 경로에
있는 jsp는 작동이 됩니다만 유저는 작동이 안됩니다.
그래서 밑의 <web-app url-reg="regular experssion..." ..>
을 추가 시켜주었습니다만 작동이 안됩니다.

그래서 log를 보니
conf/resin.conf:247: url-regexp="/~([^/]*)" is an unexpected attribute in <web-app>. 와 같은 로그를
남기고 java가 실행이 안되어 있었습니다.(ps -ef | grep java)

그래서 또 전...caucho.com 가서 설정파일에 관한
문서를 보던 중 분명 web-app의 attribute에는 url-regexp를
허용하고 document-directory에서는 정규표현식을 이용해서
잡은 변수를 사용할 수 있다고 나오는 것입니다..-_-;

음..무엇이 잘못되었을까요..
로그는 잘못 사용했다고 하고, 문서에는 사용할 수 있다고
하고... 같은 host안에 web-app를 쓴 것이 잘못일까요?

어떻게 하면 호스트와 계정별 jsp를 같이 돌릴 수 있을지
궁금합니다..

익명 사용자의 이미지

다음의 두가지 경우가 있을 수있겠습니다.
1. web-app element에 url-regexp라는 attribute를 사용 못하는 것
2. 설정 파일의 DTD에서 web-app의 컨텐트 모델이 두개 이상의 web-app를 지원하지 않는것 (*나 +가 안붙어있음)

제 경우에는 일전에 JBoss를 사용할 때 설정파일의 DTD 버전에 따라서 사용가능한 element들이 약간 달라서 혼란을 겪었던 적이 있었습니다.

댓글 달기

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
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.