@@ -19,7 +19,8 @@ Contents
19
19
5.1 Apache Config
20
20
5.2 Apache Security Config
21
21
6.0 Lighttpd
22
- 7.0 PHP
22
+ 7.0 nginx
23
+ 8.0 PHP
23
24
24
25
=======
25
26
Summary
@@ -183,15 +184,16 @@ it is not recommended.
183
184
4.3 Webserver
184
185
=============
185
186
186
- As of 0.21 , MythWeb contains configuration files for both Apache and Lighty.
187
- You will need to choose ONE of these files and install it in your
187
+ As of 0.28 , MythWeb contains configuration files for Apache, Lighty and
188
+ nginx. You will need to choose ONE of these files and install it in your
188
189
webserver's configuration directory. This will be explained later.
189
190
190
191
The first thing you must do is find the configuration file for your chosen
191
192
webserver, and then follow the instructions in the appropriate subsection:
192
193
193
194
mythweb.conf.apache (See section 5.0)
194
195
mythweb.conf.lighttpd (See section 6.0)
196
+ mythweb.conf.nginx (See section 7.0)
195
197
196
198
==========
197
199
5.0 Apache
@@ -426,8 +428,35 @@ Then... Restart lighttpd and go!
426
428
Assuming you set it up this way, simply direct your browser to
427
429
http://mythweb.local/ and enjoy.
428
430
431
+ =========
432
+ 7.0 nginx
433
+ =========
434
+
435
+ Configuring nginx for mythweb.
436
+
437
+ 1. Copy the nginx config example to your nginx configuration directory
438
+
439
+ # cp mythweb.conf.nginx /etc/nginx/sites-available/mythweb
440
+
441
+ Edit for any specifics of your setup.
442
+
443
+ 2. For HTTP Basic Auth (nginx does not support HTTP Digest by default),
444
+ create the credentials with htpasswd.
445
+
446
+ # htpasswd -c /etc/nginx/mythweb.passwd mythweb
447
+
448
+ 3. Make sure php-fpm is installed and running.
449
+
450
+ # apt-get install php5-fpm
451
+
452
+ 4. Restart nginx
453
+
454
+ You should be able to access mythweb at the root of the hostname you
455
+ defined (ex: https://localhost OR https://myth.mydomain.com)
456
+
457
+
429
458
=======
430
- 7 .0 PHP
459
+ 8 .0 PHP
431
460
=======
432
461
433
462
PHP tries to determine the system's local timezone settings automatically
0 commit comments