Advertisement
Guest User

Untitled

a guest
Sep 20th, 2024
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. ServerName bookstack.atlasio.lab
  2.  
  3. DocumentRoot /var/www/html/BookStack/public
  4.  
  5. <Directory /var/www/html/BookStack/public>
  6. Options Indexes FollowSymLinks
  7. AllowOverride None
  8. Require all granted
  9.  
  10. <IfModule mod_rewrite.c>
  11. <IfModule mod_negotiation.c>
  12. Options -MultiViews -Indexes
  13. </IfModule>
  14.  
  15. RewriteEngine On
  16.  
  17. # Handle Authorization Header
  18. RewriteCond %{HTTP:Authorization} .
  19. RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
  20.  
  21. # Redirect Trailing Slashes If Not A Folder...
  22. RewriteCond %{REQUEST_FILENAME} !-d
  23. RewriteCond %{REQUEST_URI} (.+)/$
  24. RewriteRule ^ %1 [L,R=301]
  25.  
  26. # Handle Front Controller...
  27. RewriteCond %{REQUEST_FILENAME} !-d
  28. RewriteCond %{REQUEST_FILENAME} !-f
  29. RewriteRule ^ index.php [L]
  30. </IfModule>
  31. </Directory>
  32.  
  33. ErrorLog /var/log/httpd/bookstack/error.log
  34. CustomLog /var/log/httpd/bookstack/access.log combined
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement