Browse Source

Disable HTTP access on social networking

Bob Mottram 11 years ago
parent
commit
523e7e01e9
1 changed files with 46 additions and 2 deletions
  1. 46
    2
      beaglebone.txt

+ 46
- 2
beaglebone.txt View File

1221
 *** Friendica
1221
 *** Friendica
1222
 **** Installation
1222
 **** Installation
1223
 
1223
 
1224
-See [[Setting up a web site]] for details of how to update the Apache configuration for your Friendica site.
1224
+See [[Setting up a web site]] for details of how to update the Apache configuration for your Friendica site.  You should have a separate domain name specifically to run Friendica on.  It can't be installed in a subdirectory on a domain used for something else.
1225
+
1226
+Edit your Apache configuration and disable the port 80 (HTTP) version of the site.  We only want to log into Friendica via HTTPS, so to prevent anyone from accidentally logging in insecurely:
1227
+
1228
+#+BEGIN_SRC: bash
1229
+emacs /etc/apache2/sites-available/mydomainname.com
1230
+#+END_SRC
1231
+
1232
+Within the section which begins with *<VirtualHost *:80>* change the following:
1233
+
1234
+#+BEGIN_SRC: bash
1235
+  <Directory /var/www/mydomainname.com/htdocs/>
1236
+    deny from all
1237
+  </Directory>
1238
+#+END_SRC
1239
+
1240
+Save and exit, then restart the apache server.
1241
+
1242
+#+BEGIN_SRC: bash
1243
+service apache2 restart
1244
+#+END_SRC
1245
+
1246
+Now install some dependencies.
1225
 
1247
 
1226
 #+BEGIN_SRC: bash
1248
 #+BEGIN_SRC: bash
1227
 apt-get install mysql-server php5-common php5-cli php5-curl php5-gd php5-mysql php5-mcrypt
1249
 apt-get install mysql-server php5-common php5-cli php5-curl php5-gd php5-mysql php5-mcrypt
1404
 
1426
 
1405
 **** Installation
1427
 **** Installation
1406
 
1428
 
1407
-See [[Setting up a web site]] for details of how to update the Apache configuration for your Red Matrix site.
1429
+See [[Setting up a web site]] for details of how to update the Apache configuration for your Red Matrix site.  You should have a separate domain name specifically to run Red Matrix on.  It can't be installed in a subdirectory on a domain used for something else.
1430
+
1431
+Edit your Apache configuration and disable the port 80 (HTTP) version of the site.  We only want to log into Red Matrix via HTTPS, so to prevent anyone from accidentally logging in insecurely:
1432
+
1433
+#+BEGIN_SRC: bash
1434
+emacs /etc/apache2/sites-available/mydomainname.com
1435
+#+END_SRC
1436
+
1437
+Within the section which begins with *<VirtualHost *:80>* change the following:
1438
+
1439
+#+BEGIN_SRC: bash
1440
+  <Directory /var/www/mydomainname.com/htdocs/>
1441
+    deny from all
1442
+  </Directory>
1443
+#+END_SRC
1444
+
1445
+Save and exit, then restart the apache server.
1446
+
1447
+#+BEGIN_SRC: bash
1448
+service apache2 restart
1449
+#+END_SRC
1450
+
1451
+Now install some dependencies.
1408
 
1452
 
1409
 #+BEGIN_SRC: bash
1453
 #+BEGIN_SRC: bash
1410
 apt-get install mysql-server php5-common php5-cli php5-curl php5-gd php5-mysql php5-mcrypt
1454
 apt-get install mysql-server php5-common php5-cli php5-curl php5-gd php5-mysql php5-mcrypt