Webanwendung mit FastCGI und Haskell
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

37 lignes
1.4KB

  1. # configuration of the server
  2. server {
  3. # the port your site will be served on
  4. listen 80;
  5. # the domain name it will serve for
  6. server_name .example.com; # substitute your machine's IP address or FQDN
  7. charset utf-8;
  8. # max upload size
  9. client_max_body_size 75M; # adjust to taste
  10. location /css {
  11. alias /home/christian/work/haskell/haskweb/templates/css;
  12. }
  13. # Finally, send all non-media requests to the Django server.
  14. location / {
  15. #include /home/christian/work/repos/areion_web/uwsgi_params;
  16. fastcgi_pass 127.0.0.1:9000;
  17. fastcgi_param QUERY_STRING $query_string;
  18. fastcgi_param REQUEST_METHOD $request_method;
  19. fastcgi_param CONTENT_TYPE $content_type;
  20. fastcgi_param CONTENT_LENGTH $content_length;
  21. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  22. fastcgi_param SCRIPT_NAME $fastcgi_script_name;
  23. fastcgi_param REQUEST_URI $request_uri;
  24. fastcgi_param DOCUMENT_URI $document_uri;
  25. fastcgi_param DOCUMENT_ROOT $document_root;
  26. fastcgi_param SERVER_PROTOCOL $server_protocol;
  27. fastcgi_param REMOTE_ADDR $remote_addr;
  28. fastcgi_param REMOTE_PORT $remote_port;
  29. fastcgi_param SERVER_ADDR $server_addr;
  30. fastcgi_param SERVER_PORT $server_port;
  31. fastcgi_param SERVER_NAME $server_name;
  32. }
  33. }