Hi everybody,
Please excuse my English, i'm french.
Il would like to have two services on my server with NGinX : owncloud and another (a web site by exemple)
Both are working well but not together :
i would like to acces owncloud with "mydomain.org/owncloud"
and the other service whith "mydomain.org/toto
I can already access owncloud with this file in sites-enables :
\code
server {
listen 80;
server_name mydomain.org;
root /var/www/owncloud;
index index.php;
client_max_body_size 1000M;
dav_methods PUT DELETE MKCOL COPY MOVE;
create_full_put_path on;
dav_access user:rw group:rw all:r;
try_files $uri $uri/ @webdav;
# PHP scripts -> PHP-FPM server listening on 127.0.0.1:9000
location ~ \.php$ {
try_files $uri =404;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
# Stuffs
location = /favicon.ico {
access_log off;
return 204;
}
# Protect hidden file to read/write access
location ~ /\. {
deny all;
}
}
\code
But when i add this file
\code
server {
listen 80;
server_name mydomain.org;
location /toto {
root /var/www;
index index.html;
}
}
\code
mydomain.org/toto works well but not not mydomain.org/owncloud.
I tried to add
location /owncloud { }
in the first file at several place but it never works.
How can I do?
Thank you for your answers.
Edited 1 time(s). Last edit at 04/12/2012 07:45PM by jolegrand.