mrkirby173 Posted February 14, 2015 Posted February 14, 2015 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; } }
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now