Skip to content

Commit 0b3be52

Browse files
jmusitskormoc
authored andcommitted
Add nginx instructions to INSTALL
Signed-off-by: Rob Smith <[email protected]>
1 parent 8f2566f commit 0b3be52

File tree

1 file changed

+33
-4
lines changed

1 file changed

+33
-4
lines changed

INSTALL

Lines changed: 33 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ Contents
1919
5.1 Apache Config
2020
5.2 Apache Security Config
2121
6.0 Lighttpd
22-
7.0 PHP
22+
7.0 nginx
23+
8.0 PHP
2324

2425
=======
2526
Summary
@@ -183,15 +184,16 @@ it is not recommended.
183184
4.3 Webserver
184185
=============
185186

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
188189
webserver's configuration directory. This will be explained later.
189190

190191
The first thing you must do is find the configuration file for your chosen
191192
webserver, and then follow the instructions in the appropriate subsection:
192193

193194
mythweb.conf.apache (See section 5.0)
194195
mythweb.conf.lighttpd (See section 6.0)
196+
mythweb.conf.nginx (See section 7.0)
195197

196198
==========
197199
5.0 Apache
@@ -426,8 +428,35 @@ Then... Restart lighttpd and go!
426428
Assuming you set it up this way, simply direct your browser to
427429
http://mythweb.local/ and enjoy.
428430

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+
429458
=======
430-
7.0 PHP
459+
8.0 PHP
431460
=======
432461

433462
PHP tries to determine the system's local timezone settings automatically

0 commit comments

Comments
 (0)