Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- server_name testforums.moddednetwork.com;
- root /var/www/html/forums.moddednetwork.com;
- index index.html index.htm index.php;
- charset utf-8;
- location / {
- try_files $uri $uri/ /index.php?$query_string;
- }
- location = /favicon.ico { access_log off; log_not_found off; }
- location = /robots.txt { access_log off; log_not_found off; }
- access_log off;
- error_log /var/log/nginx/forums.app-error.log error;
- # allow larger file uploads and longer script runtimes
- client_max_body_size 100m;
- client_body_timeout 120s;
- sendfile off;
- location /xf/ {
- try_files $uri $uri/ /xf/index.php?$uri&$args;
- index index.php index.html;
- }
- location /xf/install/data/ {
- internal;
- }
- location /xf/install/templates/ {
- internal;
- }
- location /xf/internal_data/ {
- internal;
- }
- location /xf/library/ {
- internal;
- }
- location ~ \.php$ {
- try_files $uri =404;
- fastcgi_pass 127.0.0.1:9000;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- include fastcgi_params;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement