Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- user nginx nginx;
- worker_processes 1;
- error_log /var/log/nginx/error_log info;
- events {
- worker_connections 1024;
- use epoll;
- }
- http {
- include /etc/nginx/mime.types;
- default_type application/octet-stream;
- client_max_body_size 128M;
- sendfile on;
- tcp_nopush on;
- tcp_nodelay on;
- ignore_invalid_headers on;
- fancyindex_exact_size off;
- index index.php index.html;
- server
- {
- listen 80;
- server_name mywebsite.com
- root /var/www;
- location /
- {
- allow x.x.x.x;
- deny all;
- }
- location /public
- {
- allow all;
- fancyindex on;
- }
- location ~ \.php$
- {
- fastcgi_pass unix:/var/run/php-fpm-www.sock;
- include fastcgi.conf;
- }
- include security.conf;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement