After setting up nginx and fpm again, the things still do not work. I don't know what's wrong. If I type in the IP of my sever, I get the index.php downloaded. If I use IP/rompr then I get a502 bad gateway.
My default config is:
server {
listen 80 default_server;
#listen [::]:80 default_server ipv6only=on;
root /var/www/rompr;
index index.php index.html index.htm;
# Make site accessible from http://localhost/
server_name localhost;
# This section can be copied into an existing default setup
location /rompr {
allow all;
index index.php;
client_max_body_size 32M;
location ~ \.php$ {
# try_files $uri =404;
# fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/fastcgi_params;
}
error_page 404 = /rompr/404.php;
try_files $uri $uri/ =404;
location ~ /rompr/albumart/* {
expires -1s;
}
}
}
Totally lost :-(
My default config is:
server {
listen 80 default_server;
#listen [::]:80 default_server ipv6only=on;
root /var/www/rompr;
index index.php index.html index.htm;
# Make site accessible from http://localhost/
server_name localhost;
# This section can be copied into an existing default setup
location /rompr {
allow all;
index index.php;
client_max_body_size 32M;
location ~ \.php$ {
# try_files $uri =404;
# fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/fastcgi_params;
}
error_page 404 = /rompr/404.php;
try_files $uri $uri/ =404;
location ~ /rompr/albumart/* {
expires -1s;
}
}
}
Totally lost :-(