Jump to content

Recommended Posts

Posted

Hello, I've run into an issue with solder and my nginx configuration. I was trying to get http://solder.mrkirby153.tk to point to my solder installation but now all it does is download the php file instead of passing it to the fastcgi parser.

 

nginx config file:

server {
    listen 80;
    server_name mrkirby153.tk;
    root /var/www/mrkirby153;

    location / {
        index index.php index.html index.htm;
    }
    location ~ .php {
        fastcgi_pass 	127.0.0.1:9000;
        fastcgi_index 	index.php;
        fastcgi_param 	SCRIPT_FILENAME $document_root$fastcgi_script_name;
        include		fastcgi_params;
    }
}
server {
    server_name solder.mrkirby153.tk;
    root /var/www/mrkirby153/solder/public;
    access_log /var/www/logs/mrkirby153/solder_access.log;
    error_log /var/www/logs/mrkirby153/solder_error.log;
    rewrite_log on;
    index index.php;
    location / {
        try_files $uri $uri/ /index.php$is_args$args =404;
    }
    location ~* .php$ {
        try_files $uri /index.php =404;
        include        fastcgi_params;
#       fastcgi_pass   unix:/var/run/php5-fpm.sock;
        fastcgi_pass   127.0.0.1:9000;
        fastcgi_index  index.php;
        fastcgi_split_path_info ^(.+.php)(.*)$;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    }
}

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...