@@ -35,7 +35,7 @@ For your convenience, the following command will install the necessary
3535software on the DOMjudge server as mentioned above when using Debian
3636GNU/Linux, or one of its derivative distributions like Ubuntu::
3737
38- sudo apt install libcgroup-dev make acl zip unzip pv mariadb-server apache2 \
38+ sudo apt install libcgroup-dev make acl zip unzip pv mariadb-server nginx \
3939 php php-fpm php-gd php-cli php-intl php-mbstring php-mysql \
4040 php-curl php-json php-xml php-zip composer ntp python3-yaml php-bcmath
4141
@@ -46,7 +46,7 @@ Red Hat Enterprise Linux and Rocky Linux (before V9)::
4646 php-gd php-cli php-intl php-mbstring php-mysqlnd php-fpm \
4747 php-xml php-zip composer chronyd python3-pyyaml php-bcmath
4848
49- `nginx ` can be used as an alternate web server.
49+ `apache2 ` can be used as an alternate web server.
5050
5151The packages `libcgroup-dev ` (`libcgroup-devel ` on Fedora) and `make ` are
5252:ref: `judgehost software requirements <judgehost_software >`, but also
@@ -109,24 +109,7 @@ with it. Refer to the documentation of your web server and PHP for
109109details. In the examples below, replace |phpversion | with the PHP version
110110you're installing.
111111
112- To configure the Apache web server for DOMjudge, use the Apache
113- configuration snippet from ``etc/apache.conf ``. It contains
114- examples for configuring the DOMjudge pages with an alias directive,
115- or as a virtualhost, optionally with TLS; it also contains PHP and security
116- settings. Reload the web server for changes to take effect.
117-
118- .. parsed-literal ::
119-
120- ln -s <DOMSERVER_INSTALL_PATH>/etc/apache.conf /etc/apache2/conf-available/domjudge.conf
121- ln -s <DOMSERVER_INSTALL_PATH>/etc/domjudge-fpm.conf /etc/php/|phpversion |/fpm/pool.d/domjudge.conf
122- a2enmod proxy_fcgi setenvif rewrite
123- a2enconf php\ |phpversion |-fpm domjudge
124- # Edit the file /etc/apache2/conf-available/domjudge.conf and
125- # /etc/php/\ |phpversion |/fpm/pool.d/domjudge.conf to your needs
126- service php\ |phpversion |-fpm reload
127- service apache2 reload
128-
129- An nginx webserver configuration snippet is also provided in
112+ To configure the nginx web server for DOMjudge, use the nginx configuration snippet in
130113``etc/nginx-conf ``. You still need ``htpasswd `` from ``apache2-utils ``
131114though. To use this configuration, perform the following steps:
132115
@@ -150,6 +133,23 @@ On Fedora, use the following nginx configuration steps:
150133 systemctl restart php-fpm.service
151134 systemctl restart nginx.service
152135
136+ To configure the Apache web server for DOMjudge, use the Apache
137+ configuration snippet from ``etc/apache.conf ``. It contains
138+ examples for configuring the DOMjudge pages with an alias directive,
139+ or as a virtualhost, optionally with TLS; it also contains PHP and security
140+ settings. Reload the web server for changes to take effect.
141+
142+ .. parsed-literal ::
143+
144+ ln -s <DOMSERVER_INSTALL_PATH>/etc/apache.conf /etc/apache2/conf-available/domjudge.conf
145+ ln -s <DOMSERVER_INSTALL_PATH>/etc/domjudge-fpm.conf /etc/php/|phpversion |/fpm/pool.d/domjudge.conf
146+ a2enmod proxy_fcgi setenvif rewrite
147+ a2enconf php\ |phpversion |-fpm domjudge
148+ # Edit the file /etc/apache2/conf-available/domjudge.conf and
149+ # /etc/php/\ |phpversion |/fpm/pool.d/domjudge.conf to your needs
150+ service php\ |phpversion |-fpm reload
151+ service apache2 reload
152+
153153 The judgehosts connect to DOMjudge via the DOMjudge API so need
154154to be able to access at least this part of the web interface.
155155
0 commit comments