Editing FoolFuuka/Install/Ubuntu16

From Bibliotheca Anonoma

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 141: Line 141:
== Configure Nginx to host foolfuuka ==
== Configure Nginx to host foolfuuka ==


Create this file
Modify / Add these lines
{{hc|sudo nano /etc/nginx/sites-enabled/archive.conf|<nowiki>
{{hc|sudo nano /etc/nginx/sites-enabled/default|<nowiki>
server {
        root /home/ubuntu/foolfuuka/public;
listen 80;
        index index.php index.html index.htm;
listen [::]:80;
#listen 443 ssl;
#listen [::]:443 ssl;


#ssl_certificate /etc/nginx/ssl/myarchive.local.crt;
        client_max_body_size 32M; # set to the same as max PHP upload size in HHVM
#ssl_certificate_key /etc/nginx/ssl/myarchive.local.key;
        location / {
                try_files $uri $uri/ /index.php$is_args$args;
        }


root /var/www/foolfuuka/public;
        include hhvm.conf
index index.php;


server_name myarchive.local;
include hhvm.conf;
client_max_body_size 2M;
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
}
</nowiki>}}
</nowiki>}}


Please note that all contributions to Bibliotheca Anonoma are considered to be released under the Creative Commons Attribution-ShareAlike (see Bibliotheca Anonoma:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)

Templates used on this page: