17 Commits

Author SHA1 Message Date
James Valleroy
f178b74055 Split apache conf into 2 files, one for HTTP and one for SSL. 2014-03-24 07:19:57 -04:00
Nick Daly
a09aa90145 Only redirect Plinth requests to HTTPS.
Previously, we redirected all requests to HTTPS.  Now, we redirect
only when the user tries to connect to the Plinth site.
2014-03-13 12:16:32 -05:00
James Valleroy
96f4430513 Remove includeSubDomains option from HSTS header. 2013-11-28 02:27:08 +00:00
James Valleroy
96310b4366 Use HSTS in apache conf. Fixes #47. 2013-11-28 00:52:18 +00:00
Nick Daly
a0a9e96a29 Remove the /plinth/static location.
Otherwise, Apache 500s on the static files.
2013-11-17 16:22:21 -06:00
Nick Daly
827defed77 Allow Apache to serve Plinth's static files correctly.
When the */plinth/static* configuration is above */plinth*, it doesn't
work.  Move it below the */plinth* configuration so static files will
be served correctly.
2013-11-10 16:31:23 -06:00
Nick Daly
b9b4e0a2ec Update Apache config for new static directory location.
It's now /plinth/static, not /static.
2013-10-31 19:53:56 -05:00
Nick Daly
dc9331353f Remove local JavaScript; Add /static permissions.
Changes:
1. Remove local minified copies of html5shiv, modernizr, and jquery.
2. Add symlinks to system copies of minified modernizr and jquery. These are installed by libjs-modernizr and libjs-jquery.
3. In apache configuration, change DocumentRoot from plinth/static to just plinth.
4. Add permissions for /static location.
2013-10-27 16:56:32 -05:00
Nick Daly
421f20005e Plinth now hosted on (server)/plinth.
Plinth has been moved from plinth.(server).local to (server)/plinth.
*plinth.py* has been updated to take a new *--server_dir* argument,
which *share/init.d/plinth* now provides.  *plinth.sample.config* has
also been updated.

Actually, the whole package has been moved to a more Debian-friendly
configuration.  *share/apache2/plinth.conf* has been updated to
reflect the standard Debian directories.  It seems to make more sense
this way, as (other than FreedomMaker, which now uses this package
anyway) no other tools or derivatives use this system.  The
configuration can be patched out by other distributions easily enough.
2013-10-27 16:01:28 -05:00
James Valleroy
f18d4a9e48 Change DocumentRoot in apache configuration, and add permissions for /static. 2013-10-20 09:04:31 -04:00
Nick Daly
d84150b103 Fix DocumentRoot: Apache can serve Plinth's static files.
Without this change, Apache tries to serve the static files from
/dev/null/static, which never exists, so users will see all exciting
manner of errors.

I've assumed that the correct directory is the default directory that
Freedom-Maker installs Plinth to, currently ``/home/fbx/plinth``.
Other distributions will need to patch this out to their preferred
location, like ``/usr/share/plinth/static``.
2013-10-18 16:59:35 -05:00
Nick Daly
4f2cb54f32 Updated Apache config to be a little more flexible. 2013-10-06 21:00:06 -05:00
James Vasile
992eff9e13 flesh out santiago and apache config a bit 2012-02-19 15:07:16 -05:00
James Vasile
0801f05450 set documentroot to /dev/null 2012-02-19 15:07:15 -05:00
James Vasile
77647e907d subdomain for plinth 2012-02-19 15:07:15 -05:00
James Vasile
5ed705e875 redirect / and /plinth to /plinth/ 2012-02-19 15:07:15 -05:00
James Vasile
d3a2fbc05e start to make proxy 2012-02-19 15:07:14 -05:00