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
229 APM ext ImageMagick install LynX 2019-02-19 457
228 HTML Tag DIV 태그 (레이어) LynX 2014-06-02 459
227 Xpress Engine XE용 query xml 방식으로 일반 테이블도 접근 처리 하기 LynX 2014-07-14 459
226 CentOS7 ▒ Doly의 CentOS7 강좌20 7. 사용자와 그룹관리 1-사용자 관리 file [8] LynX 2014-11-21 461
225 Programing 겸손한 자바스크립트 LynX 2016-03-16 465
224 CentOS CentOS7 GCC-5.1.1 yum install LynX 2017-11-10 473
223 APM 윈도우에 APM 페키지 설치 file LynX 2018-05-04 474
222 Linux modsecurity LynX 2017-12-06 475
221 LinuxMint joystick install file LynX 2016-09-30 476
220 Linux CentOS 6.5에 JSP를 위한 JDK & Tomcat file LynX 2014-07-05 477
» APM 아파치에서 ASP 사용 LynX 2014-05-26 478
218 Linux postfix dovecot file [14] LynX 2014-11-24 478
217 Linux ibus 한영키 전환 문제 nabi [12] LynX 2014-12-19 479
216 CentOS7 ▒ Doly의 CentOS7 강좌31 12. 네트워크 보안설정 12.2 iptables 서비스 (2/3) LynX 2016-01-07 480
215 Linux CentOS 텔넷 접속시 한글꺠짐 현상 제거 LynX 2014-06-30 486
214 Network EtherChannel / Spanning-Tree file [14] LynX 2015-04-29 489
213 Xpress Engine XE3 [1] LynX 2016-02-03 489
212 Printer HP Officejet Pro K8600 호환 드라이버 [10] LynX 2013-06-21 493
211 Linux AfterLogic Webmail 설치 LynX 2015-12-29 503
210 Linux rc.local 서비스 등록하기 LynX 2014-07-22 505

XE Login