Advertisement
Guest User

Untitled

a guest
Jul 24th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. UseCanonicalName Off
  2. <VirtualHost *:80>
  3. ServerName %1.dev
  4. ServerAlias *.%1.dev
  5.  
  6. ServerAdmin daniel@localhost
  7. VirtualDocumentRoot /home/daniel/public_html/%1
  8.  
  9. LogLevel error rewrite:trace8 proxy:trace2
  10.  
  11. ErrorLog /home/daniel/public_html/error.log
  12. CustomLog /home/daniel/public_html/access.log combined
  13.  
  14. <Directory ~ "/home/daniel/public_html/.*">
  15. Options Indexes FollowSymlinks Multiviews
  16. AllowOverride All
  17. Require all granted
  18. DirectoryIndex index.php index.html
  19. RewriteEngine On
  20.  
  21. <FilesMatch ".php$">
  22. SetHandler "proxy:unix:/run/php/php7.0-fpm.sock|fcgi://localhost:9000"
  23. </FilesMatch>
  24. </Directory>
  25. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement