Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- log_format domain.com '$remote_addr - $remote_user [$time_local] $request '
- '$status $body_bytes_sent $http_referer '
- '$http_user_agent $http_x_forwarded_for';
- server
- {
- listen 80;
- server_name domain.com;
- index index.html index.htm index.php default.html default.htm default.php;
- root /home/wwwroot/domain.com;
- include custom.conf;
- location ~ .*\.(php|php5)?$
- {
- try_files $uri =404;
- fastcgi_pass unix:/tmp/php-cgi.sock;
- fastcgi_index index.php;
- include fcgi.conf;
- }
- location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|ico)$
- {
- expires 30d;
- }
- location ~ .*\.(js|css)?$
- {
- expires 30d;
- }
- access_log /home/wwwlogs/domain.com.log domain.com;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement