I followed instructions from the xf manual but must have done something wrong since it isn't working, here's what I have in my domain.nl.conf file:
Code:
GNU nano 2.2.6 File: domain.nl.conf Modified
server {
listen xxxx;
server_name domain.nl www.domain.nl;
root /var/www/domain.nl/public_html;
access_log /var/www/domain.nl/logs/http_access;
error_log /var/www/domain.nl/logs/http_error;
index index.html index.php;
location /. {
return 404;
}
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php last;
}
location /test_import_forum {
auth_basic "Administrator Login";
auth_basic_user_file /var/www/xxxx
}
location ~ /\. { deny all; }
location ~ .php$ {
expires off;
include fastcgi_params;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
location /test_import_forum {
try_files $uri $uri/ /xf/index.php?$uri&$args;
index index.php index.html;
}
location /test_import_forum/internal_data {
internal;
}
location /test_import_forum/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;
}
}
Last edited: