Advertisement
Werdffelynir

Muli-sites (subfolders)

Feb 28th, 2020
963
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # ####################################
  2. # Domain main settings
  3.  
  4. #LogLevel debug
  5.  
  6. <VirtualHost HOST_NAME>
  7.     DocumentRoot "PATH/TO/FOLDER"
  8.     ServerName HOST_NAME
  9.    
  10.     ErrorLog "PATH/TO/error.log"
  11.     CustomLog "PATH/TO/access.log" common
  12. </VirtualHost>
  13.  
  14. <IfModule alias_module>
  15.     DirectoryIndex index.php
  16.     Alias /service "PATH/TO/FOLDER/public"
  17.     <Directory "PATH/TO/FOLDER/public">
  18.         Options Indexes MultiViews Includes FollowSymLinks
  19.         AllowOverride All
  20.         allow from all
  21.     </Directory>
  22. </IfModule>
  23.  
  24. # ####################################
  25. # LARAVEL public settings
  26.  
  27. <IfModule mod_rewrite.c>
  28. # MULTI-SITES CONGIF
  29.     Options Indexes MultiViews Includes FollowSymLinks
  30.    
  31.     RewriteBase /service/
  32.     RewriteEngine On
  33.  
  34.     RewriteCond %{REQUEST_FILENAME} !-d
  35.     RewriteCond %{REQUEST_FILENAME} !-f
  36.     RewriteRule . index.php [L]
  37.  
  38. # DEFAULT CONGIF
  39. #    <IfModule mod_negotiation.c>
  40. #        Options -MultiViews -Indexes
  41. #    </IfModule>
  42.  
  43. #    RewriteEngine On
  44.  
  45.     # Handle Authorization Header
  46. #    RewriteCond %{HTTP:Authorization} .
  47. #    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
  48.  
  49.     # Redirect Trailing Slashes If Not A Folder...
  50. #    RewriteCond %{REQUEST_FILENAME} !-d
  51. #    RewriteCond %{REQUEST_URI} (.+)/$
  52. #    RewriteRule ^ %1 [L,R=301]
  53.  
  54.     # Handle Front Controller...
  55. #    RewriteCond %{REQUEST_FILENAME} !-d
  56. #    RewriteCond %{REQUEST_FILENAME} !-f
  57. #    RewriteRule ^ index.php [L]
  58. </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement