Add Apache config finder script

This commit is contained in:
2025-12-21 16:41:20 +11:00
parent bd5f35f15d
commit 9194961fff

25
find-apache-config.sh Normal file
View File

@@ -0,0 +1,25 @@
#!/bin/bash
# Quick script to find and list Apache config files
echo "🔍 Finding Apache configuration files..."
echo ""
echo "SSL-enabled sites:"
ls -lh /etc/apache2/sites-enabled/ 2>/dev/null | grep -v "^total" | grep -v "^d"
echo ""
echo "Available sites:"
ls -lh /etc/apache2/sites-available/ 2>/dev/null | grep -v "^total" | grep -v "^d"
echo ""
echo "Checking for connect5 or beyondcloud in configs:"
grep -l "connect5\|beyondcloud" /etc/apache2/sites-available/* 2>/dev/null
grep -l "connect5\|beyondcloud" /etc/apache2/sites-enabled/* 2>/dev/null
echo ""
echo "Checking main Apache config:"
grep -n "Include" /etc/apache2/apache2.conf | grep sites
echo ""
echo "Current VirtualHosts:"
apache2ctl -S 2>/dev/null | grep -A 2 "443\|beyondcloud\|connect5"