Revision 8937
Added by Jing Tao about 10 years ago
src/scripts/bash/install-java7-tomcat7.sh | ||
---|---|---|
169 | 169 |
sudo mv $APACHE_AVAILABLE_SITES_DIR/$KNB.conf $APACHE_AVAILABLE_SITES_DIR/$HOST_NAME.conf |
170 | 170 |
sudo mv $APACHE_AVAILABLE_SITES_DIR/$KNB-ssl.conf $APACHE_AVAILABLE_SITES_DIR/$HOST_NAME-ssl.conf |
171 | 171 |
|
172 |
echo "current redirect rules doesn't work. we need to change it" |
|
173 |
sudo sed -i "s|\("RewriteCond" * *\).*|\1%{HTTPS} off|" $APACHE_AVAILABLE_SITES_DIR/$HOST_NAME.conf |
|
174 |
sudo sed -i "s|\("RewriteRule" * *\).*|\1(.*) https://%{HTTP_HOST}%{REQUEST_URI}|" $APACHE_AVAILABLE_SITES_DIR/$HOST_NAME.conf |
|
175 |
|
|
172 | 176 |
echo "enable the two sites $HOST_NAME and $HOST_NAME-ssl" |
173 | 177 |
sudo a2ensite $HOST_NAME |
174 | 178 |
sudo a2ensite $HOST_NAME-ssl |
Also available in: Unified diff
Modified the redirect rules which didn't work.