Welcome! Log In Create A New Profile

Advanced

404 и слэш

September 23, 2010 05:13AM
создан файл-затычка для несуществующих сайтов, то есть если в nginx нет конфигурации сайта, он отображает эту страницу. странные вещи происходят:
http:/domain.com/ отображает нормально
http:/domain.com/pupkin отображает нормально
http:/domain.com/pupkin/ отображает только html, почему-то не учитывая css, который прописан в теле html. грубо говоря отображает таблицу и текст, но без фоновых картинок. конфиги ниже:

[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">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
<head>
<style type="text/css">
.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;

}
</style>
</head>
<body>
<table align="center" cellspacing="0" cellpadding="0" border="0"><tbody><tr valign="top"><td class="left">&nbsp;</td><td class="content" colspan="2"><div id="dnn_ContentPane"><a name="461"></a><div class="empty DNNAlignleft" id="dnn_ctr461_ContentPane"><!-- Start_Module_461 --><div id="dnn_ctr461_ModuleContent"><div align="center" style="width: 946px;" class="FlashPane"><div id="tmGlobal"><p>&nbsp;</p><p style="line-height: 25px;">The site you have requested is currently unavailable. <br>Please check back soon.

We apologize for the inconvenience.</p></div></div><!-- End_Module_461 --></div></div></div></td><td class="right">&nbsp;</td></tr>
<tr><td colspan="4"><div align="center" class="footer"></div></td></tr></tbody></table>
</body>
</html>

[/code]
Subject Author Posted

404 и слэш

Dmitry Veselov September 23, 2010 05:13AM

Re: 404 и слэш

Alexander Kochetov September 23, 2010 05:34AM

Re: 404 и слэш

Dmitry Veselov September 23, 2010 05:36AM

Re: 404 и слэш

Dmitry Veselov September 23, 2010 05:39AM

Re: 404 и слэш

Dmitry Veselov September 23, 2010 06:01AM

Re: 404 и слэш

Alexander Kochetov September 23, 2010 06:16AM

Re: 404 и слэш

Igor Sysoev September 23, 2010 06:18AM

Re: 404 и слэш

Dmitry Veselov September 23, 2010 06:24AM

Re: 404 и слэш

Dmitry Veselov September 23, 2010 06:31AM

Re: 404 и слэш

Dmitry Veselov September 23, 2010 06:36AM

Re: 404 и слэш

Dmitry Veselov September 23, 2010 06:40AM

Re: 404 и слэш

Dmitry Veselov September 23, 2010 06:50AM

Re: 404 и слэш

Dmitry Veselov September 23, 2010 07:03AM

Re: 404 и слэш

Alexander Kochetov September 23, 2010 06:30AM

Re: 404 и слэш

Igor Sysoev September 23, 2010 06:36AM

Re: 404 и слэш

Igor Sysoev September 23, 2010 06:42AM

Re: 404 и слэш

Igor Sysoev September 23, 2010 07:28AM

Re: 404 и слэш

Dmitry Veselov September 23, 2010 11:16AM

Re: 404 и слэш

Дмитрий Андреев September 23, 2010 11:38AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 103
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready