Browse Source

add apache conf for future reference

Brennen Bearnes 1 year ago
parent
commit
2cfae51e7a
2 changed files with 47 additions and 3 deletions
  1. 4
    3
      README.md
  2. 43
    0
      hosting/default-ssl.conf

+ 4
- 3
README.md View File

@@ -1,7 +1,7 @@
1 1
 # MediaWiki Page Readability by Category
2 2
 
3
-A very small [Slim][slim] application for returning a list of pages in a
4
-MediaWiki category, ordered by [Dale-Chall readability scores][dale-chall].
3
+A small [Slim][slim] application for returning a list of pages in a MediaWiki
4
+category, ordered by [Dale-Chall readability scores][dale-chall].
5 5
 
6 6
 Works in [Lynx][lynx], for some reason, as well as browsers that people
7 7
 actually use.
@@ -23,7 +23,8 @@ composer install
23 23
 composer start
24 24
 ```
25 25
 
26
-And then visit `http://localhost:8080` in your browser of choice.
26
+And then visit [http://localhost:8080](http://localhost:8080) in your browser
27
+of choice.
27 28
 
28 29
 ## Hypothetical TODOs
29 30
 

+ 43
- 0
hosting/default-ssl.conf View File

@@ -0,0 +1,43 @@
1
+<IfModule mod_ssl.c>
2
+	<VirtualHost _default_:443>
3
+		ServerAdmin webmaster@localhost
4
+
5
+		DocumentRoot /var/www/mw-category-readability/public
6
+
7
+		<Directory "/var/www/mw-category-readability/public">
8
+			RewriteEngine On
9
+			RewriteEngine On
10
+			RewriteCond %{REQUEST_FILENAME} !-f
11
+			RewriteRule ^ index.php [QSA,L]
12
+			# RewriteBase "/myapp/"
13
+			# RewriteRule "^index\.html$"  "welcome.html"
14
+		</Directory>
15
+
16
+
17
+		ErrorLog ${APACHE_LOG_DIR}/error.log
18
+		CustomLog ${APACHE_LOG_DIR}/access.log combined
19
+
20
+
21
+		#   SSL Engine Switch:
22
+		#   Enable/Disable SSL for this virtual host.
23
+		SSLEngine on
24
+
25
+		#   If both key and certificate are stored in the same file, only the
26
+		#   SSLCertificateFile directive is needed.
27
+		SSLCertificateFile /etc/letsencrypt/live/wikimedia.p1k3.com/cert.pem
28
+		SSLCertificateKeyFile /etc/letsencrypt/live/wikimedia.p1k3.com/privkey.pem
29
+
30
+		#   Server Certificate Chain:
31
+		#   Point SSLCertificateChainFile at a file containing the
32
+		#   concatenation of PEM encoded CA certificates which form the
33
+		#   certificate chain for the server certificate. Alternatively
34
+		#   the referenced file can be the same as SSLCertificateFile
35
+		#   when the CA certificates are directly appended to the server
36
+		#   certificate for convinience.
37
+		SSLCertificateChainFile /etc/letsencrypt/live/wikimedia.p1k3.com/chain.pem
38
+
39
+		<FilesMatch "\.(cgi|shtml|phtml|php)$">
40
+				SSLOptions +StdEnvVars
41
+		</FilesMatch>
42
+	</VirtualHost>
43
+</IfModule>

Loading…
Cancel
Save