<VirtualHost *:80>
ServerName yoursite.com
ServerAlias www.yoursite.com
Redirect permanent / https://yoursite.com/
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule . /index.html [L]
</IfModule>
This document is intended to provide consistent and helpful coding convention for ES6 code. It should be usable either in Node/IO.js or in the browser.
The recommended transpiling tool for ES6 to ES5 is babel. The recommended bundler for the browser is webpack, but browserify is also acceptable.
The recommended text editor is Sublime Text using babel-sublime. Other editors are acceptable, as long as they have proper ES6 and optionally, JSX support.
Instructions denoted as must/must not are mandatory. Instructions denoted as should/should not are preferred.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
server_name ~^(?<name>\w+)\.yourdomain\.com$; | |
return 301 https://yourdomain.com$request_uri?user=$name; | |
} | |
server { | |
listen 443 ssl http2; | |
server_name ~^(?<name>\w+)\.yourdomain\.com$; |
server { listen 80; server_name blnews.com www.blnews.com;
#Configures the publicly served root directory
#Configures the index file to be served
root /var/www/proyectos/mybl-news-backend;
index index.html index.htm;
#These lines create a bypass for certain pathnames