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 조회 수
109 CentOS CentOS7 Mail Server Setting file [13] LynX 2015-06-13 7906
108 CentOS APM 소스설치 정리 file [18] LynX 2015-06-17 4628
107 Programing 웹사이트 APK 만들기 file [1] [17] LynX 2015-07-02 2103
106 Server DNS [25] LynX 2015-07-16 1596
105 Windows Windows 10 재작 툴 file [21] LynX 2015-08-19 840
104 CentOS wow 3.3.5a 구축 [1] LynX 2015-11-30 1173
103 CentOS wow 6.x 구축 [6] LynX 2015-11-30 1133
102 Linux Linux에 Boost 설치하기 LynX 2015-11-30 519
101 Linux MaNGOS [2] LynX 2015-12-05 2633
100 Linux mint APM install LynX 2015-12-11 1105
99 Linux ubuntu nginx [1] LynX 2015-12-22 2538
98 CentOS DNS 설치 LynX 2015-12-24 2157
97 Linux lets'encrypt 설치 LynX 2015-12-24 2226
96 Linux AfterLogic Webmail 설치 LynX 2015-12-29 503
95 CentOS7 ▒ Doly의 CentOS7 강좌31 12. 네트워크 보안설정 12.2 iptables 서비스 (2/3) LynX 2016-01-07 480
94 Linux lineage1 server [6] LynX 2016-01-11 9048
93 Xpress Engine XE3 [1] LynX 2016-02-03 489
92 Linux 라즈베리파이 파티션 용량 늘리기 [2] LynX 2016-03-08 441
91 CentOS php에 ssh2 설치하여 sftp 사용가능 file LynX 2016-03-10 1196
90 Programing 겸손한 자바스크립트 LynX 2016-03-16 465

XE Login