Skip to content

Commit 578a7bc

Browse files
author
Tyler Schwend
authoredDec 28, 2020
doc: Support use of Apache (#40)
1 parent e99ecd6 commit 578a7bc

File tree

1 file changed

+32
-2
lines changed

1 file changed

+32
-2
lines changed
 

‎README.md

+32-2
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Setting up the server
5757
---------------------
5858

5959
1. Install Python 3 and pip:
60-
60+
6161
pacman -S python python-pip
6262
# OR:
6363
apt-get install python3 python3-pip
@@ -96,10 +96,40 @@ Setting up the server
9696
uwsgi_pass ...;
9797
}
9898

99+
Setting up the server (Apache version)
100+
---------------------
101+
102+
If you wish to use Apache to host the master server, do steps 1-2, 4, above. Additionally install/enable mod_wsgi and an Apache site config like the following:
103+
104+
# This config assumes you have the master-server at DocumentRoot.
105+
# Visitors to the server list in this config would visit http://local.server/ and
106+
# apache would serve up the output from server.py. Static resources would be served
107+
# from http://local.server/static.
108+
109+
# Where are the minetest-server files located?
110+
DocumentRoot /var/games/minetest/master-server
111+
112+
# Serve up server.py at the root of the URL.
113+
WSGIScriptAlias / /var/games/minetest/master-server/server.py
114+
115+
# The name of the function that we call when we invoke server.py
116+
WSGICallableObject app
117+
118+
# These options are necessary to enable Daemon mode. Without this, you'll have strange behavior
119+
# with servers dropping off your list! You can tweak threads as needed. See mod_wsgi documentation.
120+
WSGIProcessGroup minetest-master-server
121+
WSGIDaemonProcess minetest-master-server threads=2
122+
123+
124+
<Directory /var/games/minetest/master-server>
125+
Require all granted
126+
</Directory>
127+
128+
</VirtualHost>
129+
99130
License
100131
-------
101132

102133
The Minetest master server is licensed under the GNU Lesser General Public
103134
License version 2.1 or later (LGPLv2.1+). A LICENSE.txt file should have been
104135
supplied with your copy of this software containing a copy of the license.
105-

0 commit comments

Comments
 (0)