Created
April 27, 2017 11:38
-
-
Save rakeshtembhurne/857440583fd979522b38c57f6e08d323 to your computer and use it in GitHub Desktop.
Nginx: .htaccess file with croogo settings
This file contains hidden or 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
server { | |
listen 443; | |
server_name localhost; | |
root /var/www/; | |
#access_log /usr/local/etc/nginx/logs/default-ssl.access.log main; | |
ssl on; | |
ssl_certificate ssl/localhost.crt; | |
ssl_certificate_key ssl/localhost.key; | |
ssl_session_timeout 5m; | |
ssl_protocols SSLv2 SSLv3 TLSv1; | |
ssl_ciphers HIGH:!aNULL:!MD5; | |
ssl_prefer_server_ciphers on; | |
location /work/croogo-fixme { | |
root /var/www/work/croogo-fixme/webroot; | |
#rewrite ^/work/croogo-fixme/([^.]+\.[^.]+)$ /$1 break; | |
rewrite ^/work/croogo-fixme/(.*)$ /$1 break; | |
try_files $uri $uri/ /work/croogo-fixme/index.php$is_args$args; | |
} | |
location ~ \.php$ { | |
try_files $uri =404; | |
include fastcgi_params; | |
fastcgi_pass 127.0.0.1:9000; | |
fastcgi_index index.php; | |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
} | |
location = /info { | |
allow 127.0.0.1; | |
deny all; | |
rewrite (.*) /.info.php; | |
} | |
location = /adminer { | |
allow 127.0.0.1; | |
deny all; | |
rewrite (.*) /.adminer.php; | |
} | |
error_page 404 /404.html; | |
error_page 403 /403.html; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment