1<VirtualHost *:80>
2 ServerName your-domain.com
3 DocumentRoot "/var/www/html/your-domain.com/public/"
4 ErrorLog "/var/www/html/your-domain.com/error.log"
5 CustomLog "/var/www/html/your-domain.com/access.log" combined
6
7 <Directory "/var/www/html/your-domain.com/public">
8 Options +Indexes +FollowSymLinks
9 DirectoryIndex index.php
10 AllowOverride None
11 Require all granted
12
13 <IfModule mod_rewrite.c>
14 <IfModule mod_negotiation.c>
15 Options -MultiViews
16 </IfModule>
17
18 RewriteEngine On
19
20 # Handle Front Controller...
21 RewriteCond %{REQUEST_FILENAME} !-d
22 RewriteCond %{REQUEST_FILENAME} !-f
23 RewriteRule ^ index.php [L]
24
25 # Handle Authorization Header
26 RewriteCond %{HTTP:Authorization} .
27 RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
28 </IfModule>
29 </Directory>
30
31</virtualhost>
32