mrkirby153

Untitled

Feb 14th, 2015
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.32 KB | None | 0 0
  1. server {
  2. listen 80;
  3. server_name mrkirby153.tk;
  4. root /var/www/mrkirby153;
  5.  
  6. location / {
  7. index index.php index.html index.htm;
  8. }
  9. location ~ \.php {
  10. fastcgi_pass 127.0.0.1:9000;
  11. fastcgi_index index.php;
  12. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  13. include fastcgi_params;
  14. }
  15. }
  16. server {
  17. # The port to listen on. By default, any webserver is on port 80
  18. listen 80;
  19. server_name solder.mrkirby153.tk
  20.  
  21. # The location for the root of your web server
  22. root /var/www/mrkirby153/solder/public/;
  23. # The files to look for to open when no file is specified. For example, 192.168.1.111 will open the index.php page
  24. index index.php index.html index.htm;
  25.  
  26. # Forward all requests to the TechnicSolders main file
  27. location / {
  28. try_files $uri $uri/ /index.php$is_args$args;
  29. }
  30.  
  31. # Pass the PHP scripts to FastCGI server listening on /var/run/php5-fpm.sock
  32. location ~ \.php$ {
  33. try_files $uri /index.php =404;
  34. fastcgi_pass 127.0.0.1:9000;
  35. fastcgi_index index.php;
  36. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  37. include fastcgi_params;
  38. }
  39. }
Advertisement
Add Comment
Please, Sign In to add comment