Last active
May 24, 2019 04:40
-
-
Save kumirska/18f6290d4b1a633e58c719d26e130608 to your computer and use it in GitHub Desktop.
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
server { | |
server_name redisadmin.local; | |
root /var/www/redisadmin; | |
index index.php; | |
# access_log off; | |
error_log /var/www/redisadmin/log/nginx.error.log; | |
location ~ \.php$ { | |
fastcgi_pass unix:/var/run/php5-fpm-redisadmin.sock; | |
fastcgi_index index.php; | |
include fastcgi_params; | |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
} | |
} | |
/// | |
server { | |
listen 8090; | |
server_name redisadmin.local www.redisadmin.local; | |
root /Users/user/dev/redisadmin; | |
index index.php; | |
client_max_body_size 30M; | |
location / { | |
root /Users/user/dev/redisadmin; | |
if (!-e $request_filename) { | |
rewrite ^/(.*)$ /index.php?q=$1 last; | |
} | |
} | |
location ~ \.php$ { | |
try_files $uri =404; | |
fastcgi_split_path_info ^(.+\.php)(.*)$; | |
fastcgi_pass 127.0.0.1:9000; | |
fastcgi_index index.php; | |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
include fastcgi_params; | |
fastcgi_ignore_client_abort on; | |
fastcgi_param SERVER_NAME $http_host; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/ErikDubbelboer/phpRedisAdmin