Advertisement
Guest User

Untitled

a guest
Apr 20th, 2014
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. composer create-project laravel/laravel your-project-name --prefer-dist
  2.  
  3. Route::get('/about', function()
  4. {
  5. return "about page";
  6. });
  7.  
  8. server {
  9. listen 80 default;
  10. server_name _;
  11.  
  12. root /var/www/laravel/public;
  13. index index.php;
  14.  
  15. location / {
  16. try_files $uri $uri/ /index.php?$query_string;
  17. }
  18.  
  19. location ~ .php$ {
  20. include fastcgi_params;
  21. fastcgi_pass unix:/var/run/php5-fpm.sock;
  22. fastcgi_index index.php;
  23. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement