use subdirectories instead of subdomains

2014-04-25 Thread Thuban
Hello, I am trying to use subdirectories instead of subdomains because my host doesn't support subdomains. So, instead of having : - http://owncloud.example.com - http://wordpress.example.com - http://anyservice.example.com I would like to have : - http://example.com/owncloud - http

Re: use subdirectories instead of subdomains

2014-04-25 Thread Jim Ohlstein
Hello, On 4/25/14, 12:06 PM, Thuban wrote: Hello, I am trying to use subdirectories instead of subdomains because my host doesn't support subdomains. First suggestion is get a better host. So, instead of having : - http://owncloud.example.com - http://wordpress.example.com - http

Re: use subdirectories instead of subdomains

2014-04-25 Thread Thuban
root /var/www/mysite; location /owncloud { alias /var/www/mysite/owncloud; include /etc/nginx/conf.d/owncloud.conf; } , but services like owncloud need `location` rules too, so I finally have location /example is outside location errors. How can I

Re: use subdirectories instead of subdomains

2014-04-25 Thread Jim Ohlstein
Hello, On 4/25/14, 1:17 PM, Thuban wrote: root /var/www/mysite; location /owncloud { alias /var/www/mysite/owncloud; include /etc/nginx/conf.d/owncloud.conf; } , but services like owncloud need `location` rules too, so I finally have location /example is

Re: use subdirectories instead of subdomains

2014-04-25 Thread itpp2012
Thuban Wrote: --- Hello, I am trying to use subdirectories instead of subdomains because my host doesn't support subdomains. http://forum.nginx.org/read.php?11,249636,249642#msg-249642 Posted at Nginx Forum: http://forum.nginx.org

Re: use subdirectories instead of subdomains

2014-04-25 Thread Thuban
* Jim Ohlstein j...@ohlste.in le [25-04-2014 14:17:33 -0400]: Hello, On 4/25/14, 1:17 PM, Thuban wrote: root /var/www/mysite; location /owncloud { alias /var/www/mysite/owncloud; include /etc/nginx/conf.d/owncloud.conf; } , but services like

Re: use subdirectories instead of subdomains

2014-04-25 Thread Jim Ohlstein
Hello, On 4/25/14, 3:59 PM, Thuban wrote: * Jim Ohlstein j...@ohlste.in le [25-04-2014 14:17:33 -0400]: Hello, On 4/25/14, 1:17 PM, Thuban wrote: [snip] I'm still not sure you've actually given a reason why you need an alias. Infact, I don't have a good reason for using alias, I just