ubuntu 에서 apache2 와 nodejs (express) 를 reverse proxy로 연동하기

2013. 7. 2. 23:34OS/Linux

ubuntu 에서 apache2 와 nodejs (express) 를 reverse proxy로 연동하기




1. apache 에서 필수모들을 로드한다


a2enmod proxy proxy_http




2. apache 에서 conf 파일 설정


        ServerName SITE_URL

        ProxyPass / http://127.0.0.1:3000/

        ProxyPassReverse / http://127.0.0.1:3000/

        <Proxy *>

        Order deny,allow

        Allow from all

        </Proxy>