Skip to content

ibp-network/website

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm run build fails to minify

This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify

Special Instructions for Apache

If you are self-hosting this website in an clean installation of Apache webserver on Ubuntu, please take note of the following configuiration requirements:

Enable granular control with .htaccess files

Open the general configuration file for Apache (adjust to your particular circumstances)

sudo nano /etc/apache2/apache2.conf

and amend/add the following lines:

<Directory /var/www/website/build>
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
</Directory>

Enable the use of Rewrite mod

You can use the following command:

sudo a2enmod rewrite

Add the adequate .htaccess content to the root directory

Create a new .htaccess file with

sudo nano /var/www/website/build/.htaccess

And enter the following content:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.html [QSA,L]

Restart the webserver

With the following command:

sudo systemctl restart apache2