Welcome! Log In Create A New Profile

Advanced

Can't make a simple configuration...

Yaşar Arabacı
July 19, 2011 05:52PM
Hi,

This will be an absolute beginner question. Sorry about that. What I want to
do is, I want to serve all files under http://localhost/static from
/home/myname/public_html/static

My configuration regarding that part:


location ~ /static/* {
root /home/yasar/public_html/;
}

I have put index files just to test it in ~/public_html/static adming folder
under static folder and css folder under admin folder and I can see all of
index.html files. But when I try to get an css file there, I get this error
(from error log):

2011/07/20 00:42:27 [error] 7749#0: *1 open()
"/etc/nginx/html/static/admin/css/ie.css" failed (2: No such file or
directory), client: 127.0.0.1, server: localhost, request: "GET
/static/admin/css/ie.css HTTP/1.1", host: "localhost"

appereantly, my root directive doesn't work some reason. Any help would be
appriciated.

Yaşar Arabacı.
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Can't make a simple configuration...

Yaşar Arabacı July 19, 2011 05:52PM

Re: Can't make a simple configuration...

locojohn July 19, 2011 06:20PM

Re: Can't make a simple configuration...

Ensiferous July 20, 2011 11:30AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 136
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready