Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Re: accessing two different sites by 192.x.x.x/test1 and 192.x.x.x/test2 possible?

$
0
0
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 :-(

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>