Ubuntu 업데이트
$ sudo aptitude update
$ sudo aptitude -y upgrade
Dependency 설치
$ sudo aptitude install -y build-essential
$ sudo aptitude install -y libapache2-mod-proxy-html libxml2-dev
Apache Mod 설정
$ sudo a2enmod proxy proxy_ajp proxy_http rewrite deflate headers proxy_balancer proxy_connect proxy_html
Virtual Host 설정
$ sudo vi /etc/apache2/sites-available/your-domain.conf
<VirtualHost *:80>
ProxyPreserveHost On
ProxyPass / http://0.0.0.0:port/
ProxyPassReverse / http://0.0.0.0:port/
ServerName your-domain
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
$ sudo a2ensite your-domain.conf
$ sudo service apache2 restart
관련
“Apache proxypass 설정”에 대한 한개의 댓글