ChemicalKicks
Well-known member
Maybe it's because I've spent the last 48 hours doing a crash course in Ubuntu and I'm very tired at the moment but I'm just stuck and no amount of Googling is helping me past this point.
Has to be my config, does this look right or are there obvious errors? Site works fine with friendly URLS turned off.
Also how do I rediect http://the-sps.net to www. ?
Has to be my config, does this look right or are there obvious errors? Site works fine with friendly URLS turned off.
Code:
server {
server_name www.the-sps.net the-sps.net;
access_log /srv/www/the-sps.net/logs/access.log;
error_log /srv/www/the-sps.net/logs/error.log;
root /srv/www/the-sps.net/public_html;
location /srv/www/the-sps.net/public_html {
try_files $uri $uri/ /srv/www/the-sps.net/public_html/index.php?$uri&$args;
index index.php index.html;
}
location /srv/www/the-sps.net/public_html/internal_data/ {
internal;
}
location /srv/www/the-sps.net/public_html/library/ {
internal;
}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
Also how do I rediect http://the-sps.net to www. ?