修訂 | 0887a5583f382793154e9879897417d31fe3f9e3 (tree) |
---|---|
時間 | 2021-03-26 14:20:52 |
作者 | ![]() |
Commiter | Mitsuaki Kawamura |
Backup
@@ -0,0 +1,107 @@ | ||
1 | +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | |
2 | +<html lang="ja"> | |
3 | + <head> | |
4 | + <meta name="Content-Language" content="ja"> | |
5 | + <meta http-equiv="Content-Style-Type" content="text/css"> | |
6 | + <meta http-equiv="Content-Script-Type" content="text/javascript"> | |
7 | + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
8 | + <meta http-equiv="Pragma" content="no-cache"> | |
9 | + <meta http-equiv="Cache-Control" content="no-cache"> | |
10 | + | |
11 | + <title>ScienceBBS Web page</title> | |
12 | + </head> | |
13 | + | |
14 | + <body bgcolor="CCFFCC"> | |
15 | + <hr> | |
16 | + | |
17 | + <h1> | |
18 | + <img src="fig/sciencebbs.png" height="50" style="vertical-align: -moz-middle-with-baseline; "> | |
19 | + <a href="https://osdn.net/projects/sciencebbs/">ScienceBBS</a></h1> | |
20 | + <hr> | |
21 | + <h4> | |
22 | + BBS for scientific discussion. It has the following features: | |
23 | + | |
24 | + <ul> | |
25 | + <li>TeX formula</li> | |
26 | + <li>Free-hand schematic illustration</li> | |
27 | + <li>Display JPEG, PNG, GIF, MPEG, etc.</li> | |
28 | + <li>Attach files such as PDF. </li> | |
29 | + </ul> | |
30 | + </h4> | |
31 | + <hr> | |
32 | + <h3><a href="https://osdn.net/projects/sciencebbs/scm/git/sciencebbs/">Git repository</a></h3> | |
33 | + | |
34 | + <hr> | |
35 | + <h2>Demo page</h2> | |
36 | + There are two kind of BBS. | |
37 | + | |
38 | + <h3><a href="noauth/index.php">Without auhentification</a></h3> | |
39 | + We can comment freely as arbitrary handle-name. | |
40 | + | |
41 | + <h3><a href="auth/index.php">With Basic auhentification</a></h3> | |
42 | + We can login as the following two accounts: | |
43 | + <ul> | |
44 | + <li>Account : <code>user1</code>, Password : <code>pass1</code></li> | |
45 | + <li>Account : <code>user2</code>, Password : <code>pass2</code></li> | |
46 | + </ul> | |
47 | + <hr> | |
48 | + <h2>How to create your own ScienceBBS</h2> | |
49 | + | |
50 | + <h3>Without authentification</h3> | |
51 | + | |
52 | + The usage is just to copy | |
53 | + <a href="https://osdn.net/projects/sciencebbs/scm/git/sciencebbs/blobs/master/src/noauth/index.php?export=raw">src/noauth/index.php</a> | |
54 | + into any HTTP/HTTPS server. | |
55 | + | |
56 | + <h3>With Basic authentification</h3> | |
57 | + | |
58 | + The usage is as follows: | |
59 | + <ol> | |
60 | + <li> | |
61 | + copy | |
62 | + <a href="https://osdn.net/projects/sciencebbs/scm/git/sciencebbs/blobs/master/src/auth/index.php?export=raw">src/auth/index.php</a> | |
63 | + into any HTTP/HTTPS server. | |
64 | + </li> | |
65 | + <li> | |
66 | + Create <code>.htaccess</code> in the same directory. Its contents is as follows | |
67 | + <pre style="border: 1px solid #000000;background-color: #ffffff;padding-left: 10px;"><code> | |
68 | +AuthUserFile DIRECTORY_NAME/.htpasswd | |
69 | +AuthName GROUP-NAME | |
70 | +AuthType Basic | |
71 | +<Limit GET> | |
72 | +require valid-user | |
73 | +</Limit> | |
74 | + </code></pre> | |
75 | + where <it>DIRECTORY_NAME</it> is the full-path to the directory where <code>index.php</code> locates, | |
76 | + <it>GROUP-NAME</it> is the appropriate owner group in that server. | |
77 | + </li> | |
78 | + <li> | |
79 | + Create password file and add first user with the following command: | |
80 | + <pre style="border: 1px solid #000000;background-color: #ffffff;padding-left: 10px;"><code> | |
81 | +htpasswd -cm DIRECTORY_NAME/.htpasswd USER_NAME1 | |
82 | +chgrp GROUP-NAME DIRECTORY_NAME/.htpasswd | |
83 | +chmod o-w DIRECTORY_NAME/.htpasswd | |
84 | + </code></pre> | |
85 | + whrere <it>USER_NAME1</it> is the name of the first user. | |
86 | + </li> | |
87 | + <li> | |
88 | + Add other users (<it>USER_NAME2</it>) as follws: | |
89 | + <pre style="border: 1px solid #000000;background-color: #ffffff;padding-left: 10px;"><code> | |
90 | +htpasswd -m DIRECTORY_NAME/.htpasswd USER_NAME2 | |
91 | + </code></pre> | |
92 | + </li> | |
93 | + <li> | |
94 | + The previous command is also used to change the password for any user (<it>USER_NAME</it>). | |
95 | + <pre style="border: 1px solid #000000;background-color: #ffffff;padding-left: 10px;"><code> | |
96 | +htpasswd -m DIRECTORY_NAME/.htpasswd USER_NAME | |
97 | + </code></pre> | |
98 | + </li> | |
99 | + <li> | |
100 | + To remove authentification for any user (<it>USER_NAME</it>), please type | |
101 | + <pre style="border: 1px solid #000000;background-color: #ffffff;padding-left: 10px;"><code> | |
102 | +htpasswd -D DIRECTORY_NAME/.htpasswd USER_NAME | |
103 | + </code></pre> | |
104 | + </li> | |
105 | + </ol> | |
106 | + </body> | |
107 | +</html> |
@@ -28,20 +28,20 @@ The usage is as follows: | ||
28 | 28 | 2. Create `.htaccess` in the same directory. Its contents is as follows |
29 | 29 | ``` |
30 | 30 | AuthUserFile DIRECTORY_NAME/.htpasswd |
31 | - AuthName projectname | |
31 | + AuthName GROUP-NAME | |
32 | 32 | AuthType Basic |
33 | 33 | <Limit GET> |
34 | 34 | require valid-user |
35 | 35 | </Limit> |
36 | 36 | ``` |
37 | - where *DIRECTORY_NAME* is the full-path to the directory where `index.php` locates. | |
37 | + where *DIRECTORY_NAME* is the full-path to the directory where `index.php` locates, *GROUP-NAME* is the appropriate owner group in that server. | |
38 | 38 | 3. Create password file and add first user with the following command: |
39 | 39 | ``` bash |
40 | 40 | htpasswd -cm DIRECTORY_NAME/.htpasswd USER_NAME1 |
41 | 41 | chgrp GROUP-NAME DIRECTORY_NAME/.htpasswd |
42 | 42 | chmod o-w DIRECTORY_NAME/.htpasswd |
43 | 43 | ``` |
44 | - whrere *USER_NAME1* is the name of the first user, *GROUP-NAME* is the appropriate owner group in that server. | |
44 | + whrere *USER_NAME1* is the name of the first user. | |
45 | 45 | 4. Add other users (*USER_NAME2*) as follws: |
46 | 46 | ``` bash |
47 | 47 | htpasswd -m DIRECTORY_NAME/.htpasswd USER_NAME2 |