Welcome! Log In Create A New Profile

Advanced

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

antituhan
May 01, 2012 10:22PM
If using alias, what the root document directive? Becasue public_html is
outside the /home/antituhan/static. I've tried using alias
/home/antituhan/public_html but the nginx shows errors not found. Any
solution ?


Cliff Wells wrote
>
> 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@ ~]#
>> --
>> 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@
>> http://mailman.nginx.org/mailman/listinfo/nginx
>
>
>
> _______________________________________________
> nginx mailing list
> nginx@
> http://mailman.nginx.org/mailman/listinfo/nginx
>


-----
[daemon@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-tp7516384p7518776.html
Sent from the nginx mailing list archive at Nabble.com.

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

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

antituhan May 01, 2012 05:38AM

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

Cliff Wells May 01, 2012 12:22PM

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

antituhan May 01, 2012 01:00PM

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

elico May 01, 2012 01:02PM

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

Francis Daly May 01, 2012 01:54PM

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

Cliff Wells May 01, 2012 02:30PM

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

antituhan May 01, 2012 10:22PM

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

Cliff Wells May 02, 2012 12:58AM

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

antituhan May 03, 2012 09:02AM

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

Francis Daly May 03, 2012 06:44PM

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

antituhan May 11, 2012 01:00AM

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

Francis Daly May 11, 2012 04:06AM

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

antituhan November 27, 2012 07:10AM

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

Francis Daly November 30, 2012 05:40PM

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

antituhan December 04, 2012 11:12AM

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

Francis Daly December 04, 2012 12:46PM

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

antituhan December 05, 2012 09:12PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 290
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