Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80; #IPv4
- listen [::]:80; #IPv6
- # Host that will serve this project.
- server_name extreme.serveminecraft.net;
- # Useful logs for debugging.
- access_log /var/log/nginx/TechnicSolder/access.log;
- error_log /var/log/nginx/TechnicSolder/error.log;
- rewrite_log on;
- # The location of our projects public directory.
- root /usr/share/nginx/html/TechnicSolder/public/;
- index index.php index.html index.htm;
- location / {
- # URLs to attempt, including pretty ones.
- try_files $uri $uri/ /index.html;
- autoindex on;
- autoindex_exact_size off;
- autoindex_localtime on;
- }
- # PHP FPM configuration.
- location ~* \.php$ {
- fastcgi_pass unix:/var/run/php5-fpm.sock;
- fastcgi_index index.php;
- fastcgi_split_path_info ^(.+\.php)(.*)$;
- include fastcgi_params;
- fastcgi_param PATH_INFO $fastcgi_path_info;
- }
- # We don't need .ht files with nginx.
- location ~ /\.ht {
- deny all;
- }
- # Hide dot files/folders
- location ~ .*/\. {
- return 403;
- }
- # Set header expirations on per-project basis
- location ~* \.(?:ico|css|js|jpe?g|JPG|png|svg|woff)$ {
- expires 365d;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement