-
Notifications
You must be signed in to change notification settings - Fork 6
1.1 Introduction
Welcome to the win-a2enmod wiki! As the script changes, this wiki will also change. A lot of the usage is explained in the readme, but this wiki will talk a little more in depth about how to use it.
win-a2enmod is a single PowerShell script that can help you manage your Apache Web Server modules and sites on a Windows machine. It is strongly based on the a2enmod script by the Debian developer Stefan Fritsch in that it also uses symbolic links named after the other functionality of the script, such as a2ensite
and a2dissite
, the names of which determine what the script will actually do. Instead of using Perl, it uses the very versatile and Windows-friendly PowerShell. You can use the command a2enmod
to either view your enabled/disabled modules or toggle them on or off. It does this by simply looking at your web server's main configuration file, as defined in the SERVER_CONFIG_FILE
variable the program was compiled with, and commenting or uncommenting lines in the conf file. It also provides a quick way to copy new module files to the ServerRoot\modules folder.
a2ensite
manages VirtualHost configurations you create as .conf files under ServerRoot\conf\sites-enabled and ServerRoot\conf\sites-available that define the directives for multiple enabled and disabled sites.