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
Ok, thanks. I fixed this by modifing the directory according to the right position.

But now I'm completely lost. I removed the owncloud and tried get "rompr" working.

My only file in "site-available" and "sites-enabled" is "rompr":


server {
listen 80 default_server;

root /var/www/rompr;
index index.php index.html index.htm;
access_log /var/log/nginx/access_log_rompr;
#index index.php index.html index.htm;

server_name localhost;

location /rompr {
#allow all;
#root /var/www/rompr;
index index.php;
#client_max_body_size 32M;

location ~ \.php {
try_files $uri =404;
fastcgi_pass unix:/var/run/php5-fpm-rompr.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $request_filename;
include /etc/nginx/fastcgi_params;
}

error_page 404 = /rompr/404.php;
try_files $uri $uri/ =404;
location ~ /rompr/albumart/* {
expires -1s;
}
}
}



The problem: If it type in IP/rompr I cannot establish a connection and there is nothing in the error.log and the access.log.

Sorry for these kind of stupid questions but there seems to be something going into the wrong direction. Any ideas?

Viewing all articles
Browse latest Browse all 4759

Trending Articles