A collection of classes and commands for automated command line scripting using Python.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

1.3 KiB

Apache

Summary: Work with Apache.

Available Commands

apache.disable_module

Disable an Apache module. NOT SUPPORTED ACROSS ALL OPERATING SYSTEMS.

[disable ifenv]
apache.disable_module: ifenv
sudo: yes

apache.disable_site

Disable an Apache site (virtual host configuration). NOT SUPPORTED ACROSS ALL OPERATING SYSTEMS.

[disable the default apache site]
apache.disable_site: 000-default
sudo: yes

apache.enable_module

Enable an Apache module. NOT SUPPORTED ACROSS ALL OPERATING SYSTEMS.

[enable apache modules]
apache.enable_module: $item
items: ssl, rewrite, wsgi
sudo: yes

apache.enable_site

Enable an Apache site (virtual host configuration). NOT SUPPORTED ACROSS ALL OPERATING SYSTEMS.

[enable the application configuration]
apache.enable_site: example.app
sudo: yes

apache.reload

Reload Apache configuration.

[reload apache]
apache.reload:
sudo: yes

apache.restart

Restart the Apache service.

[restart apache]
apache.restart:
sudo: yes

apache.start

Start the Apache service.

[start apache]
apache.start:
sudo: yes

apache.stop

Stop the Apache service.

[stop apache]
apache.stop:
sudo: yes

apache.test

Test Apache configuration.

[test apache configuration]
apache.test:
sudo: yes
stop: yes