Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. <VirtualHost _default_:443>
  2. DocumentRoot "/srv/http"
  3. Alias /firefly/ "/srv/firefly/public/"
  4. <Directory "/srv/firefly/public/">
  5. Require all granted
  6. </Directory>
  7. </VirtualHost>
  8.  
  9. 192.168.1.1 - - [20/Feb/2019:21:57:18 -0500] "GET /firefly/ HTTP/1.1" 302 400
  10. 192.168.1.1 - - [20/Feb/2019:21:57:18 -0500] "GET /firefly/login HTTP/1.1" 404 1012
  11.  
  12. location ^~ /firefly-iii/ {
  13. deny all;
  14. }
  15.  
  16. location ^~ /budget {
  17. alias /var/www/firefly-iii/public;
  18. try_files $uri $uri/ @budget;
  19.  
  20. location ~* .php(?:$|/) {
  21. include snippets/fastcgi-php.conf;
  22. fastcgi_param SCRIPT_FILENAME $request_filename;
  23. fastcgi_param modHeadersAvailable true; #Avoid sending the security headers twice
  24. fastcgi_pass unix:/run/php/php7.2-fpm.sock;
  25. }
  26. }
  27.  
  28. location @budget {
  29. rewrite ^/budget/(.*)$ /budget/index.php/$1 last;
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement