You cannot see this page without javascript.

아파치에서 ASP 사용

APM 조회 수 478 추천 수 0 2014.05.26 12:47:57

다음은 아파치의 환경 설정이다. 일단 아파치를 정지 시키고

환경 설정 파일을 읽어 온다.

시작>모든프로그램>Apache HTTP Server 2.0.55>

                    Configure Apache Server>Edit the Apache httpd.conf Configuration File

순으로 찾아가서 파일을 연다.

파일에서 모듈 로드 하는 부분이 있다. ctrl+f 로 "LoadModule"을 검색 하여 거기에

    LoadModule aspdotnet_module modules/mod_aspdotnet.so

을 추가 한다. 다음 맨 마지막 라인에

# Use the asp.net handler for all common ASP.NET file types
AddHandler asp.net asax ascx ashx asmx aspx axd config cs csproj
                   licx rem resources resx soap vb vbproj vsdisco webinfo

<IfModule mod_aspdotnet.cpp>

    # Mount the IBuySpy C# example application
    AspNetMount /WebApp "C:/StoreCSVS/WebApp"

    # Map all requests for /StoreCSVS to the IBuySpy application files
    Alias /WebApp "C:/StoreCSVS/WebApp"

    # Allow asp.net scripts to be executed in the IBuySpy example
    <Directory "C:/StoreCSVS/WebApp">
        Options FollowSymlinks ExecCGI
        Order allow,deny
        Allow from all
        DirectoryIndex Default.htm Default.aspx
    </Directory>

    # For all virtual ASP.NET webs, we need the aspnet_client files
    # to serve the client-side helper scripts.
    AliasMatch /aspnet_client/system_web/(d+)_(d+)_(d+)_(d+)/(.*)
          "C:/Windows/Microsoft.NET/Framework/v$1.$2.$3/ASP.NETClientFiles/$4"
    <Directory
          "C:/Windows/Microsoft.NET/Framework/v*/ASP.NETClientFiles">
        Options FollowSymlinks
        Order allow,deny
        Allow from all
    </Directory>

</IfModule>

을 추가 한다. /WebApp "C:/StoreCSVS/WebApp 같이 이런 디렉토리명은 임의로 정해 줘도 되나 자신 없는 분들은 걍 똑같이 따라하는 편이 좋다.

이것으로 설정은 끝이다.

"C:/StoreCSVS/WebApp" 에 원하는 ASP 파일과 컴파일된 소스를 넣고

http://localhost/WebApp/WebForm1.aspx(원하는 파일이 WebForm1.aspx일때)

해보면 옳바르게 보여 진다.

 

마소의 비졀 스튜디오 .net으로 프로젝트를 생성 할때는 다른 폴더에서 아파치에서 바로 접근가능한 폴더 httpdoc에서 작업 실행시 필요한 파일을 옮겨 주거나 "C:/StoreCSVS/WebApp"  디렉토리가 아닌 httpdoc 밑에 바로 설정해서 사용해도 된다.

엮인글 :
List of Articles
번호 제목 글쓴이 날짜sort 조회 수

Windows Windows Server 2012 - .NET Framework 1.x 미지원

  • LynX
  • 2014-05-29
  • 조회 수 246

APM mono

  • LynX
  • 2014-05-29
  • 조회 수 332

APM asp file

  • LynX
  • 2014-05-28
  • 조회 수 418

APM Proxy AJP

  • LynX
  • 2014-05-27
  • 조회 수 417

Windows 윈도우 8 pro key

  • LynX
  • 2014-05-26
  • 조회 수 277

Windows 윈도우 설치 원본 통합 file

  • LynX
  • 2014-05-26
  • 조회 수 1264

APM 아파치에서 ASP 사용

  • LynX
  • 2014-05-26
  • 조회 수 478

Java Script 스도쿠

  • LynX
  • 2014-05-26
  • 조회 수 333

Server Apache HTTP Server와 Tomcat의 연동 file

  • LynX
  • 2014-05-20
  • 조회 수 6112

Server 톰켓 설치 file

  • LynX
  • 2014-05-20
  • 조회 수 812

Server 아파치 - 톰캣 연동하기 (PHP, JSP 같이 사용하기)

  • LynX
  • 2014-05-19
  • 조회 수 1964

APM apm + ssl file

  • LynX
  • 2014-05-19
  • 조회 수 429

APM php.ini 정리 file

  • LynX
  • 2014-05-17
  • 조회 수 579

Server 윈도우7(Window)에 DNS서버(acrylic-from sourceforge) 설치하는 방법 file

  • LynX
  • 2014-05-14
  • 조회 수 981

HardWare 라우터 초기화

  • LynX
  • 2014-03-25
  • 조회 수 847

Windows 7 외부 윈도우 클라이언트에서 삼바서버 접속하기

  • LynX
  • 2014-03-06
  • 조회 수 6030

Internet Explorer KT 인터넷 접속제한 공유기 설정

  • LynX
  • 2014-01-13
  • 조회 수 9228

HTML Tag 대체 URL

  • LynX
  • 2014-01-06
  • 조회 수 372

APM PHP 5.5.12 설치 file

  • LynX
  • 2013-12-31
  • 조회 수 698

APM Apache 2.4 설치 file

  • LynX
  • 2013-12-30
  • 조회 수 890

XE Login