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.
97 lines
1.3 KiB
97 lines
1.3 KiB
1 year ago
|
# Apache
|
||
|
|
||
|
Summary: Work with Apache.
|
||
|
|
||
|
## Available Commands
|
||
|
|
||
|
### apache.disable_module
|
||
|
|
||
|
Disable an Apache module. NOT SUPPORTED ACROSS ALL OPERATING SYSTEMS.
|
||
|
|
||
|
```ini
|
||
|
[disable ifenv]
|
||
|
apache.disable_module: ifenv
|
||
|
sudo: yes
|
||
|
```
|
||
|
|
||
|
### apache.disable_site
|
||
|
|
||
|
Disable an Apache site (virtual host configuration). NOT SUPPORTED ACROSS ALL OPERATING SYSTEMS.
|
||
|
|
||
|
```ini
|
||
|
[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.
|
||
|
|
||
|
```ini
|
||
|
[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.
|
||
|
|
||
|
```ini
|
||
|
[enable the application configuration]
|
||
|
apache.enable_site: example.app
|
||
|
sudo: yes
|
||
|
```
|
||
|
|
||
|
### apache.reload
|
||
|
|
||
|
Reload Apache configuration.
|
||
|
|
||
|
```ini
|
||
|
[reload apache]
|
||
|
apache.reload:
|
||
|
sudo: yes
|
||
|
```
|
||
|
|
||
|
### apache.restart
|
||
|
|
||
|
Restart the Apache service.
|
||
|
|
||
|
```ini
|
||
|
[restart apache]
|
||
|
apache.restart:
|
||
|
sudo: yes
|
||
|
```
|
||
|
|
||
|
### apache.start
|
||
|
|
||
|
Start the Apache service.
|
||
|
|
||
|
```ini
|
||
|
[start apache]
|
||
|
apache.start:
|
||
|
sudo: yes
|
||
|
```
|
||
|
|
||
|
### apache.stop
|
||
|
|
||
|
Stop the Apache service.
|
||
|
|
||
|
```ini
|
||
|
[stop apache]
|
||
|
apache.stop:
|
||
|
sudo: yes
|
||
|
```
|
||
|
|
||
|
### apache.test
|
||
|
|
||
|
Test Apache configuration.
|
||
|
|
||
|
```ini
|
||
|
[test apache configuration]
|
||
|
apache.test:
|
||
|
sudo: yes
|
||
|
stop: yes
|
||
|
```
|