Re: 404

Alexander Kochetov kochetov.alexander gmail.com
23 13:33:41 MSD 2010


23  2010. 13:13  Dmitry Veselov
<nginx-forum at nginx.us> :
>  -  
> ,     nginx 
>  ,   
> .   :
> http:/domain.com/  
> http:/domain.com/pupkin  
> http:/domain.com/pupkin/   html,
> -   css, 
>    html.  
>    ,  
>  .  :

  error_log   ?
         ,  
   ,     .
 /usr/share/nginx/html/pupkin/left0001.jpg
   ?


> [code]
>  server {
>    limit_conn  myzone 10;
>    listen    80;
>    server_name localhost;
>
>    #charset koi8-r;
>
>    access_log /var/log/nginx/def.access.log main;
>    error_log  /var/log/nginx/def.error.log;
>
>    location = / {
>      root  /usr/share/nginx/html;
> #      index index.html index.htm;
>      index 404.html 404.htm;
>    }
>
>    error_page 404       /404.html;
>
>    location = /404.html {
>      root  /usr/share/nginx/html;
>    }
>
>    # redirect server error pages to the static page /50x.html
>    #
>    error_page  500 502 503 504 /50x.html;
>    location = /50x.html {
>      root  /usr/share/nginx/html;
>    }
>  }
> [/code]
>
> 404.html:
> [code]
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
> "http://www.w3.org/TR/xhtml2/DTD/xhtml1-strict.dtd">
>
>
>
> .content {
> background:#FFFFFF url(./content0.jpg) no-repeat scroll center top;
> height:590px;
> vertical-align:top;
> color:#FFFFFF;
> font-size:14px;
> line-height:25px;
> font-family:tahoma,arial,sans-serif;
> width: 940px;
> text-align: center;
> }
> body{background-color:#4d4d4d; margin: 0px;}
> .left {
> background:transparent url(left0001.jpg) repeat-y scroll left center;
> width:21px;
> }
> .right {
> background:transparent url(right001.jpg) repeat-y scroll right center;
> width:21px;
> }
> .footer {
> background:transparent url(footer01.jpg) no-repeat scroll left top;
> height:26px;
>
> }
>
>
>
> &nbsp;<!-- Start_Module_461 -->&nbsp;The site you have requested is
> currently unavailable. Please check back soon.
>
> We apologize for the inconvenience.<!-- End_Module_461 -->&nbsp;
>
>
>
>
> [/code]
>
> Posted at Nginx Forum: http://forum.nginx.org/read.php?21,133277,133277#msg-133277
>
>
> _______________________________________________
> nginx-ru mailing list
> nginx-ru at nginx.org
> http://nginx.org/mailman/listinfo/nginx-ru
>



--
Alexander Kochetov


nginx-ru