Welcome! Log In Create A New Profile

Advanced

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

antituhan
May 03, 2012 09:02AM
How about php directive cliff ? I still get errors, my full directive like
this http://fpaste.org/TOW3/

And i have a index.php on /home/antituhan/public_html to be triggered by
another upstream outsite with
http://static.antituhan.com/cdnize/index.php?q=datahere and it says not
found. Is my .php directive wrong ?

Thank you


Cliff Wells wrote
>
> On Tue, 2012-05-01 at 19:20 -0700, antituhan wrote:
>> 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 ?
>
> Pay attention to the slashes. /home/antituhan/static is not the same
> as /home/antituhan/static/ for an alias.
>
> If you could share your error log, it would be helpful.
>
> The following works for me:
>
> server {
> listen localhost:80;
>
> root /var/www/test;
>
> location / {
> index index.html;
> }
>
> location /cdn/ {
> alias /var/www/static_html/;
> }
> }
>
> index.html has /cdn/1.jpg and it shows up fine.
>
> Regards,
> Cliff
>
> _______________________________________________
> 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-tp7516384p7523526.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: 245
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