server { server_name VOTRE_NOM_DE_DOMAINE; error_log /var/log/nginx_wims_error.log; access_log /var/log/nginx_wims_access.log; location / { root /home/wims/public_html; index wims.cgi; } location ~ ^/wims.*$ { # Disable gzip (it makes scripts feel slower since they have to complete before getting gzipped) gzip off; # Set the root directory (we are giving access to the files under this location) root /home/wims/public_html; # Fastcgi socket fastcgi_pass unix:/var/run/fcgiwrap.socket; # Fastcgi parameters, include the standard ones fastcgi_param SCRIPT_FILENAME /home/wims/public_html/wims.cgi; include /etc/nginx/fastcgi_params; } }