HOME » Documents » Security Edition Commands » httpd (Security Edition)

httpd (Security Edition)

httpd

Switches the web server in use to "nginx reverse proxy + httpd", which allows the web server and applications to run under Apache httpd but also uses the nginx functionality together by reverse proxying with NGINX. It will also restart the service.
For details on the differences between Web servers, please refer to the KUSANAGI Security Edition Web Server Configurations.

Example

kusanagi httpd --use httpd24
kusanagi httpd

Options

(No options)

If you are using "nginx reverse proxy + nginx", it will switch to "nginx reverse proxy + httpd".
If "httpd" is already running, it will restart "nginx reverse proxy + httpd".

Using Apache httpd

[--use {installed | httpd24}]

Default: installed

Specifies the version of Apache httpd to be used. When this option is specified, the following Apache httpd will start up.
The installed version of NGINX is used for reverse proxying.
If multiple versions of NGINX is already running, the command fails. You need to specify the NGINX version with kusanagi nginx command in advance.
"--use", "--reload", "--test", "--status" and "--showpath" cannot be specified at the same time.

  • --use installed: The currently installed Apache httpd
  • --use httpd24: Apache httpd2.4

Reloading Configuration

[--reload]

Reloads configuration without disconnecting the session.
"--use", "--reload", "--test", "--status" and "--showpath" cannot be specified at the same time.

Checking Configuration Files

[--test]

Checks the configuration files only.
"--use", "--reload", "--test", "--status" and "--showpath" cannot be specified at the same time.

Displaying Status

[--status]

Displays status of Apache httpd.
"--use", "--reload", "--test", "--status" and "--showpath" cannot be specified at the same time.

Displaying Full Path of httpd Command

[--showpath]

Displays the full path of httpd command.
"--use", "--reload", "--test", "--status" and "--showpath" cannot be specified at the same time.

Output

# kusanagi httpd
nginx: the configuration file /etc/opt/kusanagi/nginx129/nginx-proxy.conf syntax is ok
nginx: configuration file /etc/opt/kusanagi/nginx129/nginx-proxy.conf test is successful
Syntax OK
Removed "/etc/systemd/system/multi-user.target.wants/nginx129@production.service".
Created symlink /etc/systemd/system/multi-user.target.wants/httpd24@production.service -> /usr/lib/systemd/system/httpd24@.service.
httpd completed.
KUSANAGI
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.