Apache proxypass 설정

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 ...

Set up tomcat at CentOS with Apache

Tomcat Download & Install at first, download tomcat refer this site, http://tomcat.apache.org/download-70.cgi. # wget http://apache.mirror.cdnetworks.com/tomcat/tomcat-7/v7.0.37/bin/apache-tomcat-7.0.37.tar.gz # tar xvfz apache-tomcat-7.0.37.tar.gz # mv apache-tomcat-7.0.37 /usr/local/tomcat and make 'init.d/tomcat' file #vi /etc/rc.d/init.d/tomcat insert below. #!/bin/bash # description: Tomcat Start Stop Restart # processname: tomcat # chkconfig: 234 20 80 export JAVA_HOME=/usr/java/jdk1.6.0_35 export ...

CentOS Apache Setting

Apache Install # yum -y install httpd* # /etc/rc.d/init.d/httpd start Apache Setting # vim /etc/httpd/conf/httpd.conf change Home Directory & Setting Virtual Host DirectoryIndex index.html index.html index.php . . <VirtualHost *:80> DocumentRoot /home/user ServerName * </VirtualHost> Add your custom host <VirtualHost proinlab.com> DocumentRoot /home/user ServerName proinlab.com ServerAlias www.proinlab.com </VirtualHost>  Permission Setting change ...