Skip to content

Instantly share code, notes, and snippets.

@prasadrahul
Last active August 29, 2015 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prasadrahul/feeed95f09e9ac84f991 to your computer and use it in GitHub Desktop.
Save prasadrahul/feeed95f09e9ac84f991 to your computer and use it in GitHub Desktop.
Nginx_Configuration_for_Bugzilla
# You may add here your
server {
#listen 80; ## listen for ipv4; this line is default and implied
#listen [::]:80 default ipv6only=on; ## listen for ipv6
# Make site accessible from http://localhost/
server_name localhost;
root /var/www/bugzilla;
index index.html index.htm index.cgi index.pl;
access_log /var/www/logs/access.log;
location / {
index index.html index.htm index.cgi index.pl;
}
location ~ \.pl|cgi$ {
try_files $uri =404;
gzip off;
fastcgi_pass 127.0.0.1:8999;
fastcgi_index index.pl;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment