This boilerplate includes an app/.htaccess
file that does three things:
yourdomain.com/subpage
) to yourdomain.com/index.html
to let react-router
take care of presenting the correct page.Note: For performance reasons you should probably adapt this to run as a static
.conf
file (typically under/etc/apache2/sites-enabled
or similar) so that your server doesn’t have to apply these rules dynamically per request)
.htaccess
can only provide security by redirecting HTTP to HTTPS
Note: For a detailled security configuration in apache httpd, a
.conf
file is necessary. You can use Mozillas TLS Configurator to get some examples.
An app/.nginx.conf
file is included that does the same on an Nginx server.
Additionally, the .nginx.conf
provides TLS security configuration settings based on Mozillas TLS Guidelines, including: