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
169 탐색기 메뉴에 '명령 프롬프트 열기'와 '메모장으로 열기' 추가하기 file [14] LynX 2010-11-08 547
168 설치파일(inf)에 대한 이해 [7] LynX 2011-06-22 546
167 Linux 리눅스에 곰플레이어 설치하기 file LynX 2014-07-01 536
166 CentOS CemtOS 7.3 base Trinitycore 3.3.5 Compile file LynX 2017-11-13 520
165 Linux Linux에 Boost 설치하기 LynX 2015-11-30 519
164 Linux ISO 마운트 [10] LynX 2014-12-22 516
163 Programing 개행문자 LynX 2014-10-29 513
162 Server Open Solaris 패키지 설치 및 삭제 LynX 2014-12-29 511
161 윈도우7 메모리 인식 문재 file [13] LynX 2011-11-30 509
160 Linux rc.local 서비스 등록하기 LynX 2014-07-22 505
159 Linux AfterLogic Webmail 설치 LynX 2015-12-29 503
158 Printer HP Officejet Pro K8600 호환 드라이버 [10] LynX 2013-06-21 493
157 Network EtherChannel / Spanning-Tree file [14] LynX 2015-04-29 490
156 Xpress Engine XE3 [1] LynX 2016-02-03 489
155 Linux CentOS 텔넷 접속시 한글꺠짐 현상 제거 LynX 2014-06-30 486
154 Linux ibus 한영키 전환 문제 nabi [12] LynX 2014-12-19 483
153 CentOS7 ▒ Doly의 CentOS7 강좌31 12. 네트워크 보안설정 12.2 iptables 서비스 (2/3) LynX 2016-01-07 480
152 Linux postfix dovecot file [14] LynX 2014-11-24 478
» APM 아파치에서 ASP 사용 LynX 2014-05-26 478
150 Linux CentOS 6.5에 JSP를 위한 JDK & Tomcat file LynX 2014-07-05 477

XE Login