Hi, today i'm in a great adventures with my nginx conf :)
I wanna move rainloop and vimbadmin in directory (ex: domain.com/rainloop , domain.com/vimbadmin), but i can't.
I tried many ways to do this, but ...
Here is my last config file - http://pastebin.com/bs6ccrXB .
vimbadmin config, when is work on domain is https://github.com/opensolutions/ViMbAdmin/wiki/Installation#nginx and for rainloop must be something like that
server {
server_name rainloop;
listen 80;
root /var/www/rainloop/public_html;
access_log /var/www/rainloop/logs/access.log;
error_log /var/www/rainloop/logs/error.log;
index index.php;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
fastcgi_index index.php;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_keep_conn on;
include /etc/nginx/fastcgi_params;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
location ~ /\.ht {
deny all;
}
location ^~ /data {
deny all;
}
}
Can you help me with some advice, or example conf for do that.
I wanna move rainloop and vimbadmin in directory (ex: domain.com/rainloop , domain.com/vimbadmin), but i can't.
I tried many ways to do this, but ...
Here is my last config file - http://pastebin.com/bs6ccrXB .
vimbadmin config, when is work on domain is https://github.com/opensolutions/ViMbAdmin/wiki/Installation#nginx and for rainloop must be something like that
server {
server_name rainloop;
listen 80;
root /var/www/rainloop/public_html;
access_log /var/www/rainloop/logs/access.log;
error_log /var/www/rainloop/logs/error.log;
index index.php;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
fastcgi_index index.php;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_keep_conn on;
include /etc/nginx/fastcgi_params;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
location ~ /\.ht {
deny all;
}
location ^~ /data {
deny all;
}
}
Can you help me with some advice, or example conf for do that.