As has been stated; it's apache2. The default location of web directories is /var/www and your apache config is in /etc/apache2 . You also have auxiliary commands to modify apache's config:
- a2enmod - Enables the specified module
- a2dismod - Disables the specified module
- a2ensite - Enables the specified site. The name you can use here corresponds to the filename, minus extension, for a site you have configured in /etc/sites-available . So for example, if you have a config for a site at /etc/apache2/sites-available/default.conf, you would "enable" the site with "a2ensite default", either as root or with sudo.
- a2dissite - Disables the specified site, see previous bullet for details.
If you make changes to the configuration, enable/disable sites or modules, etc., you'll want to do a systemctl reload apache2 to basically restart the service with all the new changes in place.
As far as configuring it, you can learn a lot by just reading the config file for the default site, perhaps the manual for apache itself (man apache2), and checking out the Wiki. For example, I found this wiki page about apache hardening here:
https://wiki.debian.org/Apache/Hardening
- a2enmod - Enables the specified module
- a2dismod - Disables the specified module
- a2ensite - Enables the specified site. The name you can use here corresponds to the filename, minus extension, for a site you have configured in /etc/sites-available . So for example, if you have a config for a site at /etc/apache2/sites-available/default.conf, you would "enable" the site with "a2ensite default", either as root or with sudo.
- a2dissite - Disables the specified site, see previous bullet for details.
If you make changes to the configuration, enable/disable sites or modules, etc., you'll want to do a systemctl reload apache2 to basically restart the service with all the new changes in place.
As far as configuring it, you can learn a lot by just reading the config file for the default site, perhaps the manual for apache itself (man apache2), and checking out the Wiki. For example, I found this wiki page about apache hardening here:
https://wiki.debian.org/Apache/Hardening
Statistics: Posted by Gerowen — 2024-05-09 02:46