mirror of
https://github.com/DeNNiiInc/Connect-5.git
synced 2026-04-17 22:46:00 +00:00
Add Apache config finder script
This commit is contained in:
25
find-apache-config.sh
Normal file
25
find-apache-config.sh
Normal 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"
|
||||
Reference in New Issue
Block a user