Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- root /usr/share/phpmyadmin;
- index index.php;
- client_max_body_size 1m;
- server_name admin.me;
- error_log /var/log/nginx/admin.me;
- location / {
- try_files $uri $uri/ /index.php?$query_string;
- }
- location ~ \.(js|css|png|jpg|jpeg|gif|ico|html|woff|ttf|svg|eot|otf)$ {
- add_header "Access-Control-Allow-Origin" "*";
- expires 1M;
- access_log off;
- add_header Cache-Control "public";
- }
- location ~ \.php$ {
- try_files $uri =404;
- fastcgi_split_path_info ^(.+\.php)(/.+)$;
- fastcgi_pass unix:/var/run/php5-fpm.sock;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- include fastcgi_params;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement