Advertisement
c4tech

dgg_install_stage_four.sh.patch

Feb 11th, 2016
298
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.89 KB | None | 0 0
  1. *** dgg_install_stage_four.sh.orig  2016-02-11 21:25:03.591210308 -0800
  2. --- dgg_install_stage_four.sh   2016-02-11 21:31:16.756523900 -0800
  3. ***************
  4. *** 47,56 ****
  5.   echo "   ServerName $DOMAIN" >> /etc/apache2/vhosts.d/$DOMAIN.80.conf
  6.   echo "   DocumentRoot /srv/www/htdocs" >> /etc/apache2/vhosts.d/$DOMAIN.80.conf
  7.   echo "   <Directory \"/srv/www/htdocs\">" >> /etc/apache2/vhosts.d/$DOMAIN.80.conf
  8. ! echo "      Options -Indexes FollowSymLinks" >> /etc/apache2/vhosts.d/$DOMAIN.80.conf
  9.   echo "      AllowOverride None" >> /etc/apache2/vhosts.d/$DOMAIN.80.conf
  10. ! echo "      Order allow,deny" >> /etc/apache2/vhosts.d/$DOMAIN.80.conf
  11. ! echo "      Allow from all" >> /etc/apache2/vhosts.d/$DOMAIN.80.conf
  12.   echo "   </Directory>" >> /etc/apache2/vhosts.d/$DOMAIN.80.conf
  13.   echo "</VirtualHost>" >> /etc/apache2/vhosts.d/$DOMAIN.80.conf
  14.   echo "<VirtualHost *:81>" > /etc/apache2/vhosts.d/$DOMAIN.81.conf
  15. --- 47,55 ----
  16.   echo "   ServerName $DOMAIN" >> /etc/apache2/vhosts.d/$DOMAIN.80.conf
  17.   echo "   DocumentRoot /srv/www/htdocs" >> /etc/apache2/vhosts.d/$DOMAIN.80.conf
  18.   echo "   <Directory \"/srv/www/htdocs\">" >> /etc/apache2/vhosts.d/$DOMAIN.80.conf
  19. ! echo "      Options -Indexes +FollowSymLinks" >> /etc/apache2/vhosts.d/$DOMAIN.80.conf
  20.   echo "      AllowOverride None" >> /etc/apache2/vhosts.d/$DOMAIN.80.conf
  21. ! echo "      Require all granted" >> /etc/apache2/vhosts.d/$DOMAIN.80.conf
  22.   echo "   </Directory>" >> /etc/apache2/vhosts.d/$DOMAIN.80.conf
  23.   echo "</VirtualHost>" >> /etc/apache2/vhosts.d/$DOMAIN.80.conf
  24.   echo "<VirtualHost *:81>" > /etc/apache2/vhosts.d/$DOMAIN.81.conf
  25. ***************
  26. *** 59,69 ****
  27.   echo "   <Directory \"/srv/www/lockdown\">" >> /etc/apache2/vhosts.d/$DOMAIN.81.conf
  28.   echo "      Options None" >> /etc/apache2/vhosts.d/$DOMAIN.81.conf
  29.   echo "      AllowOverride None" >> /etc/apache2/vhosts.d/$DOMAIN.81.conf
  30. ! echo "      Order allow,deny" >> /etc/apache2/vhosts.d/$DOMAIN.81.conf
  31. ! echo "      Allow from all" >> /etc/apache2/vhosts.d/$DOMAIN.81.conf
  32.   echo "   </Directory>" >> /etc/apache2/vhosts.d/$DOMAIN.81.conf
  33.   echo "</VirtualHost>" >> /etc/apache2/vhosts.d/$DOMAIN.81.conf
  34. ! /etc/init.d/apache2 restart
  35.   echo "URL for Dynamic Good Guys Login:"
  36.   echo "    http://$DOMAIN:81/$URLACCESS.php"
  37.   echo "Modify regularly for security reasons. To modify:"
  38. --- 58,67 ----
  39.   echo "   <Directory \"/srv/www/lockdown\">" >> /etc/apache2/vhosts.d/$DOMAIN.81.conf
  40.   echo "      Options None" >> /etc/apache2/vhosts.d/$DOMAIN.81.conf
  41.   echo "      AllowOverride None" >> /etc/apache2/vhosts.d/$DOMAIN.81.conf
  42. ! echo "      Require all granted" >> /etc/apache2/vhosts.d/$DOMAIN.81.conf
  43.   echo "   </Directory>" >> /etc/apache2/vhosts.d/$DOMAIN.81.conf
  44.   echo "</VirtualHost>" >> /etc/apache2/vhosts.d/$DOMAIN.81.conf
  45. ! service apache2 reload
  46.   echo "URL for Dynamic Good Guys Login:"
  47.   echo "    http://$DOMAIN:81/$URLACCESS.php"
  48.   echo "Modify regularly for security reasons. To modify:"
  49. ***************
  50. *** 94,97 ****
  51.   # 2. Surf to Admin login and add/remove IPs (above at http://$DOMAIN/phpmysqlezedit/goodguys.php?access=$URLACCESS")
  52.   #    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!)
  53.   # 3. Survive reboot: Be sure there is a "temporary" and a "NONtemporary".
  54. ! #    Upon reboot, the temporary should disappear and the NON should survive. Remember the 60 second delay.
  55. \ No newline at end of file
  56. --- 92,95 ----
  57.   # 2. Surf to Admin login and add/remove IPs (above at http://$DOMAIN/phpmysqlezedit/goodguys.php?access=$URLACCESS")
  58.   #    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!)
  59.   # 3. Survive reboot: Be sure there is a "temporary" and a "NONtemporary".
  60. ! #    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