Skip to content

Instantly share code, notes, and snippets.

@rosdyana
Created October 16, 2017 15:48
Show Gist options
  • Save rosdyana/d2235a5a947e22516aab57ba4c31148c to your computer and use it in GitHub Desktop.
Save rosdyana/d2235a5a947e22516aab57ba4c31148c to your computer and use it in GitHub Desktop.
.httacces
===
DirectoryIndex index.php
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
RewriteCond %{REQUEST_URI}::$1 ^(/.+)/(.*)::\2$
RewriteRule ^(.*) - [E=BASE:%1]
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteRule ^index\.php(/(.*)|$) %{ENV:BASE}/$2 [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule .? - [L]
RewriteRule .? %{ENV:BASE}/index.php [L]
</IfModule>
==
laravel.conf -> /etc/apache2/sites-available
==
<VirtualHost *:80>
#ServerName
ServerAlias 140.138.155.216
Alias /deepefflux /var/www/html/~ros/deepefflux/public
DocumentRoot /var/www/html/~ros/deepefflux/public
<Directory "/var/www/html/>
AllowOverride all
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
==
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment