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
369 Xpress Engine xe 모든 변수값 출력해 보기 LynX 2014-07-14 93762
368 Linux systemd unit 등록 옵션 LynX 2014-07-22 20455
367 Linux Install PHP 5.5.13 modules LynX 2014-06-27 11866
366 아래아 한글 웹 한글 뷰어 소스 LynX 2014-06-11 9426
365 Internet Explorer KT 인터넷 접속제한 공유기 설정 LynX 2014-01-13 9229
364 Linux lineage1 server [6] LynX 2016-01-11 9061
363 CentOS CentOS7 Mail Server Setting file [13] LynX 2015-06-13 7906
362 Server Apache HTTP Server와 Tomcat의 연동 file LynX 2014-05-20 6112
361 Windows 7 외부 윈도우 클라이언트에서 삼바서버 접속하기 LynX 2014-03-06 6030
360 CentOS7 ▒ Doly의 CentOS7 강좌13 4. 원격접속 - 3.Telnet file [8] LynX 2014-10-23 5922
359 CentOS7 ▒ Doly의 CentOS7 강좌27 10. 디스크관리 6 XFS 쿼타 file [15] LynX 2015-06-09 5732
358 CentOS7 ▒ Doly의 CentOS7 강좌29 12. 네트워크 보안설정 12.1 firewalld (2/2) [21] LynX 2015-06-09 5282
357 CentOS APM 소스설치 정리 file [18] LynX 2015-06-17 4628
356 Network VLAN 설정 ① Access mode file [27] LynX 2015-04-29 4270
355 Programing meadco print LynX 2013-12-12 4267
354 Programing Sublime Text License Keys LynX 2016-03-24 4182
353 CentOS7 ▒ Doly의 CentOS7 강좌19 6. CentOS 네트워크 5-관련 명령어 LynX 2014-10-23 4070
352 Linux musescore LynX 2015-03-28 3779
351 Linux imap-php 설치 [7] LynX 2014-09-02 3727
350 CentOS7 ▒ Doly의 CentOS7 강좌18 6. CentOS 네트워크 4-네트워크 본딩(bonding) file [10] LynX 2014-10-23 3659

XE Login