Jump to content

[SOLDER] Nginx issues


mrkirby173

Recommended Posts

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;
    }
}

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...