Guest User

Untitled

a guest
Jan 23rd, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.59 KB | None | 0 0
  1. server {
  2. listen 80 default_server;
  3. listen [::]:80 default_server;
  4.  
  5. # SSL configuration
  6. #
  7. # listen 443 ssl default_server;
  8. # listen [::]:443 ssl default_server;
  9. #
  10. # Note: You should disable gzip for SSL traffic.
  11. # See: https://bugs.debian.org/773332
  12. #
  13. # Read up on ssl_ciphers to ensure a secure configuration.
  14. # See: https://bugs.debian.org/765782
  15. #
  16. # Self signed certs generated by the ssl-cert package
  17. # Don't use them in a production server!
  18. #
  19. # include snippets/snakeoil.conf;
  20.  
  21. root /var/www/proyecto;
  22.  
  23. # Add index.php to the list if you are using PHP
  24. index index.php index.html index.htm index.nginx-debian.html;
  25. server_name www.proyectoasir.es;
  26. location / {
  27. # First attempt to serve request as file, then
  28. # as directory, then fall back to displaying a 404.
  29. try_files $uri $uri/ =404;
  30. proxy_pass http://192.168.0.100;
  31. }
  32. location ~ .(jpe?g|png|gif|ico)$ {
  33. proxy_pass http://192.168.0.100;
  34. }
  35. location /somedirectory/ {
  36. autoindex on;
  37. }
  38.  
  39. # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
  40. #
  41. location ~ .php$ {
  42. include snippets/fastcgi-php.conf;
  43. #With php7.0-cgi alone:
  44. #fastcgi_pass 192.168.0.100:9000;
  45. # With php7.0-fpm:
  46. fastcgi_pass unix:/run/php/php7.0-fpm.sock;
  47. proxy_pass http://192.168.0.100;
  48. }
Add Comment
Please, Sign In to add comment