How to serve a JavaScript build with Apache — boobo94

<VirtualHost *:80>

RewriteEngine on
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

<IfModule mod_ssl.c>
<VirtualHost *:443>





Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Simplify Redux Async

Utilizing JavaScript Closures

Creating a Static Website with AWS S3 and CloudFront

Find the minimum number of swaps to sort unsorted array.

Understanding how imgur overcome the SEO problem from SPA

Axelar for DUMMIES

A little bit in-depth of JavaScript

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Bogdan Alexandru Militaru

Bogdan Alexandru Militaru

More from Medium

How to secure your GraphQL API (Part 2, the Typetta way)

Getting Started with ScyllaDB Cloud Using Node.js Part 2: CRUD operations

CRUD application using NestJS and MongoDB

Run MongoDB for development