Last active
August 29, 2015 14:21
-
-
Save prasadrahul/feeed95f09e9ac84f991 to your computer and use it in GitHub Desktop.
Nginx_Configuration_for_Bugzilla
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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