Is it possible using multiple directive on different root location? (Without Symlinks)

Cliff Wells cliff at develix.com
Tue May 1 18:28:45 UTC 2012


Perhaps an alias?

location /cdn/ {
    alias /home/antituhan/public_html/;
}

Cliff

On Tue, 2012-05-01 at 02:36 -0700, antituhan wrote:
> Hi, basic on http://wiki.nginx.org/Pitfalls, I want to ask my directives like
> this :
> 
> This directive on balancer :
> 
> 
> And then, this directives on backend :
> 
> 
> I want to give a subdomain like this http://static.antituhan.com/cdn, and
> /cdn will have a root dir to /home/antituhan/public_html/, and now I use
> symlink to static :
> 
> 
> So, I can access the domain like this http://static.antituhan.com/cdn
> 
> If I don't use symlink, is it possible to add another directive on nginx?
> And if is not possible, is it safe for nginx directive? Thank you
> 
> -----
> [daemon at antituhan.com ~]# 
> --
> View this message in context: http://nginx.2469901.n2.nabble.com/Is-it-possible-using-multiple-directive-on-different-root-location-Without-Symlinks-tp7516384.html
> Sent from the nginx mailing list archive at Nabble.com.
> 
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx





More information about the nginx mailing list