This repository contains a master script that lists all domain names configured for various web servers, including Apache HTTP Server, Nginx, Lighttpd, Caddy, Apache Tomcat, and Cherokee. The script is designed to be flexible and user-friendly, allowing you to choose which web server configuration to query.
Before running the script, ensure that you have the following prerequisites:
- Bash Shell: The script is designed to run in a Unix-like environment with a Bash shell.
- Web Server Configuration Files: The script requires access to web server configuration files. Ensure that the relevant configuration files are present and accessible on your system.
- Permissions: You may need appropriate permissions to access configuration files in directories such as
/etc/apache2/
,/etc/nginx/
,/etc/lighttpd/
,/etc/caddy/
,/opt/tomcat/
, and/etc/cherokee/
.
-
Clone the Repository
Clone this repository to your local machine using the following command:
git clone https://github.com/Lalatenduswain/list_domains_master.git
-
Navigate to the Repository
Change to the directory containing the cloned repository:
cd list_domains_master
-
Make the Script Executable
Ensure the script is executable by running:
chmod +x list_domains_master.sh
To run the script, execute the following command:
./list_domains_master.sh
You will be prompted to choose the web server type. Enter the corresponding number to list the domains for the selected web server.
- Apache HTTP Server: Lists domains configured in
/etc/apache2/sites-available/
. - Nginx: Lists domains configured in
/etc/nginx/sites-available/
. - Lighttpd: Lists domains configured in
/etc/lighttpd/
. - Caddy: Lists domains configured in
/etc/caddy/Caddyfile
. - Apache Tomcat: Lists domains configured in
/opt/tomcat/conf/server.xml
. - Cherokee: Lists domains configured in
/etc/cherokee/
.
Author: Lalatendu Swain | GitHub | Website
This script is provided as-is and may require modifications or updates based on your specific environment and requirements. Use it at your own risk. The authors of the script are not liable for any damages or issues caused by its usage.
If you find this script useful and want to show your appreciation, you can donate via Buy Me a Coffee.
This project is licensed under the MIT License. See the LICENSE file for details.