-
October 10th, 2012, 23:16
#51
عضو انجمن
پاسخ : سوالات و مشکلات تاپیک : آموزش های از وب سرور nGinx - مبتدی تا پیشرفته

نوشته اصلی توسط
ppro
خیلی ممنون از لطف شما . بعد از آزمایش حتما اینجا اطلاع میدم
سپاس
خواهش میکنم.
-
-
October 10th, 2012 23:16
# ADS
-
November 6th, 2012, 18:14
#52
عضو انجمن
پاسخ : سوالات و مشکلات تاپیک : آموزش های از وب سرور nGinx - مبتدی تا پیشرفته
من از nginx برای فایل هاستینگ استفاده می کنم ، مشکلم اینکه ، vps هم هی قطع وصل می ده.
توی لوگ هم این ارور رو نشون می ده 1024 worker_connections are not enough
worker_connections رو مقدارش رو زیاد کردم ، بازم همون مشکل رو درام لوگ هم این ارور رو نشون می ده :maximum number of descriptors supported by select() is 1024 while reading client request lin
من تازه با Nginx کار کردم چیز زیادی نمی دونم ، لطفا اگه میشه راهنمایی کنید.
-
-
November 7th, 2012, 00:18
#53
عضو انجمن
پاسخ : سوالات و مشکلات تاپیک : آموزش های از وب سرور nGinx - مبتدی تا پیشرفته

نوشته اصلی توسط
aalireza439
من از nginx برای فایل هاستینگ استفاده می کنم ، مشکلم اینکه ، vps هم هی قطع وصل می ده.
توی لوگ هم این ارور رو نشون می ده 1024 worker_connections are not enough
worker_connections رو مقدارش رو زیاد کردم ، بازم همون مشکل رو درام لوگ هم این ارور رو نشون می ده :maximum number of descriptors supported by select() is 1024 while reading client request lin
من تازه با Nginx کار کردم چیز زیادی نمی دونم ، لطفا اگه میشه راهنمایی کنید.
سلام.
ابتدا بفرمایید از چه سیستم عاملی استفاده میکنید و 64 بیتیه یا 32 ؟ مشخصات دقیق سرور هم بگید .
فایل کانفیگتون هم اینجا قرار بدید تا بررسی بشه .
-
-
November 7th, 2012, 07:49
#54
عضو انجمن
پاسخ : سوالات و مشکلات تاپیک : آموزش های از وب سرور nGinx - مبتدی تا پیشرفته
ویندوز 2008 64 بیتی ، VPS رم 2 گیگ 2 هسته پردازشی ، 400 گیگ هارد
برای نصب Nginx از winginx استفاده کردم
فایل کانفیگ اصلی :
کد:
#user nobody;
worker_processes 2;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
pid temp/nginx.pid;
events {
worker_connections 2000;
}
http {
include mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
#access_log logs/access.log main;
sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 65;
client_max_body_size 55m;
#gzip on;
scgi_temp_path temp/uwsgi_temp 1 2;
uwsgi_temp_path temp/uwsgi_temp 1 2;
fastcgi_connect_timeout 1;
server {
listen 127.0.0.1:80;
root home/localhost/public_html;
index index.php index.html;
log_not_found off;
charset utf-8;
access_log logs/access.log main;
location ~ /\. {deny all;}
location / {
if ($host ~ ^(www\.)?([a-z0-9\-\.]+)$){
root home/$2/public_html;
access_log logs/$2-access.log main;
}
}
location ~ \.php$ {
if ($host ~ ^(www\.)?([a-z0-9\-\.]+)$){
root home/$2/public_html;
access_log logs/$2-access.log main;
}
if (!-e $document_root$document_uri){return 404;}
fastcgi_pass localhost:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
server {
listen 127.0.0.1:443;
include ssl.conf;
root home/localhost/public_html;
index index.php index.html;
log_not_found off;
charset utf-8;
access_log logs/access.log main;
location ~ /\. {deny all;}
location / {
if ($host ~ ^(www\.)?([a-z0-9\-\.]+)$){
root home/$2/public_html;
access_log logs/$2-access.log main;
}
}
location ~ \.php$ {
if ($host ~ ^(www\.)?([a-z0-9\-\.]+)$){
root home/$2/public_html;
access_log logs/$2-access.log main;
}
if (!-e $document_root$document_uri){return 404;}
fastcgi_pass localhost:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
include tools-*.conf;
include vhosts/*.conf;
}
فایل کانفیگ Vhost وب سایت
کد:
server {
listen 5.199.129.99:80;
server_name mysite.org www.mysite.org;
root home/mysite.org/public_html;
index index.php index.html;
log_not_found off;
charset utf-8;
access_log logs/mysite.org-access.log main;
location ~ /\. {deny all;}
location / {}
location = /favicon.ico {
}
location /movies2/ { alias e:/movies/;
autoindex on;
autoindex_exact_size off;
autoindex_localtime on;
limit_rate 50k;
}
location /movies/ { alias c:/inetpub/wwwroot/movies/;
autoindex on;
autoindex_exact_size off;
autoindex_localtime on;
limit_rate 50k; }
location /tvshow/ { alias c:/inetpub/wwwroot/tvshow/;
autoindex on;
autoindex_exact_size off;
autoindex_localtime on;
limit_rate 50k; }
location /tv/ { alias f:/tv/;
autoindex on;
autoindex_exact_size off;
autoindex_localtime on;
limit_rate 50k; }
location = /robots.txt {
}
location ~ \.php$ {
if (!-e $document_root$document_uri){return 404;}
fastcgi_pass localhost:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
ویرایش توسط aalireza439 : November 7th, 2012 در ساعت 07:53
-
-
November 7th, 2012, 15:05
#55
پاسخ : سوالات و مشکلات تاپیک : آموزش های از وب سرور nGinx - مبتدی تا پیشرفته

نوشته اصلی توسط
ali_fattahi
سلام دوستان . سوالات و مشکلات بخش
" آموزش هایی از وب سرور nGinx - مبتدی تا پیشرفته" به آدرس
http://www.webhostingtalk.ir/f175/28822/
را در این بخش بپرسید .
از مدیران خواهش میکنم این تاپیک را پاک نکنند تا نظم اون تاپیک به هم نریزه
با تشکر
علی فتاحی
واقعآ به دردم خورد بسیار بسیار ممنون!!
-
-
November 7th, 2012, 23:13
#56
عضو انجمن
پاسخ : سوالات و مشکلات تاپیک : آموزش های از وب سرور nGinx - مبتدی تا پیشرفته

نوشته اصلی توسط
aalireza439
ویندوز 2008 64 بیتی ، VPS رم 2 گیگ 2 هسته پردازشی ، 400 گیگ هارد
برای نصب Nginx از
winginx استفاده کردم
فایل کانفیگ اصلی :
کد:
#user nobody;
worker_processes 2;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
pid temp/nginx.pid;
events {
worker_connections 2000;
}
http {
include mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
#access_log logs/access.log main;
sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 65;
client_max_body_size 55m;
#gzip on;
scgi_temp_path temp/uwsgi_temp 1 2;
uwsgi_temp_path temp/uwsgi_temp 1 2;
fastcgi_connect_timeout 1;
server {
listen 127.0.0.1:80;
root home/localhost/public_html;
index index.php index.html;
log_not_found off;
charset utf-8;
access_log logs/access.log main;
location ~ /\. {deny all;}
location / {
if ($host ~ ^(www\.)?([a-z0-9\-\.]+)$){
root home/$2/public_html;
access_log logs/$2-access.log main;
}
}
location ~ \.php$ {
if ($host ~ ^(www\.)?([a-z0-9\-\.]+)$){
root home/$2/public_html;
access_log logs/$2-access.log main;
}
if (!-e $document_root$document_uri){return 404;}
fastcgi_pass localhost:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
server {
listen 127.0.0.1:443;
include ssl.conf;
root home/localhost/public_html;
index index.php index.html;
log_not_found off;
charset utf-8;
access_log logs/access.log main;
location ~ /\. {deny all;}
location / {
if ($host ~ ^(www\.)?([a-z0-9\-\.]+)$){
root home/$2/public_html;
access_log logs/$2-access.log main;
}
}
location ~ \.php$ {
if ($host ~ ^(www\.)?([a-z0-9\-\.]+)$){
root home/$2/public_html;
access_log logs/$2-access.log main;
}
if (!-e $document_root$document_uri){return 404;}
fastcgi_pass localhost:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
include tools-*.conf;
include vhosts/*.conf;
}
فایل کانفیگ Vhost وب سایت
کد:
server {
listen 5.199.129.99:80;
server_name mysite.org www.mysite.org;
root home/mysite.org/public_html;
index index.php index.html;
log_not_found off;
charset utf-8;
access_log logs/mysite.org-access.log main;
location ~ /\. {deny all;}
location / {}
location = /favicon.ico {
}
location /movies2/ { alias e:/movies/;
autoindex on;
autoindex_exact_size off;
autoindex_localtime on;
limit_rate 50k;
}
location /movies/ { alias c:/inetpub/wwwroot/movies/;
autoindex on;
autoindex_exact_size off;
autoindex_localtime on;
limit_rate 50k; }
location /tvshow/ { alias c:/inetpub/wwwroot/tvshow/;
autoindex on;
autoindex_exact_size off;
autoindex_localtime on;
limit_rate 50k; }
location /tv/ { alias f:/tv/;
autoindex on;
autoindex_exact_size off;
autoindex_localtime on;
limit_rate 50k; }
location = /robots.txt {
}
location ~ \.php$ {
if (!-e $document_root$document_uri){return 404;}
fastcgi_pass localhost:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
این مشکلیه که توی ویندوز وجود داره . اگه برید روی لینوکس مشکلتون حل میشه.
-
تعداد تشکر ها از ali_fattahi به دلیل پست مفید
-
November 8th, 2012, 18:13
#57
پاسخ : سوالات و مشکلات تاپیک : آموزش های از وب سرور nGinx - مبتدی تا پیشرفته
سلام
قیمت لایسنس این وبسرور به چه شکل هست؟ بصورت ماهیانه؟
-
-
November 9th, 2012, 00:11
#58
عضو انجمن
پاسخ : سوالات و مشکلات تاپیک : آموزش های از وب سرور nGinx - مبتدی تا پیشرفته

نوشته اصلی توسط
abc
سلام
قیمت لایسنس این وبسرور به چه شکل هست؟ بصورت ماهیانه؟
رایگانه و میتونی دانلودش کنی
اگه از کنترل پنل دایرکت ادمین استفاده میکنی سایت Nginx Panel | پنل مدیریت انجینکس پلاگین واسه این وب سرور ارائه میکنه که ماهیانه 6500 هست و کامل مانفیگ ها رو هم اتوماتیک انجام میده خودش
-
تعداد تشکر ها ازali_fattahi به دلیل پست مفید
-
November 9th, 2012, 00:21
#59
پاسخ : سوالات و مشکلات تاپیک : آموزش های از وب سرور nGinx - مبتدی تا پیشرفته
آقا فتاحی سلام
من الان چک کردم خود سایت nginxpanel.ir از وب سروری که براش داره پنل میفروشه استفاده نکرده و وبسرورش لایت اسپید هست چرا؟
-
-
November 12th, 2012, 19:27
#60
عضو انجمن
پاسخ : سوالات و مشکلات تاپیک : آموزش های از وب سرور nGinx - مبتدی تا پیشرفته

نوشته اصلی توسط
abc
آقا فتاحی سلام
من الان چک کردم خود سایت nginxpanel.ir از وب سروری که براش داره پنل میفروشه استفاده نکرده و وبسرورش لایت اسپید هست چرا؟
دوست عزیز همچین مساله مهمی هم نیست که من بخوام به شما جواب بدم . ضمن این که اینجا جای این سوال نیست . دلیلشم اینه که بنده نمیام واسه یه سایت سرور بگیرم که بخوام اونو نصب کنم و روی هاستیگ میهن وب هاست داره میزبانی میشه که دست بنده نیست که بخوام وب سرور روش نصب کنم .
-