Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- *** dgg_install_stage_four.sh.orig 2016-02-11 21:25:03.591210308 -0800
- --- dgg_install_stage_four.sh 2016-02-11 21:31:16.756523900 -0800
- ***************
- *** 47,56 ****
- echo " ServerName $DOMAIN" >> /etc/apache2/vhosts.d/$DOMAIN.80.conf
- echo " DocumentRoot /srv/www/htdocs" >> /etc/apache2/vhosts.d/$DOMAIN.80.conf
- echo " <Directory \"/srv/www/htdocs\">" >> /etc/apache2/vhosts.d/$DOMAIN.80.conf
- ! echo " Options -Indexes FollowSymLinks" >> /etc/apache2/vhosts.d/$DOMAIN.80.conf
- echo " AllowOverride None" >> /etc/apache2/vhosts.d/$DOMAIN.80.conf
- ! echo " Order allow,deny" >> /etc/apache2/vhosts.d/$DOMAIN.80.conf
- ! echo " Allow from all" >> /etc/apache2/vhosts.d/$DOMAIN.80.conf
- echo " </Directory>" >> /etc/apache2/vhosts.d/$DOMAIN.80.conf
- echo "</VirtualHost>" >> /etc/apache2/vhosts.d/$DOMAIN.80.conf
- echo "<VirtualHost *:81>" > /etc/apache2/vhosts.d/$DOMAIN.81.conf
- --- 47,55 ----
- echo " ServerName $DOMAIN" >> /etc/apache2/vhosts.d/$DOMAIN.80.conf
- echo " DocumentRoot /srv/www/htdocs" >> /etc/apache2/vhosts.d/$DOMAIN.80.conf
- echo " <Directory \"/srv/www/htdocs\">" >> /etc/apache2/vhosts.d/$DOMAIN.80.conf
- ! echo " Options -Indexes +FollowSymLinks" >> /etc/apache2/vhosts.d/$DOMAIN.80.conf
- echo " AllowOverride None" >> /etc/apache2/vhosts.d/$DOMAIN.80.conf
- ! echo " Require all granted" >> /etc/apache2/vhosts.d/$DOMAIN.80.conf
- echo " </Directory>" >> /etc/apache2/vhosts.d/$DOMAIN.80.conf
- echo "</VirtualHost>" >> /etc/apache2/vhosts.d/$DOMAIN.80.conf
- echo "<VirtualHost *:81>" > /etc/apache2/vhosts.d/$DOMAIN.81.conf
- ***************
- *** 59,69 ****
- echo " <Directory \"/srv/www/lockdown\">" >> /etc/apache2/vhosts.d/$DOMAIN.81.conf
- echo " Options None" >> /etc/apache2/vhosts.d/$DOMAIN.81.conf
- echo " AllowOverride None" >> /etc/apache2/vhosts.d/$DOMAIN.81.conf
- ! echo " Order allow,deny" >> /etc/apache2/vhosts.d/$DOMAIN.81.conf
- ! echo " Allow from all" >> /etc/apache2/vhosts.d/$DOMAIN.81.conf
- echo " </Directory>" >> /etc/apache2/vhosts.d/$DOMAIN.81.conf
- echo "</VirtualHost>" >> /etc/apache2/vhosts.d/$DOMAIN.81.conf
- ! /etc/init.d/apache2 restart
- echo "URL for Dynamic Good Guys Login:"
- echo " http://$DOMAIN:81/$URLACCESS.php"
- echo "Modify regularly for security reasons. To modify:"
- --- 58,67 ----
- echo " <Directory \"/srv/www/lockdown\">" >> /etc/apache2/vhosts.d/$DOMAIN.81.conf
- echo " Options None" >> /etc/apache2/vhosts.d/$DOMAIN.81.conf
- echo " AllowOverride None" >> /etc/apache2/vhosts.d/$DOMAIN.81.conf
- ! echo " Require all granted" >> /etc/apache2/vhosts.d/$DOMAIN.81.conf
- echo " </Directory>" >> /etc/apache2/vhosts.d/$DOMAIN.81.conf
- echo "</VirtualHost>" >> /etc/apache2/vhosts.d/$DOMAIN.81.conf
- ! service apache2 reload
- echo "URL for Dynamic Good Guys Login:"
- echo " http://$DOMAIN:81/$URLACCESS.php"
- echo "Modify regularly for security reasons. To modify:"
- ***************
- *** 94,97 ****
- # 2. Surf to Admin login and add/remove IPs (above at http://$DOMAIN/phpmysqlezedit/goodguys.php?access=$URLACCESS")
- # Add/remove work? Verify with "cat /proc/net/xt_recent/GOOD" to see if IPs are present after add AND missing after remove. (BOTH are important!)
- # 3. Survive reboot: Be sure there is a "temporary" and a "NONtemporary".
- ! # Upon reboot, the temporary should disappear and the NON should survive. Remember the 60 second delay.
- \ No newline at end of file
- --- 92,95 ----
- # 2. Surf to Admin login and add/remove IPs (above at http://$DOMAIN/phpmysqlezedit/goodguys.php?access=$URLACCESS")
- # Add/remove work? Verify with "cat /proc/net/xt_recent/GOOD" to see if IPs are present after add AND missing after remove. (BOTH are important!)
- # 3. Survive reboot: Be sure there is a "temporary" and a "NONtemporary".
- ! # Upon reboot, the temporary should disappear and the NON should survive. Remember the 60 second delay.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement