Welcome! Log In Create A New Profile

Advanced

Website in subfolder

Posted by Replace 
Website in subfolder
January 06, 2016 12:42PM
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.
Re: Website in subfolder
January 06, 2016 04:16PM
Sorry, nginx 1.6.2
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 85
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready